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...


is there more the two primary key in a single table?

Answers were Sorted based on User's Feedback



is there more the two primary key in a single table?..

Answer / narendra singh

yes, it may be possible that a table can have more than one
primary key but except its own primary key, others are
foreign keys...........

A primary key for one table is foreign key for other table..

thank Q......

Is This Answer Correct ?    0 Yes 0 No

is there more the two primary key in a single table?..

Answer / simi

yes,
CREATE TABLE [dbo].[custrate](
[id] [int] NOT NULL,
[patname] [char](50) COLLATE
SQL_Latin1_General_CP1_CI_AS NOT NULL,
[rate] [int] NULL,
CONSTRAINT [PK__custrate__12FE9D09] PRIMARY KEY CLUSTERED
(
[id] ASC,
[patname] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

Is This Answer Correct ?    0 Yes 1 No

is there more the two primary key in a single table?..

Answer / abhishek chakraborty

Yes

In Mysql

CREATE TABLE `rooms2hire`.`user data` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`email` VARCHAR( 255 ) NOT NULL ,
`name` VARCHAR( 255 ) NOT NULL ,
PRIMARY KEY ( `id` , `email` )
) ENGINE = MYISAM

Is This Answer Correct ?    0 Yes 1 No

is there more the two primary key in a single table?..

Answer / murugavel

yes
CREATE TABLE "accessmenu" (
"UID" int(11) NOT NULL DEFAULT '0',
"MID" int(11) NOT NULL DEFAULT '0',
"AlterPermission" tinyint(4) DEFAULT '0',
PRIMARY KEY ("UID","MID")
);

Is This Answer Correct ?    4 Yes 6 No

is there more the two primary key in a single table?..

Answer / laxman2610

No, One table can have only one primary key. but, if u want
u can create another one as unique with not null.

Is This Answer Correct ?    0 Yes 2 No

is there more the two primary key in a single table?..

Answer / ganesaselvam

yes

Is This Answer Correct ?    24 Yes 28 No

Post New Answer

More SQL Server Interview Questions

Using the customer, and order table in northwind database, please write a query to produce xml?

0 Answers  


how can you attach more than 20 ldf files in sql server

0 Answers   IBM,


what happens on checkpoint? : Sql server database administration

0 Answers  


Define model database?

0 Answers  


System requirements for sql server 2005 express edition?

0 Answers  


Explain user defined functions?

0 Answers  


How can u get the number of pupils connecting the database?

1 Answers   Cap Gemini,


Explain the microsoft sql server delete command?

0 Answers  


What are the types of table?

0 Answers  


Explain the properties of the relational tables?

0 Answers  


how to insert the values in 5 table at a time Using any single statement ?

6 Answers   Infosys, Value Labs,


How many index can be created for single table

4 Answers   CarrizalSoft Technologies, Verizon,


Categories