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
How can you fetch alternate records from a table?
What is sql service broker?
Explain atomicity?
When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
Explain logical operators in sql server?
What is the difference RDBMS and Graph Database?
What is the usage of sign function?
Explain the concepts and capabilities of sql server?
Explain features of analysis services?
What are the extra roles available in msdb? : sql server security
in the physical file layout, where should the transaction log be stored in relation to the data file?
What is clustered primary key?
What is triggers and its types?
what is the system function to get the current user's user id? : Sql server database administration