Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Everyone,
I have an issue in which I want to select only last 2 days data from the server table not sure how to use where clause in sql select statement.
Thank you
Regards
Ferha
Something like:
SELECT *
FROM TABLE_NAME
WHERE Date_Column >= DATEADD(DAY, -2, GETDATE())
Something like:
SELECT *
FROM TABLE_NAME
WHERE Date_Column >= DATEADD(DAY, -2, GETDATE())
Hi,
Try
select *
From TableName
Where trunc(dateField)>=trunc(sysdate()-2);
Regards
What is the source database?