Listen

Description

Everyone treats SQL like it’s some kind of wizard spell. Truth is, it’s less Harry Potter and more IKEA manual—you just need the basic pieces and how they snap together. And unlike IKEA furniture, there are no missing screws or mystery hex keys. Subscribe and grab the cheat sheet at m365 dot show. Quick and painless. By the end, you’ll confidently write a safe SELECT that gives you business answers without begging IT. If you can wrangle pivot tables in Excel, you’re already halfway to pulling your first query. Of course, knowing that doesn’t stop the panic when you’re staring at a totally blank query window.The Blank Query Window PanicThe Blank Query Window Panic is real. You open SQL Server Management Studio, faced with that gray canvas, and there’s the cursor—blinking at you like it’s judging your entire career. For some folks, that blinking line carries the same weight as a countdown timer in a movie bomb scene. One wrong move and you imagine the whole database going up in flames. The funny part? That fear isn’t logical. The blank window intimidates because we’ve been conditioned to think SQL is arcane, dangerous, and reserved for high priests of IT. But here’s the truth: your first step—typing SELECT—isn’t destructive. SELECT is read-only in normal usage; it generally doesn’t change the data. That’s worth pausing on: you can hit execute and all you get is information back. Nothing updates, nothing deletes. Still, quick reminder—verify this with Microsoft’s own documentation for your safety, since some edge cases may exist. But the general safe takeaway: SELECT is your way to ask questions, not swing an axe. So let’s get rid of the fear early. SELECT literally means “choose.” When you say `SELECT CustomerName, TotalSpend FROM Orders WHERE OrderDate >= '2025-01-01' ORDER BY TotalSpend DESC`, you’re not summoning demons. You’re just asking: “Show me customers and what they spent since the new year, highest first.” That’s about as risky as reading a menu. No dragons, no alarms, no smoking servers. And that’s what most people never get told. SQL was designed to be approachable. It wasn’t supposed to sound like obscure math—terms like “relational algebra” and “expressive query models” are only helpful if you’re writing a textbook. For everyone else, they’re just academic wrappers around a tool that really just helps you pick your data the way you’d pick items from a list. Gatekeeping language turns SQL into Klingon, but once you stop overthinking, it's just commands that read like polite requests. Meanwhile, the workplace makes this worse. You’ve probably seen the dreaded cycle: a manager asks for a simple breakdown, something like “Who bought the most last month?” Instead of running a quick SELECT to answer in minutes, many people rush to open a ticket. Then the request sits in a queue, lost in IT’s backlog, and by the time you get it, the question is already outdated. This isn’t about blame—it’s about missed opportunity. The tool to get the answer faster is sitting in front of you, but panic keeps it locked away. That’s why reframing matters. SQL isn’t a bomb—it’s a waiter. You say, “SELECT burger, fries,” but instead of fries, it’s `ProductName, SalesTotal`. The database doesn’t argue, doesn’t get the order wrong, and doesn’t dump soda on your lap. It brings back exactly what you asked for. If you don’t narrow your request, sure, it’ll bring you the entire menu, all at once—and that’s where clauses like WHERE and ORDER BY trim things down. But the base request is still simple, predictable, and safe. Let’s take the mystique out of the core parts. Think recipe, not ritual. SELECT picks columns. FROM names the table. WHERE filters rows. ORDER BY sorts. Done. You string them together, and the pattern repeats across almost every query. It’s systemized, not mysterious. Once you start seeing SQL as a set of building blocks instead of spells, the intimidation factor drops. That mental flip is powerful. It moves you from a place of dependence—waiting for IT to hand over reports—to taking direct control of your own questions. You stop worrying you’ll break production just by looking at it, because looking is exactly what SELECT does. And once you see patterns in one query, you’ll recognize them everywhere. Now, here’s where things get interesting. Microsoft couldn’t resist adding its own brand identity to this. They didn’t just hand you SQL, they spiced it with extras and called it T-SQL. Same foundation, but with quirks, enhancements, and some hurdles if you’re trying to copy-and-paste from Google or Stack Overflow. And that’s where the next layer of confusion comes in.T-SQL vs SQL: Microsoft’s Branding SpinMicrosoft calls T-SQL “just SQL with extras.” That sounds harmless enough—until you paste in a script from some blog and SQL Server rejects it like you tried to teach it Klingon. Suddenly those little “extras” aren’t so optional. The obvious question is: what are they, and do they matter when you just want a quick report? Sometimes no. Other times yes, and if you’re not ready, they’ll trip you and make you think the database is gaslighting you. Here’s the plain reality: SQL is the international standard. Think basic grammar rules—SELECT, FROM, WHERE, ORDER BY. T-SQL is Microsoft’s house dialect, their way of seasoning the dish. Most of the time, the core flavor stays the same. A SELECT that pulls customers and sales totals runs fine in SQL, it runs fine in T-SQL. So far, so safe. The real issue comes when you start leaning on functions, error handling, or more complex logic. That’s when Microsoft insists you speak with their accent. A common frustration looks like this: you grab a query online that uses “LIMIT” to trim results. Paste it into SQL Server, and the error pops up. Why? In T-SQL, the equivalent is “TOP.” Same outcome, different keyword. Now, whether TOP vs LIMIT is the exact difference—check Microsoft’s documentation to confirm. That part matters because if you rely on memory or hearsay, you’ll waste an afternoon rewriting perfectly valid code into Microsoft’s chosen phrasing. Let’s make this concrete. Verify the details in Microsoft’s docs, but here are the sorts of differences you’re likely to run into: * Procedural control: IF and WHILE loops, so you can move beyond simple queries and build logic inside your database code. * Error handling: TRY…CATCH blocks, useful for making automated jobs fail gracefully instead of just exploding mid-run. * Batch separators: the “GO” keyword, which breaks big scripts into units. * Result trimming: TOP for the first rows instead of LIMIT. Again, check each of those with official documentation before you take them as absolute—because SQL standard vs. T-SQL drift is exactly where you can misstep. But the big picture is clear enough: Microsoft bolted on features to help with stored procedures, automation, and error control. And this is where intent matters. If you’re just running SELECTs for numbers in a meeting? You won’t care. As long as you stick to the basics, you’re safe. SELECT columns, FROM a table, WHERE something matches—all that’s virtually identical in any SQL flavor. Problems only surface when you paste in more advanced snippets that assume a different dialect. That’s when the red squiggly line shows up, and SQL Server tells you nothing more helpful than “incorrect syntax near X.” The metaphor I like best is this: standard SQL is like English everyone agrees on—short, clear sentences. T-SQL is Microsoft’s local slang. Ninety percent is the same, the extras are just quirks you need when you get deeper. It doesn’t mean English stops working; it just means if you’re in Texas and you ask for “soda,” don’t be surprised when they stare until you say “Coke.” Here’s the important pivot—those extensions don’t replace what you know, they extend it. Think about automated reports. Without TRY…CATCH, one error in a nightly job kills the whole thing and you wake up to angry emails. With T-SQL’s error handling, you can log the problem, keep the rest of the process running, and avoid a 5 a.m. disaster call. That’s real value, not just Microsoft being fussy. But again, check the docs before you rely on any of these features—you don’t want to build a process on faulty assumptions. So how do you keep your sanity? First, remember your basics are safe. SELECT, FROM, WHERE, ORDER BY—they’re unchanged. No dialect drama there. Second, when you hit an error on a copied snippet, ask yourself: is this failing because I don’t understand SQL, or because it’s written for a different dialect? Nine times out of ten, it’s the second. That’s not a knowledge gap on your part—it’s a translation problem. Learn the accent, check the syntax differences in Microsoft’s documentation, and you’re back in control. Bottom line: don’t panic about “extras.” They’re not roadblocks, they’re optional power tools. You don’t need them to pull quick answers, but when you start building repeatable processes, dashboards, or anything automated, they’ll earn their keep. Knowing where T-SQL diverges is like knowing the local slang—it won’t stop you from ordering a sandwich, but it will save you from ordering something you didn’t mean. And since the basics really are the same, let’s go back to the absolute foundation. Before loops, error handling, or fancy functions—you need to type your very first SELECT. And that’s where things get interesting. Your first SELECT is kind of like your first text message: the shorter and clearer it is, the better.The SELECT Survival GuideSo let’s strip it down to exactly what you need: the SELECT Survival Guide. This is the part where SQL stops looking like random incantations and starts working for you. SELECT is your opener, and the good news is it doesn’t change your data in standard practice. You can fumble the syntax, run it, and nothing gets deleted. It’s the safest place to learn. Now, SELECT by itself isn’t enough. Type just “SELECT” and SQL Serve

Become a supporter of this podcast: https://www.spreaker.com/podcast/m365-show-modern-work-security-and-productivity-with-microsoft-365--6704921/support.

Follow us on:
LInkedIn
Substack