T-SQL

External Article

Snake draft sorting in SQL Server, part 3

  • Article

In part 2 of this series, I showed an example implementation of distributing a long-running workload in parallel, in order to finish faster. In reality, though, this involves more than just restoring databases. And I have significant skew to deal with: one database that is many times larger than all the rest and has a higher growth rate.

2024-06-07

External Article

SQL Logic

  • Article

In this article, I will discuss the history and thinking behind several types of logic that are typically associated with writing relational database code.

2024-04-26

External Article

Pagination and ordering by large values

  • Article

Pagination is a technique for limiting output. Think of Google search results, shopping the electronics category on Amazon, or browsing tagged questions on Stack Overflow. Nobody could consume all of the results in a single shot, and no site wants to spend the resources required to present them all to us

2024-04-19

Blogs

Big Queries, Big Money

By

I had been meaning to post this, so as I finished a piece that...

A New Word: Fardle-dun

By

fardle-din – n. a long-overdue argument that shakes up a relationship, burning wildly through...

Lukáš Karlovský: I got the green light from management and built Fabric specialization from scratch

By

The post Lukáš Karlovský: I got the green light from management and built Fabric...

Read the latest Blogs

Forums

The Pervasive Nature of Open Source

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Pervasive Nature of Open...

Group Delete

By Bruin

I have 2 tables which I need to cleanup old costkeys, based upon a...

Migrating from SSRS 2008 (SP Integrated) to 2022 (Native)

By zootbot

Has anyone done a migration from sharepoint integrated ssrs to native? I'm not finding...

Visit the forum

Question of the Day

Subqueries II

What is wrong (if anything) with this code?

SELECT *
 FROM Sales.SalesOrderHeader AS soh 
 WHERE customerid IN (SELECT soh.CustomerID 
                       FROM Sales.Customer AS C
   WHERE soh.CurrencyRateID = 1
   ORDER BY c.ModifiedDate)

See possible answers