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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting x amount of rows from a table no search criteria

Status
Not open for further replies.

ghobbes98

Programmer
Joined
Feb 7, 2002
Messages
62
Location
IE
I was wondering how to get say the first 10 entries from a table? There are no critera to search by. So just return the rows.
is it possible to do some select statement
Sorry if this is a very basic question but relatively new to this
Hobbes
 
SELECT TOP 10 * FROM myTable ORDER BY fieldName Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048

mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top