is there more the two primary key in a single table?
Answer Posted / sivakumar
No, When creating table using script we can create primary
key another one is called composite key that means
combination of more than
one column...
CREATE TABLE [LoginHist] (
[LogDate] [smalldatetime] NOT NULL ,
[ClientIp] [char] (15) NOT NULL ,
[LoginCount] [int] NULL DEFAULT (0),
CONSTRAINT [PK_LoginHist] PRIMARY KEY CLUSTERED
(
[LogDate],
[ClientIp]
) ON [PRIMARY]
) ON [PRIMARY]
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Define candidate key, alternate key, and composite key.
optimization techinques
Can you explain what are the restrictions applicable while creating views? : SQL Server Architecture
How to truncate the log in sql server 2012? : sql server database administration
What is user-defined scalar function?
How to count duplicated values in a column in ms sql server?
What is the difference between rank and dense_rank?
What does truncate do?
Explain the properties of subqueries in sql server?
Explain the collation?
Where do we use trace frag?
Do you know what is normalization of database? What are its benefits?
Write a SQL query to delete a table?
What is in place upgrade in sql server?
What is collation sensitivity? Explain different types.