Click here to Skip to main content
14,211,360 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi, All

How to create clustered index with two columns

create clustered index cdx_students on student_table(studentID&BatchID)


is that query correct.... then How to do...

Thanks!
Posted
Updated 24-Aug-14 20:10pm
v4
Comments
Wes Aday 24-Aug-14 10:51am
   
Did you try it? Shouldn't it be create clustered index cdx_students on student_table(studentID,BatchID)?
prasanna.raj 24-Aug-14 10:53am
   
yes its correct ?
David Lee 145 24-Aug-14 21:34pm
   
I think Management Studio can generate the script for you properly. How about trying it?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

create clustered index cdx_students on student_table(studentID&BatchID)


I think it should be


create clustered index cdx_students on student_table(studentID,BatchID)
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190619.1 | Last Updated 25 Aug 2014
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100