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!

Limited the number of rows being displayed

Status
Not open for further replies.

pita2

MIS
Jun 27, 2005
16
US
What is the SQL command to limite the number of rows being displayed?

Select * from cust where name=smith;

The above sql statemenat generates 500 records. But I only want the first 20. Any idea how I can narrow the results without adding extra criteria? Any help would be appreciated. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top