Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
ferha_jafri
Partner - Creator III
Partner - Creator III

Possible to use where clause in SQL select statement

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

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Something like:

SELECT *

FROM TABLE_NAME

WHERE Date_Column >= DATEADD(DAY, -2, GETDATE())

View solution in original post

3 Replies
tresesco
MVP
MVP

Something like:

SELECT *

FROM TABLE_NAME

WHERE Date_Column >= DATEADD(DAY, -2, GETDATE())

PrashantSangle

Hi,

Try

select *

From TableName

Where trunc(dateField)>=trunc(sysdate()-2);

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Kushal_Chawda

What is the source database?