dbTalk Databases Forums  

UPDATE QUERY Pervasive 2000i

comp.databases.btrieve comp.databases.btrieve


Discuss UPDATE QUERY Pervasive 2000i in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Phil Chapman
 
Posts: n/a

Default UPDATE QUERY Pervasive 2000i - 07-23-2003 , 01:49 PM






PROBLEM:
I need to update one table based on a value of another table

QUESTION:
How do you write the query below to update the PERVASIVE DEMO DATA
Billing.Amount_Owed to 100.00 if the
Person.Perm_State = 'GA'

==================================================

UPDATE Billing SET Amount_Owed = 100
---------
I probably need to tell which tables to look at here by how??
---------
WHERE
Billing.Student_ID = Person.ID AND
Person.Perm_State = 'GA'


--
Thanks,
Phil Chapman
Fax (413) 556-5674



Reply With Quote
  #2  
Old   
Phil Chapman
 
Posts: n/a

Default Re: UPDATE QUERY Pervasive 2000i - 07-24-2003 , 02:18 PM






Thanks for the help

"Rok Debeljak" <rok.debeljak (AT) email (DOT) si> wrote

Quote:
UPDATE Billing SET Amount_Owed = 100
where student_id in (select person.id from person where
person.Perm_state = 'GA')

Regards,
Rok

Phil Chapman wrote:
PROBLEM:
I need to update one table based on a value of another table

QUESTION:
How do you write the query below to update the PERVASIVE DEMO DATA
Billing.Amount_Owed to 100.00 if the
Person.Perm_State = 'GA'

==================================================

UPDATE Billing SET Amount_Owed = 100
---------
I probably need to tell which tables to look at here by how??
---------
WHERE
Billing.Student_ID = Person.ID AND
Person.Perm_State = 'GA'


--
Thanks,
Phil Chapman
Fax (413) 556-5674






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.