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


Please Help Members By Posting Answers For Below Questions

Explain what is lock escalation?

766


What is the difference between varchar and nvarchar?

679


What is the native system stored procedure to execute a command against all databases?

717


whats new about truncate in sql server 2008?

2225


Does transparent data encryption provide encryption when transmitting data across the network?

804






Mention the command used to rename the database.

725


How many cores do I need for sql server 2016?

670


Do you know data definition language, data control language and data manipulation language?

795


What Is Rdbms?

840


How can you tell if a database object is invalid?

782


What are different types of database indexes?

689


How you would rewrite the sql query to return the customerid sorted numerically?

755


What is the purpose of the tempdb database?

747


Does windows server 2016 come with sql server?

677


What is public role in sql server?

746