query not working
From: Bhavna (anonymous_at_discussions.microsoft.com)
Date: 02/29/04
- Next message: Alan Balthrop: "Writing a Query based on Day of Week"
- Previous message: Brian Camire: "Re: select 2nd - 5th records?"
- Next in thread: MGFoster: "Re: query not working"
- Reply: MGFoster: "Re: query not working"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 29 Feb 2004 07:06:06 -0800
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_Departure
FROM dbo.Booking a INNER JOIN
dbo.Caravan_Booking b ON a.BookingNo = b.BookingNo
WHERE (b.Caravan_Inv_No = @InvNo)
AND (a.Dt_Of_Departure < @Prop_arrival_dt)
- Next message: Alan Balthrop: "Writing a Query based on Day of Week"
- Previous message: Brian Camire: "Re: select 2nd - 5th records?"
- Next in thread: MGFoster: "Re: query not working"
- Reply: MGFoster: "Re: query not working"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|