TGTGInsighttelegram intelligenceLIVE / telegram public index
← Data Analytics
Data Analytics avatar

TGINSIGHT POST

Post #2659

@sqlspecialist

Data Analytics

Views7,170Post view count
PostedMar 1203/12/2026, 09:15 PM
Post content

Post content

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 :)