Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Compare Time???

Author  Topic 

prompratan
Starting Member

30 Posts

Posted - 2004-12-22 : 20:31:23
I want compare time by sql language
example I want query database Time Column have begin 04:30 to 11:30 only

I should write sql command ....

Thank you for help

nr
SQLTeam MVY

12543 Posts

Posted - 2004-12-22 : 20:46:04
select *
from tbl
where convert(varchar(5),mycol, 108) between '04:30' and '11:30'


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

prompratan
Starting Member

30 Posts

Posted - 2004-12-22 : 20:54:33
Thank you very much <b>nr</b>
Go to Top of Page
   

- Advertisement -