Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

is primary key compulsary in clustering? Expand / Collapse
Author
Message
Posted Friday, January 13, 2012 1:28 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, August 25, 2014 3:23 AM
Points: 7, Visits: 33
Can we fing clusters of following data?

Id P1 P2

x 5.6 4.5
x 1.6 4.5
y 5.6 4.5


having 2 clusters?
Post #1235426
Posted Friday, January 13, 2012 1:45 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, November 26, 2014 2:35 PM
Points: 1,554, Visits: 260
- your primary key hasn't to be your clustered index
- only one clustered index per table.




Post #1235429
Posted Monday, January 16, 2012 9:10 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Tuesday, January 28, 2014 8:15 AM
Points: 3,065, Visits: 4,639
vnj (1/13/2012)
Can we fing clusters of following data?

Id P1 P2

x 5.6 4.5
x 1.6 4.5
y 5.6 4.5


having 2 clusters?


I think original poster is referring to "clusters" on its data mining meaning, as in "data clustering" as opposed to "clustered/non-clustered indexes".

Having said that, PKs are created to enforce uniqueness on a column or combination of columns, more related to referential integrity than to data mining - you can do "data clustering" in an indexless, PKless table.


_____________________________________
Pablo (Paul) Berzukov

Author of Understanding Database Administration available at Amazon and other bookstores.

Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Post #1236676
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse