Problem with Date Query - sql server 2008
Posted
by Gold
on Stack Overflow
See other posts from Stack Overflow
or by Gold
Published on 2010-04-12T06:37:10Z
Indexed on
2010/04/12
6:43 UTC
Read the original article
Hit count: 353
sql-server-2008
|query
hi
i have this date's & Time's:
date1: 10/04/2010 - Time: 08:09
date2: 11/04/2010 - Time: 08:14
i need to show all the date's between 10/04/2010 time 06:00 and 11/04/2010 time 6:00
i write this: select * from MyTbl where ((Tdate BETWEEN '20100410' AND '20100411') and (Ttime BETWEEN '06:00' and '06:00'))
but i get empty table
thank's in advance
© Stack Overflow or respective owner