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

What is a bit datatype?

920


What is buffer cash and log cache in sql server?

1051


You want to implement the many-to-many relationship while designing tables. How would you do it?

954


Why we use functions in sql server?

1010


Explain what is use of dbcc commands?

987


What is mean by candidate key?

945


What do we need queues in sql service broker?

1002


can any body tell me how to know the password of current user in sql server

2022


How to find the version of sql server? : sql server database administration

1044


What is the difference between web edition and business edition?

111


What is coalesce in sql server?

992


how would you troubleshoot blocking? : Sql server database administration

942


Explain few examples of stored procedure over triggers?

959


What are constraints in microsoft sql server?

1034


what are database files and filegroups? : Sql server database administration

882