Link to home
Start Free TrialLog in
Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on

Is it possible for a primary key to have same values?

Hi there;

I got a table having columns having 2 PKs.

So that is it possible to have same values for a column for the given row?

Table
ColA ColB
1        2
2        3
3        2
4        4
4        5

For ColA; 4 4 and 4 5, so ColA can have 4, even he is a PK?
Same for ColB 1 2 and 3 2 ?

Kind regards
SOLUTION
Avatar of VipulKadia
VipulKadia
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jazzIIIlove

ASKER

Before finalizing the question, ok, angelll, where are do you put composite key definition of VipulKadia in your comment?

Kind regards.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial