Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can a table have two primary keys?

Answer Posted / pardeeep

NO,A table have only one primary key.But we can use it on more then one column.
Exp..
create table emp(empno int,ename nvarchar(20),deptno int,constraint Pk_constraint primary key( empno,deptno))
This query for SQL server

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we insert data into materialized view?

993


Determine if oracle date is on a weekend?

1089


what is offset-fetch filter in tsql? : Transact sql

998


what are all types of user defined functions? : Sql dba

1086


What are reports usually used for?

1085


Do we need to rebuild index after truncate?

1098


What is difference between procedure and trigger?

1022


What are tables and fields?

1087


What are character functions in sql?

994


What is dml with example?

1155


How do temporal tables work?

1020


What is the source code of a program?

1120


Does sql*plus also have a pl/sql engine?

1131


What is recursive join in sql?

1068


What are different sql data types?

1128