|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Select Top Unique Records
Okay, I need some help with a SQL query. I have a DB with the following:
Quote:
For each manual, it could have multiple revisions. The way I identify each manual is by the part number, type ID, and product ID. How do I select just the MOST RECENT manual for each revision (in other words, just the most recent revision of the manual). Some examples of data include: 1, 1, 10, Install Guide, 1 2, 1, 10, Install Guide, 2 3, 2, 12, Service Manual, 1 4, 2, 12, Service Manual, 2 5, 2, 12, Service Manual, 3 6, 1, 10, Install Guide, 3 So, the SQL would just select records 5 and 6, since those are unique manual types and are the most recent revisions.
__________________
"You'll never be as perfect as BLaaaaaaaaarche." |
|
#2
|
||||
|
||||
|
__________________
Wolffy ------------------------ Teaching people to fish. |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Select Top Unique Records |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|