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 we create a clustered index on composite primary key.

Answer Posted / monal

You can also do this.

create table Test
(officeid integer not null,
empid integer not null,
age integer ,
sex varchar(5),
name varchar(20),
PRIMARY KEY (OFFICEID, EMPID))


this will also create composite primary key and cluster
index on composite primary key.

Is This Answer Correct ?    18 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know how to make remote connection in database?

1008


What is the use of for clause?

1162


How to list all login names on the ms sql server?

1182


When would you use it?

1041


When would you use sql joins?

1026


Explain the Ways to improve the performance of a sql azure database?

84


How to get the query of a table in sql server?

961


how to control the amount of free space in your index pages? : Sql server database administration

1085


Can a table have 2 foreign keys?

954


How many tables can be joined in SQL Server?

1111


What is difference between clustered and non clustered index?

1032


What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration

1199


How many columns can exist together per table?

1206


What is a mutating table error and how can you get around it?

1125


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

1189