12

Running SQL Activity Monitor to find inefficient queries. According to legecy team this is how they think they should query SQL 2014 for a customer.

Comments
  • 2
    Wtf? This is the worst sql query I have ever seen... I've seen some pretty bad ones
  • 2
    Believe or not but they have much worse.
  • 0
    Oh, the horror!
  • 1
    While working at a health insurer not to be named(I wasn't even considered IT) the IT department sent me a query similar to this, with temp tables and left joins all over the place.
  • 0
    And we weep for their users.
  • 0
    Oh dear God, what have they done...?
  • 0
    FFS 👊🏼
  • 1
    Still looks nicer than some of the garbage I've seen with one of the systems where I work. I hate SQL Server...don't know why it's so difficult to get organizations to use PostgreSQL.
  • 1
    @wbuchanan because they have no one to pin it on if anything goes wrong. It's the same reason people use sybase or Oracle.
  • 1
    @daarkfall they can still find someone to pin things on if they use someone like EnterpriseDB's PostgreSQL distribution. I just hated the fact that I needed to learn a small amount of C# so I could get regular expressions in SQL Server.
Add Comment