Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SQL SELECT TOP 1000

I am trying to get the top 1000 rows in a large data set for only the year 2015 and 2016.  The field that has the close date is closed_at and the values are formatted as a date and a time. (00/00/0000 00:00:00 AM) SQL Select TOP 1000 works to get 1000 rows of data, but now I just need the rows that have a close date of 2015-2016.

2 Replies
Clever_Anjos
Employee
Employee

Would you mind posting here your SQL?

vishsaggi
Champion III
Champion III

May be this?

SQL SELECT TOP 1000

                      Col1

                     ,Col2

                     ,Closed_at

FROM <Table Name>

WHERE Year(Closed_at) >= 2015;