THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | |
in Search

Browse by Tags

All Tags » SQL » t-sql tuesday   (RSS)
Showing page 2 of 4 (36 total posts)
  • Joins in single-table queries

    Tables are only metadata. They don’t store data. I’ve written something about this before, but I want to take a viewpoint of this idea around the topic of joins, especially since it’s the topic for T-SQL Tuesday this month. Hosted this time by Sebastian Meine (@sqlity), who has a whole series on joins this month. Good for him – it’s a great ...
    Posted to Rob Farley (Weblog) by rob_farley on December 10, 2012
  • When someone deletes a shared data source in SSRS

    SQL Server Reporting Services plays nicely. You can have things in the catalogue that get shared. You can have Reports that have Links, Datasets that can be used across different reports, and Data Sources that can be used in a variety of ways too. So if you find that someone has deleted a shared data source, you potentially have a bit of a horror ...
    Posted to Rob Farley (Weblog) by rob_farley on October 8, 2012
  • Tricks? In T-SQL?

    Four years ago, I was preparing to speak at TechEd Australia. I’d been asked to give a session on “T-SQL Tips and Tricks”, but I’d pushed back and we’d gone with “T-SQL Tips and Techniques” instead. I hadn’t wanted to show Tricks, because despite being a fan of ‘magicians’ (like Tommy Cooper) I feel like the trickery should disappear with the ...
    Posted to Rob Farley (Weblog) by rob_farley on August 13, 2012
  • MERGE gives better OUTPUT options

    MERGE is very cool. There are a ton of useful things about it – mostly around the fact that you can implement a ton of change against a table all at once. This is great for data warehousing, handling changes made to relational databases by applications, all kinds of things. One of the more subtle things about MERGE is the power of the OUTPUT ...
    Posted to Rob Farley (Weblog) by rob_farley on June 11, 2012
  • Analytic functions – they’re not aggregates

    SQL 2012 brings us a bunch of new analytic functions, together with enhancements to the OVER clause. People who have known me over the years will remember that I’m a big fan of the OVER clause and the types of things that it brings us when applied to aggregate functions, as well as the ranking functions that it enables. The OVER clause was ...
    Posted to Rob Farley (Weblog) by rob_farley on April 9, 2012
  • Be the surgeon

    It’s a phrase I use often, especially when teaching, and I wish I had realised the concept years earlier. (And of course, fits with this month’s T-SQL Tuesday topic, hosted by Argenis Fernandez) When I’m sick enough to go to the doctor, I see a GP. I used to typically see the same guy, but he’s moved on now. However, when he has been able to ...
    Posted to Rob Farley (Weblog) by rob_farley on March 12, 2012
  • APPLY – not exactly set-based

    In my last post, I showed a technique for dealing with working columns when writing T-SQL. The idea was around using APPLY to be able to push values from the existing set through calculations (but preferably not scalar functions, of course), producing new columns which can be used further down the query, even in the WHERE and GROUP BY clauses. ...
    Posted to Rob Farley (Weblog) by rob_farley on January 9, 2012
  • A T-SQL Tip: Working calculations

    T-SQL Tuesday again and this month is on T-SQL Tips (thanks Allen!). In some ways it’s a tough topic, because there are things I don’t really consider tips that other people do, and vice-versa. This one’s legitimate though: Using CROSS APPLY for working columns in calculations. Let me give you an example. Back in 2009, I wrote a blog post on ...
    Posted to Rob Farley (Weblog) by rob_farley on December 12, 2011
  • When is a SQL function not a function?

    Should SQL Server even have functions? (Oh yeah – this is a T-SQL Tuesday post, hosted this month by Brad Schulz) Functions serve an important part of programming, in almost any language. A function is a piece of code that is designed to return something, as opposed to a piece of code which isn’t designed to return anything (which is known as a ...
    Posted to Rob Farley (Weblog) by rob_farley on November 7, 2011
  • Joins without JOIN

    I’m now doing two sessions at the SQL Saturday event in Portland. I had been scheduled to do a single session (on indexes), but got an email yesterday asking if I could do another one as well. So now I’m going to do a session earlier in the day about Joins. Yes, JOINs. Nice co-incidence to find that this month’s T-SQL Tuesday, hosted by Stuart ...
    Posted to Rob Farley (Weblog) by rob_farley on October 3, 2011
Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement