G
Guest
Hi
Im trying to write a query that will select the date of departure for a specific Caravan Inventory no. The dates retrieved must be less than the date specifed by the user (@Prop_arrival_Dt
The problem i am having is that some of the dates retrieved are not less than the date value passed in. This line.....(a.Dt_Of_Departure < @Prop_arrival_dt) does not seem to be working correctly
Does anyone have any idea what i may be doin wrong?
SELECT a.Dt_Of_Departur
FROM dbo.Booking a INNER JOI
dbo.Caravan_Booking b ON a.BookingNo = b.BookingN
WHERE (b.Caravan_Inv_No = @InvNo)
AND (a.Dt_Of_Departure < @Prop_arrival_dt)
Im trying to write a query that will select the date of departure for a specific Caravan Inventory no. The dates retrieved must be less than the date specifed by the user (@Prop_arrival_Dt
The problem i am having is that some of the dates retrieved are not less than the date value passed in. This line.....(a.Dt_Of_Departure < @Prop_arrival_dt) does not seem to be working correctly
Does anyone have any idea what i may be doin wrong?
SELECT a.Dt_Of_Departur
FROM dbo.Booking a INNER JOI
dbo.Caravan_Booking b ON a.BookingNo = b.BookingN
WHERE (b.Caravan_Inv_No = @InvNo)
AND (a.Dt_Of_Departure < @Prop_arrival_dt)