Re: I need a query
From: Ray Higdon (sqlhigdon_at_nospam.yahoo.com)
Date: 03/13/04
- Next message: Vishal Parkar: "Re: Convert string to Number"
- Previous message: Mehran: "Re: I need a query"
- In reply to: Mehran: "Re: I need a query"
- Next in thread: Vishal Parkar: "Re: I need a query"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 13 Mar 2004 08:31:04 -0500
Top N means absolutely nothing without an order by, you are not guaranteed
order even if you have a clustered index without an order by.
-- Ray Higdon MCSE, MCDBA, CCNA --- "Mehran" <anonymous@discussions.microsoft.com> wrote in message news:c4b401c408de$22377c00$a401280a@phx.gbl... Hi! Thank you for your reply. It doesnīt matter. The query is SELECT * FROM MONEY When i run this query i get 100 rows. But i want to see rows between 20 and 40. I can see top 20. Itīs easy SELECT TOP 20 FROM MONEY But my question is, is it possible to run a query to get row between 20 and 40 or 40 and 60 etc. Mybe like this SELECT BETWEEN 20 TO 40 FROM MONEY :-) Thank you once again for your reply Kind regards Mehran >-----Original Message----- >Can you post your query? What are you using as criteria for the top 100? > >-- >Ray Higdon MCSE, MCDBA, CCNA >--- >"Mehran" <anonymous@discussions.microsoft.com> wrote in message >news:c5ee01c40887$7117aa40$a101280a@phx.gbl... >Hi! > >Think that you get 100 rows in result of a query. But i >donīt want to see all of them. I want to see the rows >between 20 and 40. Is it possible to do a query who get >the rows between 20 and 40??? > >Thank you for helping me >Kind regards >Mehran > > >. >
- Next message: Vishal Parkar: "Re: Convert string to Number"
- Previous message: Mehran: "Re: I need a query"
- In reply to: Mehran: "Re: I need a query"
- Next in thread: Vishal Parkar: "Re: I need a query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|