![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I'm using a standard SQL command but Oracle seems to have a different version. update A,B set a.col1 = 'something' where a.col2>=b.col2 and a.col3<=b.col3 Why doesn't this seem to work? Thanks, Sashi |
#3
| |||
| |||
|
|
Hi all, I'm using a standard SQL command but Oracle seems to have a different version. update A,B set a.col1 = 'something' where a.col2>=b.col2 and a.col3<=b.col3 Why doesn't this seem to work? Thanks, Sashi |
#4
| |||
| |||
|
#5
| ||||
| ||||
|
|
Thanks for the pointers, guys. This is what I've come up with: update A set a.col1 = 'something' where exists (select 1 from B where a.col2>=b.col2 and a.col3<=b.col3 ) Is my syntax correct for what I'm aiming to do? |
|
As for what I'm aiming to do, I hope it's clear. I have two tables, A and B and a column in A needs to be updated to true if two columns in A (source and destination) fall in a range, given that all ranges are in table B as two columns (start and end). |
|
And the syntax I quoted is from Sybase, which is where I acquired it. |
|
Thanks, Sashi |
#6
| ||||
| ||||
|
|
Thanks for the pointers, guys. This is what I've come up with: update A set a.col1 = 'something' where exists (select 1 from B where a.col2>=b.col2 and a.col3<=b.col3 ) Is my syntax correct for what I'm aiming to do? |
|
As for what I'm aiming to do, I hope it's clear. I have two tables, A and B and a column in A needs to be updated to true if two columns in A (source and destination) fall in a range, given that all ranges are in table B as two columns (start and end). |
|
And the syntax I quoted is from Sybase, which is where I acquired it. |
|
Thanks, Sashi |
![]() |
| Thread Tools | |
| Display Modes | |
| |