dragonwell
Programmer
Which is better?
or this
Why?
Code:
CREATE TABLE UserGroup
(
UserGroupID int,
UserID int,
GroupID int,
CONSTRAINT PRIMARY KEY (UserGroupID)
)
or this
Code:
CREATE TABLE UserGroup
(
UserID int,
GroupID int,
CONSTRAINT PRIMARY KEY (UserID, GroupID)
)
Why?