TGViewer
Data Analytics Data Analytics @sqlspecialist ยท 111K subscribers
Post #2307 6.14K
โœ… Basic SQL Commands Cheat Sheet ๐Ÿ—ƒ๏ธ

โฆ  SELECT โ€” Select data from database
โฆ  FROM โ€” Specify table
โฆ  WHERE โ€” Filter query by condition
โฆ  AS โ€” Rename column or table (alias)
โฆ  JOIN โ€” Combine rows from 2+ tables
โฆ  AND โ€” Combine conditions (all must match)
โฆ  OR โ€” Combine conditions (any can match)
โฆ  LIMIT โ€” Limit number of rows returned
โฆ  IN โ€” Specify multiple values in WHERE
โฆ  CASE โ€” Conditional expressions in queries
โฆ  IS NULL โ€” Select rows with NULL values
โฆ  LIKE โ€” Search patterns in columns
โฆ  COMMIT โ€” Write transaction to DB
โฆ  ROLLBACK โ€” Undo transaction block
โฆ  ALTER TABLE โ€” Add/remove columns
โฆ  UPDATE โ€” Update data in table
โฆ  CREATE โ€” Create table, DB, indexes, views
โฆ  DELETE โ€” Delete rows from table
โฆ  INSERT โ€” Add single row to table
โฆ  DROP โ€” Delete table, DB, or index
โฆ  GROUP BY โ€” Group data into logical sets
โฆ  ORDER BY โ€” Sort result (use DESC for reverse)
โฆ  HAVING โ€” Filter groups like WHERE but for grouped data
โฆ  COUNT โ€” Count number of rows
โฆ  SUM โ€” Sum values in a column
โฆ  AVG โ€” Average value in a column
โฆ  MIN โ€” Minimum value in column
โฆ  MAX โ€” Maximum value in column

๐Ÿ’ฌ Tap โค๏ธ for more!
  • โค 23
  • ๐Ÿ‘ 6
  • ๐Ÿฅฐ 2
  • ๐Ÿ‘ 2
  • ๐Ÿ‘Œ 2
More from @sqlspecialist
  1. Oct 14, 2026I could then categorize customers into groups such as Active, At Risk, and Inactive and suโ€ฆ
  2. Oct 14, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 10 Guys, let's continue our Data Analyst Interviewโ€ฆ
  3. Oct 13, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 9 Guys, let's continue our Data Analyst Interviewโ€ฆ
  4. Oct 13, 2026๐—ง๐—ข๐—ฃ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐—ง๐—ข ๐—•๐—ข๐—ข๐—ฆ๐—ง ๐—ฌ๐—ข๐—จ๐—ฅ ๐—ฆ๐—ž๐—œ๐—Ÿ๐—Ÿ๐—ฆ ๐—œ๐—ก ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! Explorโ€ฆ
  5. Oct 12, 20268๏ธโƒฃ You receive a dataset with inconsistent date formats. How would you clean it? Sample Aโ€ฆ
  6. Oct 12, 2026๐Ÿ“Š Data Analyst Interview Series โ€” Part 7 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 โ†’