Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Identifying duplicate sets

Author  Topic 

scelamko
Constraint Violating Yak Guru

309 Posts

Posted - 2006-10-03 : 15:48:55
Guys,

I am dealing with following Duplicate sets (I have 40000 of them) for each value of BP we have different sets of seq, type. To distinguish the duplicate set I want to populate a column called subid with no if times the duplicate set
occurs for each value of BP. Note that table has rows ordered by BP

BP SEQ TYPE SUBID
_____________________________
100 1 1 1
100 2 1 1
100 3 3 1
------ SET ONE --------------
100 1 1 2
100 2 1 2
100 3 3 2
------ SET TWO --------------
200 1 1 1
200 2 3 1
------ SET ONE --------------
200 1 1 2
200 2 3 2
------ SET TWO ------------

any suggestions/inputs would help

Thanks


   

- Advertisement -