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 |
What is the use of CASCADE CONSTRAINTS?
How do you fine the performance tunning?
How can i give the restrictions for the data entry, if i wish to enter only I ,II, III, IV in the grade actegory of student table?
What is sql server management studio? : sql server management studio
What is inline table-value user-defined function?
What are the advantages of using third-party tools?
What are the diifferences between the ms sql server vs mysql?
When would you use the stored procedures or functions?
what is a cursor and what is its use?
Is sql server 2016 free?
Do you know what is sql service broker?
4 Please write a querry to find repeated numbers in the following table. Table Name: Table1 Field1 10 15 20 15 10
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)