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)
 Search by Time

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-08-20 : 19:14:40
bobbi writes "how do you make a select statement to do time comparisons
on columns of type smalldatetime

for example, let's say you have a table called logintimes
and in this table there's a column called timestamp of type smalldatetime which stores the date and time of each user's logins.

how do you make a select statement to search by time only
and ignore the dates

ie. give all logins which happened between 9am to 10am?

"
   

- Advertisement -