Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Last 20 records

Status
Not open for further replies.

new2ora

Technical User
May 5, 2003
17
CA
Hi,

My table has the production data from 3 months. I want to see only the last 20 shifts. The table can include any number of months so the shift count is not the same.

So far i am able to sort the shifts decending, I just want to pick the top 20.

Suggestion?

Thanks
 
Have a look at the TOP predicate:
SELECT TOP 20 ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top