try this...
DELETE content..z_fare_code_rates
FROM content..z_fare_code_rates
INNER JOIN content..sailings AS sailings
ON rates.sailingrecno = sailings.recno
INNER JOIN content..ships AS ships
ON sailings.shiprecno = ships.recno
INNER JOIN working.dbo.z_pricing AS pricing
ON ships.recno = pricing.shiprecno
AND rates.farecode = pricing.farecode
I'm gonna go take some Advil now for the headache ;-)
Main Topics
Browse All Topics





by: angelIIIPosted on 2008-03-14 at 15:34:23ID: 21130182
do you want to just rewrite with JOIN, or is there a problem with the results of IN() ?