xrapidx
Honorary Master
- Joined
- Feb 16, 2007
- Messages
- 40,308
I'm having a bad day thinking today. I have a table with records from different sources, I'm trying to select the record with the lowest source ranking for a specific ModelID/MasterValueID combination:
SOURCE|MODELID|MASTERVALUEID|RANKING
1|66612|37|2
1|66612|183|1
3|66612|183|2
3|66612|37|1
So - from the above, I'm trying to get out the records in red... it needs to be fast, and a high record count is expected.
SQL Server 2005
SOURCE|MODELID|MASTERVALUEID|RANKING
1|66612|37|2
1|66612|183|1
3|66612|183|2
3|66612|37|1
So - from the above, I'm trying to get out the records in red... it needs to be fast, and a high record count is expected.
SQL Server 2005