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
 date

Author  Topic 

sharathkatpally
Starting Member

4 Posts

Posted - 2009-04-22 : 16:40:08
Hello,
I trying to do a select statement with a where clause on column name [INTGRT_TRX_DT]. The data is in this form.

2008-12-15 04:36:20.223
2008-12-15 04:36:19.887
2008-12-15 04:36:19.727
2008-12-15 04:36:19.687
2008-12-15 04:36:19.650

select * from table1 where [INTGRT_TRX_DT] = '2008-12'.

please help

thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-04-22 : 16:42:19
SELECT * FROM Table1 WHERE [INTGRT_TRX_DT] >= '2008-12-01' AND [INTGRT_TRX_DT] < '2009-01-01'



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -