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
 General SQL Server Forums
 New to SQL Server Programming
 select based on date time

Author  Topic 

amodi
Yak Posting Veteran

83 Posts

Posted - 2009-09-14 : 09:06:03
Hello Friends,

I want to write a simple select statement as follows:

select *
from table
where createdOn = '2009-06-08 11:07:55.987'

where condition should be based on "date and time".

How can i achieve this?

Thansk.

bklr
Master Smack Fu Yak Hacker

1693 Posts

Posted - 2009-09-14 : 09:09:40
u query will gives result based on date and time only..........
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-09-14 : 09:10:43
quote:
where condition should be based on "date and time".

Can you explain more on what do you need here ?


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-09-14 : 09:11:59
quote:
Originally posted by amodi

Hello Friends,

I want to write a simple select statement as follows:

select *
from table
where createdOn = '2009-06-08 11:07:55.987'

where condition should be based on "date and time".

How can i achieve this?

Thansk.


Did it give what you want?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

amodi
Yak Posting Veteran

83 Posts

Posted - 2009-09-14 : 09:43:05
Sorry for not being clear.

Every thing works fine.


Go to Top of Page
   

- Advertisement -