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)
 Adding Primary Key to set of data

Author  Topic 

kris22
Starting Member

35 Posts

Posted - 2009-07-06 : 16:07:16
Hi Guys,
I have a set of data like this.
IDNUM
11201
11201
11201
21501
21501
21501
I want to add a primary key in the brand new column and it should come like this

PK IDNUM
1 11201
1 11201
1 11201
2 21501
2 21501
2 21501

Can you guys help me how to get this? appreciate your help
Thx

vijayisonly
Master Smack Fu Yak Hacker

1836 Posts

Posted - 2009-07-06 : 16:17:04
Primary key should be unique
Go to Top of Page

kris22
Starting Member

35 Posts

Posted - 2009-07-06 : 17:07:49
[quote]Originally posted by vijayisonly

Primary key should be unique
[/quote
i got it
Thx
Go to Top of Page
   

- Advertisement -