TGViewer
Data Science Portfolio - Kaggle Datasets & AI Projects | Artificial Intelligence Data Science Portfolio - Kaggle Datasets & AI Projects | Artificial Intelligence @dataportfolio · 38K subscribers
Post #890 2.32K
Quick SQL functions cheat sheet for beginners

Aggregate Functions

COUNT(*): Counts rows.

SUM(column): Total sum.

AVG(column): Average value.

MAX(column): Maximum value.

MIN(column): Minimum value.


String Functions

CONCAT(a, b, …): Concatenates strings.

SUBSTRING(s, start, length): Extracts part of a string.

UPPER(s) / LOWER(s): Converts string case.

TRIM(s): Removes leading/trailing spaces.


Date & Time Functions

CURRENT_DATE / CURRENT_TIME / CURRENT_TIMESTAMP: Current date/time.

EXTRACT(unit FROM date): Retrieves a date part (e.g., year, month).

DATE_ADD(date, INTERVAL n unit): Adds an interval to a date.


Numeric Functions

ROUND(num, decimals): Rounds to a specified decimal.

CEIL(num) / FLOOR(num): Rounds up/down.

ABS(num): Absolute value.

MOD(a, b): Returns the remainder.


Control Flow Functions

CASE: Conditional logic.

COALESCE(val1, val2, …): Returns the first non-null value.


Like for more free Cheatsheets ❤️

Share with credits: https://t.me/sqlspecialist

Hope it helps :)

#dataanalytics
  • ❤ 3
More from @dataportfolio
  1. Oct 9, 2026How to Build an Impressive Data Analysis Portfolio As a data analyst, your portfolio is yo…
  2. Sep 20, 2026🌐 Data Science Tools & Their Use Cases 📊🔍 🔹 Python ➜ Core language for scripting, anal…
  3. Sep 19, 2026🤖 GigaChat 3.5 Reasoning 🎯 Thinks before answering: breaks problems into stages, builds…
  4. Sep 14, 2026✅ Data Science Interview Questions with Answers Part-4 • 31. Why is Python popular in data…
  5. Sep 14, 2026✅ Data Science Interview Questions with Answers Part-3 21. How do you handle missing value…
  6. Sep 14, 2026✅ Data Science Interview Questions with Answers Part-2 11. What is the difference between…
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 →