Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss content posted by Wayne Sheffield
»
The OVER Clause enhancements in SQL Server...
35 posts, Page 4 of 4
««
«
1
2
3
4
The OVER Clause enhancements in SQL Server code named “Denali”, CTP3
Rate Topic
Display Mode
Topic Options
Author
Message
Carla Wilson-484785
Carla Wilson-484785
Posted Friday, August 26, 2011 9:31 AM
Ten Centuries
Group: General Forum Members
Last Login: Yesterday @ 1:39 PM
Points: 1,355,
Visits: 1,740
Evil Kraig F (8/25/2011)
Wayne,
Excellent examples and a solid walkthrough, thank you.
Btw, for your question about real-use of range, you'd have to wrap the results in a distinct.
I'm thinking of log-entries. If you want by day-running totals, you'd do a by range and then distinct the results on the summed columns and the leading identifiers. This way if 2 ppl worked on a project 1 day and 10 people the next you could still have 2 rows, one identifying each day after the distinct with the correct totals.
Ah! Great example - thanks!
Post #1166180
mishaluba
mishaluba
Posted Saturday, August 27, 2011 9:46 PM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 5:54 PM
Points: 525,
Visits: 617
I had no idea you could use PARTITION BY with things like MIN, MAX, COUNT, etc.
Thank you for the article!
Post #1166646
WayneS
WayneS
Posted Sunday, August 28, 2011 8:01 AM
SSCertifiable
Group: General Forum Members
Last Login: 2 days ago @ 9:12 AM
Points: 6,370,
Visits: 8,235
mishaluba (8/27/2011)
I had no idea you could use PARTITION BY with things like MIN, MAX, COUNT, etc.
Thank you for the article!
You're welcome... and I'm glad you've learned from it!
Wayne
Microsoft Certified Master: SQL Server 2008
If you can't explain to another person how the code that you're copying from the internet works, then
DON'T USE IT
on a production system! After all,
you
will be the one supporting it!
Links:
For better assistance in answering your questions
,
How to ask a question
,
Performance Problems
,
Common date/time routines
,
CROSS-TABS and PIVOT tables Part 1
&
Part 2
,
Using APPLY Part 1
&
Part 2
,
Splitting Delimited Strings
Post #1166671
spaghettidba
spaghettidba
Posted Tuesday, August 30, 2011 5:45 AM
SSCarpal Tunnel
Group: General Forum Members
Last Login: Yesterday @ 8:17 AM
Points: 4,804,
Visits: 8,074
Nice article, Wayne!
And I also liked your post on the performance comparison on your blog.
Cool stuff. Thank you.
Get your two-cent-answer quickly
The Spaghetti DBA
Post #1167412
WayneS
WayneS
Posted Tuesday, August 30, 2011 7:09 PM
SSCertifiable
Group: General Forum Members
Last Login: 2 days ago @ 9:12 AM
Points: 6,370,
Visits: 8,235
Gianluca, I'm glad that you liked both the article and the blog. Thanks!
Wayne
Microsoft Certified Master: SQL Server 2008
If you can't explain to another person how the code that you're copying from the internet works, then
DON'T USE IT
on a production system! After all,
you
will be the one supporting it!
Links:
For better assistance in answering your questions
,
How to ask a question
,
Performance Problems
,
Common date/time routines
,
CROSS-TABS and PIVOT tables Part 1
&
Part 2
,
Using APPLY Part 1
&
Part 2
,
Splitting Delimited Strings
Post #1167865
« Prev Topic
|
Next Topic »
35 posts, Page 4 of 4
««
«
1
2
3
4
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.