Can a table have two primary keys?

Answer Posted / kumar navdeep shanker

Ya, it is possible..
try with this Query..
create table cust11
(
cno int not null,
balance int not null,
cname varchar(10),
CONSTRAINT cust primary key (
cno,balance)
)

If there is any Problem.. plz reply

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the most restrictive isolation level? : Transact sql

556


Does sql support programming?

557


Is sql dba a good career? : SQL DBA

535


What do you mean by table in sql?

526


How does index help in query performance?

565






How can we make an if statement within a select statement?

543


What are the different types of constraints?

566


What is the purpose of my sql?

510


What is an index? What are the types of indexes? How many clustered indexes can be created on a table?

551


How does a covering index work?

531


How do you update a value in sql?

549


What is scalar function?

569


What is a temporal data type?

597


What is materialized view in sql?

465


What is acid property in a database?

586