Jaymzie007
IS-IT--Management
Hi all, I'm after some help.
I have 2 tables,
T1 holds a product ID and a price
T2 holds a product ID and an amended price
I need a select statement that calls all ID’s and prices from T1 unless there is a product ID match with T2 when I need the amended price to be selected.
Eg.
T1
ID PRICE
1 12.75
2 34.75
3 22.30
4 48.99
T2
ID PRICE
1 10.99
I can’t select into a new table then update so I need to use Select to return the following
ID PRICE
1 10.99
2 34.75
3 22.30
4 48.99
I have tried all sorts, including joins, unions and case statements but this simple task has got the better of me. Any help gratefully received.
I have 2 tables,
T1 holds a product ID and a price
T2 holds a product ID and an amended price
I need a select statement that calls all ID’s and prices from T1 unless there is a product ID match with T2 when I need the amended price to be selected.
Eg.
T1
ID PRICE
1 12.75
2 34.75
3 22.30
4 48.99
T2
ID PRICE
1 10.99
I can’t select into a new table then update so I need to use Select to return the following
ID PRICE
1 10.99
2 34.75
3 22.30
4 48.99
I have tried all sorts, including joins, unions and case statements but this simple task has got the better of me. Any help gratefully received.