Hi Folks,
I am working on a (hopefully) one time assignment to pull some data from an sql server. The data needs to be pulled for a particular day.
While I am familiar with Oracle, I do not know the SQL syntax (on Sql server) to formulate the correct query.
Sample Date data looks as follows
"1/1/2007 12:24:18 AM"
Can somebody please convert the following Oracle query into something that an SQL server might understand ?
select *
from table_A
where trunc(CREATE_DATE) >= to_date('11/JUN/2008', 'DD/MON/YYYY')
and truncate(CREATE_DATE) < to_date('11/JUN/2008', 'DD/MON/YYYY')
/
Thanks in advance
rogers42
I am working on a (hopefully) one time assignment to pull some data from an sql server. The data needs to be pulled for a particular day.
While I am familiar with Oracle, I do not know the SQL syntax (on Sql server) to formulate the correct query.
Sample Date data looks as follows
"1/1/2007 12:24:18 AM"
Can somebody please convert the following Oracle query into something that an SQL server might understand ?
select *
from table_A
where trunc(CREATE_DATE) >= to_date('11/JUN/2008', 'DD/MON/YYYY')
and truncate(CREATE_DATE) < to_date('11/JUN/2008', 'DD/MON/YYYY')
/
Thanks in advance
rogers42