0
Apparently what you need to do is something like this:
SELECT
ID-ORDER, CREATEDDATE
FROM
ORDER
WHERE
DATEDIFF(DAY,CREATEDDATE,GETDATE()) < 10
0
0
Apparently what you need to do is something like this:
SELECT
ID-ORDER, CREATEDDATE
FROM
ORDER
WHERE
DATEDIFF(DAY,CREATEDDATE,GETDATE()) < 10
So I need to use Datediff in all cases like this?
In most cases, which makes period comparison between dates I believe is the best option.
Browser other questions tagged sql
You are not signed in. Login or sign up in order to post.
What the
SGBD?MySQL,SQL Server,Oracle?– Sorack
SQL server.....
– Andre Junior