bataraguru
Programmer
Hi,
I'm having a problem with my query.
<cfquery name="display_date" datasource="#dsn#">
SELECT * FROM reservation
WHERE (checkin >= 03/05/2005 OR checkout >= 03/05/2005) AND
RoomNo = 'SM001'
</cfquery>
Table reservation:
checkin (date/time) checkout (date/time) RoomNo (char)
1.03/05/2005 06/05/2005 SM001
2.01/05/2005 02/05/2005 SM001
3.13/05/2005 16/05/2005 SM001
Base on my table and query the result should be return 2 value (1 & 2). But in my problem there is no result.
if i change the '>=' to '=' it will return a value (1).
Could anybody help me on this.
Thanks in advanced.
I'm having a problem with my query.
<cfquery name="display_date" datasource="#dsn#">
SELECT * FROM reservation
WHERE (checkin >= 03/05/2005 OR checkout >= 03/05/2005) AND
RoomNo = 'SM001'
</cfquery>
Table reservation:
checkin (date/time) checkout (date/time) RoomNo (char)
1.03/05/2005 06/05/2005 SM001
2.01/05/2005 02/05/2005 SM001
3.13/05/2005 16/05/2005 SM001
Base on my table and query the result should be return 2 value (1 & 2). But in my problem there is no result.
if i change the '>=' to '=' it will return a value (1).
Could anybody help me on this.
Thanks in advanced.