Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 4 of 4 total |
As Per The Help Manual - UPDATE/INNER JOIN - FAILS ??? |
Sun, Feb 11 2024 4:48 PM | Permanent Link |
Andrew Hill | UPDATE Purchases P SET P.Tag = TRUE
FROM Purchases P INNER JOIN PurchaseItems I ON I.InvoiceID = P.ID WHERE UPPER(I.LedgerType) LIKE '%LOAN%' ; Please advise |
Mon, Feb 12 2024 3:22 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Andrew
I just tried it here and got the error message ElevateDB Error #700 An error was found in the statement at line 2 and column 1 (Expected end of expression but instead found FROM) which I would expect since UPDATEs & DELETEs in ElevateDB don't use JOIN but subselects I've just had a look at the ElevateDB help and I can't see a reference to using JOIN. Which manual are you using? Roy Lambert |
Mon, Feb 12 2024 3:26 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Andrew
You can try this UPDATE Purchases P SET P.Tag = TRUE WHERE 'LOAN' IN (SELECT UPPER(LedgerType) FROM PurchaseItems I WHERE I.InvoiceID = P.ID) Roy Lambert |
Tue, Feb 13 2024 1:06 PM | Permanent Link |
Andrew Hill | Thanks Roy, my rookie mistake was when I looked up the Internet on ElevateDB "UPDATE JOIN" it returned:-
"UPDATE orders SET ShipToContact=Customer.Contact FROM orders LEFT OUTER JOIN customer ON customer.custno=orders.custno" A closer look shows me this was for DBISAM - my error. |
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 |