Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Update with JOIN
Wed, Nov 28 2018 7:27 AMPermanent Link

Jose Eduardo Helminsky

HPro Informatica

Hi

I used to work with DBISAM and there is UPDATE with JOIN.

update table1 set field1=table2.field3, field2=table2.field4 from table1
inner join table2 on (table1.field1 = table2.field1)

In ElevateDB AFAIK there is not.

I am using the following statement:

update table1 set (field1,field2) = (select field3,field4 from table2 where table1.field1=table2.field1)
where field1 in (select field1 from table2)

My question:
This is right ? Is there another way ?

Thanks in advance
Eduardo
Wed, Nov 28 2018 10:44 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Jose


Looks right to me. I don't think there is another way (apart from Delphi).

Roy Lambert
Mon, Dec 10 2018 3:45 AMPermanent Link

Jose Eduardo Helminsky

HPro Informatica

Roy

<<
Looks right to me. I don't think there is another way (apart from Delphi).
>>

Thanks for the feed back and sorry for delay the answer

Eduardo
Image