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?

Answer Posted / sivakumar

No, When creating table using script we can create primary
key another one is called composite key that means
combination of more than
one column...



CREATE TABLE [LoginHist] (
[LogDate] [smalldatetime] NOT NULL ,
[ClientIp] [char] (15) NOT NULL ,
[LoginCount] [int] NULL DEFAULT (0),
CONSTRAINT [PK_LoginHist] PRIMARY KEY CLUSTERED
(
[LogDate],
[ClientIp]
) ON [PRIMARY]
) ON [PRIMARY]

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is SQL Azure?

105


How to list all stored procedures in the current database using ms sql server?

1051


Are resultset updatable?

895


How to disconnect from a sql server using mssql_close()?

1022


What is user defined datatypes and when you should go for them?

962


Describe the functionalities that views support.

1049


Explain how many normalization forms?

967


Why do we partition data?

969


what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration

919


What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration

1031


What are exact numeric data types in ms sql server?

985


Do you know how to implement service broker?

885


What is difference between views and tables?

912


Tell me can we use custom code in ssrs?

954


How to count duplicated values in a column in ms sql server?

994