View Single Post
  #2 (permalink)  
Old 01-04-2007, 12:22 AM
Ben
 
Posts: n/a
Default SQL 92 answer. Re: How to union two tables, and make one "override" the other for similar records?

Found a solution:

[sql]
SELECT MktCode,Date,Price
FROM tblStockPrices as t1
LEFT JOIN tblOverridePrices as t2
ON t1.date=t2.date and t1.mktcode=t2.mktcode
WHERE
T2.ID is null
UNION
SELECT MktCode,Date,Price
FROM tblOverridePrices
[/sql]
Edit/Delete Message Reply With Quote