Member-only story

SQL Features (That Will Set You Apart, For Sure!)

Tripathi Aditya Prakash
CodeX
Published in
4 min readFeb 24, 2025
Image Credit :Photo by Markus Spiske: https://www.pexels.com/photo/text-2061168/

So Adi is back again, after overdosing on caffeine and using my personal slave custom GPTs. In this article, I’ll discuss some rarely talked-about SQL features that can make your SQL skills stronger and help you stand out from the crowd (a.k.a. the “wannabes” near you).

If you’re serious about becoming an SQL pro, make sure to check out my Data Analytics Mastery Course — where I teach advanced SQL, real-world analytics projects, and SQL interview tricks. Oh, and for instant learning, grab my SQL Resource Pack that includes query templates, datasets, cheat sheets, and SQL case studies. Links at the end. 📌

1. EXCEPT in SELECT Clause

Picture this — you’re working with a monster table with 500 columns, and out of those, you need to exclude just 10 system-generated columns.
Normally, you’d have to manually write out every column except those 10, which is a huge pain (trust me, I’ve been there).

While using SELECT * is generally discouraged (please, for the love of clean SQL, don’t use it), it can be useful in ad-hoc analysis or MVPs where explicitly specifying columns is a nightmare.

Solution? Use EXCEPT.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

CodeX
CodeX

Published in CodeX

Everything connected with Tech & Code. Follow to join our 1M+ monthly readers

Tripathi Aditya Prakash
Tripathi Aditya Prakash

Written by Tripathi Aditya Prakash

Data Analyst, Founder @shivai , Lifestyle | Tech | Mindset

Responses (3)

Write a response

Your tips are useful but not for all type of database. As PostgreSQL I worked with at my last company, I wished I could use EXCEPT all the time. And to my understand, FILTER syntax is not supported by MS SQL and Oracl. Anyway, your tips is still cool!

1. EXCEPT in SELECT Clause

Simple yet very effective!
Greate article man

Very insightful, but the FILTER CLAUSE is not supported in T-SQL