is there more the two primary key in a single table?
Answer Posted / jahir
refer below, actually its not primary key, Its Composite Key
CREATE TABLE [LoginHist] (
[UserId] [char] (15) NOT NULL ,
[LogDate] [smalldatetime] NOT NULL ,
[ClientIp] [char] (15) NOT NULL ,
[LoginCount] [int] NULL DEFAULT (0),
CONSTRAINT [PK_LoginHist] PRIMARY KEY CLUSTERED
(
[UserId],
[LogDate],
[ClientIp]
) ON [PRIMARY]
) ON [PRIMARY]
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is snapshot parameter in ssrs?
What is bookmark link in ssrs?
How are the exceptions handled in sql server programming?
What is subquery explain with example?
What are key, name and value columns of an attribute? : sql server analysis services, ssas
What is sqlcmd?
What is the difference between Clustered and Non-Clustered Index?
What are built in functions?
What do you mean by the term 'normalization'?
What is a ddl statement?
Difference between Inner vs outer joins?
What is the difference between count () and rowcount ()?
What is proper subset of candidate key?
What do you mean by cardinality?
How many null values we can have in a unique key field in sql server?