transact sql question - returning x rows
From: SqlJunkies User (User_at_-NOSPAM-SqlJunkies.com)
Date: 12/10/04
- Next message: David Gugick: "Re: SQL over WAN with ADO, how to optimize?"
- Previous message: Alejandro Mesa: "RE: Parsing a variable"
- Next in thread: David Portas: "Re: transact sql question - returning x rows"
- Reply: David Portas: "Re: transact sql question - returning x rows"
- Reply: Alejandro Mesa: "RE: transact sql question - returning x rows"
- Reply: Uri Dimant: "Re: transact sql question - returning x rows"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 10 Dec 2004 11:41:56 -0800
HI,
I am trying to return the first 4 rows in the table on each product.
The table is set up as follows:
item date
a 1
a 2
a ...n
b 1
b 2
b 3
b ..n
...
the result should be the first 4 rows for product a, the first 4 rows for for product b and so on...
Thanks
--- Posted using Wimdows.net NntpNews Component - Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
- Next message: David Gugick: "Re: SQL over WAN with ADO, how to optimize?"
- Previous message: Alejandro Mesa: "RE: Parsing a variable"
- Next in thread: David Portas: "Re: transact sql question - returning x rows"
- Reply: David Portas: "Re: transact sql question - returning x rows"
- Reply: Alejandro Mesa: "RE: transact sql question - returning x rows"
- Reply: Uri Dimant: "Re: transact sql question - returning x rows"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|