Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

i would like to print last 40 records

Hi All,

i have ttable which consist of 100members .But my requirement is to print only last 40members

Any help will be appreciarted

Thanks

3 Replies
anbu1984
Master III
Master III

How do you define last 40 members? Is it based on date?

Can you provide sample input and expected output

Anonymous
Not applicable
Author

i wouild like to sort it out with the help of rowno .

Thanks

anbu1984
Master III
Master III

Temp:

Load *,Rowno() As RowNo From Table;

NoConcatenate

Final:

Load * Where RwNo <= 40;

Load *,Recno() As RwNo Resident Temp Order by RowNo desc;

Drop Table Temp;