TGViewer
Data Analytics Data Analytics @sqlspecialist · 111K subscribers
Post #2159 4.16K
☑️Essential SQL Commands & Functions Cheatsheet

Whether you're a beginner or prepping for a system design or data role — mastering these SQL essentials will take you far 💡

⬇️ Here's a quick reference of key SQL operations to know:

➜ SELECT → Retrieve data from a table
➜ WHERE → Filter rows based on condition
➜ GROUP BY → Aggregate rows with same values
➜ HAVING → Filter groups after aggregation
➜ ORDER BY → Sort result by one or more columns
➜ JOIN → Combine rows from multiple tables
➜ UNION → Merge result sets into one
➜ INSERT INTO → Add new data into a table
➜ UPDATE → Modify existing records
➜ DELETE → Remove records
➜ CREATE TABLE → Define a new table
➜ ALTER TABLE → Modify an existing table
➜ DROP TABLE → Delete a table
➜ TRUNCATE TABLE → Remove all records
➜ DISTINCT → Get unique values
➜ LIMIT → Restrict number of results
➜ IN / BETWEEN → Filter by multiple values/ranges
➜ LIKE → Pattern matching
➜ IS NULL → Filter NULL values
➜ COUNT() / SUM() / AVG() → Common aggregate functions

😀Save this for quick reference

Hope this helps you 😊
  • ❤ 8
  • 👍 5
More from @sqlspecialist
  1. Oct 17, 2026Sales Fact ↓ Customer Dimension Product Dimension Date Dimension Region Dimension The fact…
  2. Oct 17, 2026📊 Data Analyst Interview Series — Part 11 Guys, let's continue our Data Analyst Interview…
  3. Oct 17, 2026𝗜𝗕𝗠 𝗙𝗥𝗘𝗘 𝗧𝗘𝗖𝗛 𝗖𝗢𝗨𝗥𝗦𝗘𝗦 𝟮𝟬𝟮𝟲! 🎓 Explore IBM Cognitive Class and build…
  4. Oct 16, 2026𝗗𝗮𝘁𝗮 𝘀𝗰𝗶𝗲𝗻𝗰𝗲 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗪𝗶𝘁𝗵 𝗔𝗜😍 Future Ready Data Scien…
  5. Oct 14, 2026I could then categorize customers into groups such as Active, At Risk, and Inactive and su…
  6. Oct 14, 2026📊 Data Analyst Interview Series — Part 10 Guys, let's continue our Data Analyst Interview…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →