Quote:
|
Originally Posted by georgev
Code:
SELECT col1
, col2
, col3
, date_col
FROM table_name
WHERE date_col BETWEEN '2008-01-01T00:00:00.000' AND '2009-01-01T00:00:00.000'
|
Hi George
Firstly Thanks very much for your prompt answer.
however I used your method to run, still not working.
I have 2 tables: clients, clt_orders. is there any error with the statement below?
sql="select * from clients,clt_orders where clients.ID=clt_orders.client_id and clt_orders.date between '"&request("start_date")&"' and '"&request("end_date")&"' order by clt_orders.date"
by the way, date format is mm/dd/yyyy. does it matter with this? if so, how can I convert to right format. Thanks again!