That's an interesting update. I'd make sure that this was right, but here is how you'd write that:
UPDATE P
SET OrderNo = S.OrderNo
FROM Payment P
INNER JOIN SalesOrder S ON P.OrderNo = S.InvoiceNumber
Seth Phelabaum
Consistency is only a virtue if you're not a screwup. 😉
Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]