Hi techies,
Coming from an Oracle background I am struggling to do something as simple as extracting all records where date is "what I specify"
I tried this:
select * from my_table
where convert(char(15),dtime,2) like '2004.04.20%'
When I do a select * of my_table, the dtime format is "yyyy-mm-dd hh:mm:ss:si"
Please assist me in the right direction )
Coming from an Oracle background I am struggling to do something as simple as extracting all records where date is "what I specify"
I tried this:
select * from my_table
where convert(char(15),dtime,2) like '2004.04.20%'
When I do a select * of my_table, the dtime format is "yyyy-mm-dd hh:mm:ss:si"
Please assist me in the right direction )