Optimizing SQL: Sometimes It’s About the Data, Not Just the Query
I recently came across a LinkedIn post where someone used two CTEs to pull DISTINCT merchant_ids from the same table—split by year—and then joined everything back to the orders table. It worked! But it got me thinking. Sometimes, the real challenge i...
sqljournal.hashnode.dev5 min read