Re: select 2nd - 5th records?
From: John Spencer (MVP) (spencer4_at_comcast.net)
Date: 02/29/04
- Next message: Brian Camire: "Re: select 2nd - 5th records?"
- Previous message: John Spencer (MVP): "Re: Query expression needed to edit data"
- In reply to: jim: "select 2nd - 5th records?"
- Next in thread: Brian Camire: "Re: select 2nd - 5th records?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 29 Feb 2004 09:12:05 -0500
Two methods I can think of:
Select the Top 4 of your Top 5 sorted in reverse order.
Or create a query that gets the top 1 vice the top 5. Then do an unmatched
query on the two queries.
jim wrote:
>
> hi,
> i know i can get top 5th of records by
> "select top 5 ..." statement.
> but, how can i get 2nd - 5th records but no 1st statement?
>
> in mysql, i can use "select ... limit 2,5".
> in oracle, i can use "select ... rownum >2 and rownum < 5"
>
> how can i do that in access?
>
> thanks,
> jim
- Next message: Brian Camire: "Re: select 2nd - 5th records?"
- Previous message: John Spencer (MVP): "Re: Query expression needed to edit data"
- In reply to: jim: "select 2nd - 5th records?"
- Next in thread: Brian Camire: "Re: select 2nd - 5th records?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|