hello..
how can I select only the first N rows out of of a table?
thank's in advance...Lior
hello..
how can I select only the first N rows out of of a table?
thank's in advance...Lior
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manan8 reputationPosted Sep 28, 2007, 3:35 AM EDT
You can get first n rows like,
Select TOP 10 * from [TableName]
If you want to fetch record of only few columns then,
Select TOP 10 [col1],[col2],[col3] from [TableName]