Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM SQL » View Thread |
Messages 1 to 3 of 3 total |
how to update the children of a parent |
Fri, Jan 11 2008 10:38 AM | Permanent Link |
Jerry Blumenthal | I have 2 tables joined in a one to many. I want to change the values in
the 2nd table depending on the value of a field in the parent, and I dont know how to do that. I can SHOW the records in question with a SELECT statmeent: SELECT Patient.Balance, Patient.LastName, Tcharges.T_link, Tcharges.T_billpatient, Tcharges.T_billinsurance FROM "C:\z24\GAIL24\pbsw24\data\patient.dat" Patient INNER JOIN "C:\z24\GAIL24\pbsw24\data\Tcharges.DAT" Tcharges ON Patient.Acct = Tcharges.T_acctnum WHERE (Patient.Balance = 0) How do I do the UPDATE command? Jerry Blumenthal |
Fri, Jan 11 2008 2:17 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Jerry,
<< I have 2 tables joined in a one to many. I want to change the values in the 2nd table depending on the value of a field in the parent, and I dont know how to do that. >> It's similar to the SELECT: UPDATE "C:\z24\GAIL24\pbsw24\data\Tcharges.DAT" Tcharges SET <Set values here> FROM "C:\z24\GAIL24\pbsw24\data\Tcharges.DAT" Tcharges INNER JOIN "C:\z24\GAIL24\pbsw24\data\patient.dat" Patient ON Patient.Acct = Tcharges.T_acctnum WHERE (Patient.Balance = 0) -- Tim Young Elevate Software www.elevatesoft.com |
Fri, Jan 11 2008 4:38 PM | Permanent Link |
Jerry Blumenthal | Thanks Tim. I really appreciate the help.
Jerry Tim Young [Elevate Software] wrote: > Jerry, > > << I have 2 tables joined in a one to many. I want to change the values in > the 2nd table depending on the value of a field in the parent, and I dont > know how to do that. >> > > It's similar to the SELECT: > > UPDATE "C:\z24\GAIL24\pbsw24\data\Tcharges.DAT" Tcharges SET <Set values > here> > FROM "C:\z24\GAIL24\pbsw24\data\Tcharges.DAT" Tcharges > INNER JOIN "C:\z24\GAIL24\pbsw24\data\patient.dat" Patient ON Patient.Acct = > Tcharges.T_acctnum > WHERE (Patient.Balance = 0) > |
This web page was last updated on Saturday, May 4, 2024 at 12:54 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |