Red Gate forums :: View topic - rownum
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation

SQL Prompt code snippets forum

rownum

Search in SQL Prompt code snippets forum
Post new topic   Reply to topic
Jump to:  
Author Message
Bill_Ross



Joined: 22 Mar 2010
Posts: 14

PostPosted: Thu May 13, 2010 2:16 pm    Post subject: rownum Reply with quote

I love the Over Partition:

row_number() OVER ( Partition BY <foreignkey, varchar> order by <foreignkey,varchar> ) AS [Seq]

Ctrl-Shit-M to populate
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group