Link to home
Start Free TrialLog in
Avatar of gljsentvid16
gljsentvid16

asked on

How to limit how many rows I wish to get

I have a huge database and also huge query. I would like to
add a possibility to limit a report of let's say 100 rows.
As I have tried with count() it took a half an hour till I
have had enough and had killed a process.
What to do?
ASKER CERTIFIED SOLUTION
Avatar of connex
connex
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gljsentvid16
gljsentvid16

ASKER

Not working, I'm using InterBase SQL server!
Hmm well then I cant help you other, than suggesting using count (like you tried already), as I don't know anything about the IB SQL, sorry. Just reject my answer, and maybe state such things in your question next time.

Try
Select Top 100 from mytable