In the primary key have a multiple field or not?
Answers were Sorted based on User's Feedback
Answer / prashanth kumar
Yes , it have multiple fields.Run below query and creating
primary key on p_Id and LastName.
CREATE TABLE Persons
(
P_Id int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
CONSTRAINT pk_PersonID PRIMARY KEY (P_Id,LastName)
)
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / rajkumar
s primary key have the multiple filed use os composite
primary key.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ziyaur rahman
no,in one table there is only one primary key field
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / prasadhari_m@yahoo.com
A TABLE ALLOWS ONLY ONE PRIMARY KEY.
| Is This Answer Correct ? | 0 Yes | 1 No |
1.can we set the more than 1 primary keys for a table? 2.please give me the difference between Cluster Index and non-Clustered Index 3.can we use query like this "Select * from Table1,Table2;"
Is it possible for a stored procedure to call itself or recursive stored procedure?
What is cursor in ms sql server?
How to filter records of table in SQL SERVER?
0 Answers Petranics Solutions,
SQL Server Performance Tuning for Stored Procedures & reducing debugging time?
1 Answers CarrizalSoft Technologies,
create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration
What is delete query?
If we use where clause in the left outer join then how the query would behave/act?
Does any body please help me what question's have asked for SSRS in the interview?
What do you understand by a stored procedure?
What is change data capture (cdc) in sql server 2008?
How to define output parameters in stored procedures?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)