Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to grab the first record within each group?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00638707
Message ID:
00638710
Views:
21
See the following Google Thread:

http://groups.google.com/groups?hl=en&ie=ISO-8859-1&oe=ISO-8859-1&threadm=372A0FA7.49BF291C%40elucidex.com&rnum=1&prev=/groups%3Fhl%3Den%26ie%3DISO-8859-1%26oe%3DISO-8859-1%26q%3DContactPersonsName%26btnG%3DGoogle%2BSearch%26meta%3Dgroup%253Dmicrosoft.public.sqlserver.*

>Is there a way, using a SQL query, to grab the first record within each group of records in a SQL query?
>
>I currently have the need to grab just the first record within each group of records where a group of records is defined by a SQL 'group by' clause and where a 'order by' clause determines what which record floats to the top of each group.
>
>Thank you!
>Malcolm Greene
>Brooks-Durham
Tim Westmoreland
Software Engineer
Skyline Technologies, Inc.

"Upper classes are a nation's past; the middle class is its future." - Ayn Rand, Russian-born author (1905-1982).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform