Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 partition on multiple columns

Author  Topic 

WoodHouse
Posting Yak Master

211 Posts

Posted - 2010-03-02 : 04:40:27


Please help on this..

Is it possible to create a partition on multiple columns? If so, how to make it possible?

bklr
Master Smack Fu Yak Hacker

1693 Posts

Posted - 2010-03-02 : 05:32:04
u can use row_number()over(partition by columnname order by col)

if not
post some sample data and output data
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-03-02 : 08:28:26
quote:
Originally posted by WoodHouse



Please help on this..

Is it possible to create a partition on multiple columns? If so, how to make it possible?




are you asking on table partitioning or partition by clause?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -