home.social

#sqlshorts — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #sqlshorts, aggregated by home.social.

  1. Subquery Returns Multiple Rows In Comparison?!

    Using subquery that returns multiple rows in = comparison crashes! SQL doesn't know which row to use. This breaks subqueries! Watch!

    #sql #sqltricks #database #sqltutorial #subqueries #multiplerows #sqlquiz #codingchallenge #sqlshorts #sqlbugs #subqueryerrors #sqlwtf

    youtube.com/watch?v=x15LSXR-uVM

  2. JSON Column Search Takes 47 SECONDS Breaking Black Friday?!

    JSON SEARCH NIGHTMARE! Can't index JSON columns in older MySQL! Every product search scans 2 MILLION rows! 47-second queries! Server MELTS on Black Friday! $4.7M revenue LOST! Watch the horror!

    #sql #sqldisaster #json #performance #noindex #slowquery #sqlfails #blackfriday #sqlshorts #databasedisaster #sqlwtf #jsonsearch

    youtube.com/watch?v=O0jCjaAsNNA

  3. 0.1 + 0.2 In SQL = 0.30000000000000004?!

    SQL floating point precision is broken! Adding 0.1 + 0.2 creates a number with precision errors. This breaks financial calculations! Watch!

    #sql #sqltricks #database #sqltutorial #floatingpoint #precision #sqlquiz #codingchallenge #sqlshorts #sqlbugs #numericprecision #sqlwtf

    youtube.com/watch?v=C53FQIhge3U

  4. HAVING Filters After GROUP BY?!

    HAVING filters GROUPS, WHERE filters ROWS! HAVING runs after aggregation, WHERE runs before. This order matters and will break your logic!

    #sql #sqltricks #having #where #groupby #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #aggregation #advancedsql

    youtube.com/watch?v=OMjcmF4mw08

  5. Window ORDER BY NULLS FIRST - LAST?!

    NULLS FIRST and NULLS LAST change window function results! The order of NULLs matters in window functions. This subtle difference will cause bugs!

    #sql #sqltricks #windowfunctions #nullsfirst #nullslast #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #nullhandling #advancedsql

    youtube.com/watch?v=TbQfBej6dis

  6. Decimal Precision Rounds Numbers?!

    DECIMAL precision ROUNDS values! Cast 1.999 to DECIMAL(5,2) and it becomes 2.00. This silent rounding will cause calculation errors!

    #sql #sqltricks #decimal #precision #rounding #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #datatypes #advancedsql

    youtube.com/watch?v=wNyhCqAhlb8

  7. COUNT(*) vs COUNT(column) Are DIFFERENT?!

    COUNT(*) and COUNT(column) behave completely differently with NULLs! One counts NULLs, one doesn't. This breaks aggregate logic! Watch!

    #sql #sqltricks #database #sqltutorial #count #aggregate #sqlquiz #codingchallenge #sqlshorts #sqlbugs #nullhandling #sqlwtf

    youtube.com/watch?v=lCeAps3FTGg

  8. JOIN With NULL Keys Returns ZERO Rows?!

    JOINing tables with NULL keys returns ZERO rows! NULL = NULL in JOIN is FALSE. This breaks all join logic! Watch!

    #sql #sqltricks #database #sqltutorial #join #nullkeys #sqlquiz #codingchallenge #sqlshorts #sqlbugs #joins #sqlwtf

    youtube.com/watch?v=4PlkdCq4KnE

  9. ROW_NUMBER() OVER (ORDER BY NULL) Does WHAT?!

    ROW_NUMBER with ORDER BY NULL creates non-deterministic ordering! All rows get random numbers. This breaks window functions! Watch!

    #sql #sqltricks #database #sqltutorial #rownumber #windowfunctions #sqlquiz #codingchallenge #sqlshorts #sqlbugs #ordering #sqlwtf

    youtube.com/watch?v=MVixOi9e8zE

  10. LEN('') vs LEN(NULL) vs LEN(' ') Are DIFFERENT?!

    LEN of empty string, NULL, and space are all different! Empty = 0, NULL = NULL, Space = 1. This breaks string length logic! Watch!

    #sql #sqltricks #database #sqltutorial #len #stringlength #sqlquiz #codingchallenge #sqlshorts #sqlbugs #stringfunctions #sqlwtf

    youtube.com/watch?v=mvXKvslW08w

  11. TRIM with Different Characters?!

    TRIM can remove ANY character! Not just spaces. LEADING, TRAILING, or BOTH. This flexible trimming will clean your data in unexpected ways!

    #sql #sqltricks #trim #leading #trailing #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #stringfunctions #advancedsql

    youtube.com/watch?v=MRgaM0p-Obg

  12. TRIM with Different Characters?!

    TRIM can remove ANY character! Not just spaces. LEADING, TRAILING, or BOTH. This flexible trimming will clean your data in unexpected ways!

    #sql #sqltricks #trim #leading #trailing #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #stringfunctions #advancedsql

    youtube.com/watch?v=MRgaM0p-Obg

  13. TRIM with Different Characters?!

    TRIM can remove ANY character! Not just spaces. LEADING, TRAILING, or BOTH. This flexible trimming will clean your data in unexpected ways!

    #sql #sqltricks #trim #leading #trailing #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #stringfunctions #advancedsql

    youtube.com/watch?v=MRgaM0p-Obg

  14. TRIM with Different Characters?!

    TRIM can remove ANY character! Not just spaces. LEADING, TRAILING, or BOTH. This flexible trimming will clean your data in unexpected ways!

    #sql #sqltricks #trim #leading #trailing #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #stringfunctions #advancedsql

    youtube.com/watch?v=MRgaM0p-Obg

  15. TRIM with Different Characters?!

    TRIM can remove ANY character! Not just spaces. LEADING, TRAILING, or BOTH. This flexible trimming will clean your data in unexpected ways!

    #sql #sqltricks #trim #leading #trailing #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #stringfunctions #advancedsql

    youtube.com/watch?v=MRgaM0p-Obg

  16. Three-Valued Logic: AND - OR With NULL?!

    SQL has THREE truth values: TRUE, FALSE, and UNKNOWN (NULL)! AND/OR with NULL creates logic that breaks everything! Watch!

    #sql #sqltricks #database #sqltutorial #threevaluedlogic #null #sqlquiz #codingchallenge #sqlshorts #sqlbugs #booleanlogic #sqlwtf

    youtube.com/watch?v=Dg3yabp9sa4

  17. Index On NULL Column Does NOTHING?!

    Your performance just DIED! Created an index but queries with NULL are still slow? Indexes IGNORE NULL values! Full table scan on millions of rows! Your index is USELESS! Watch the disaster!

    #sql #sqlperformance #index #null #fulltablescan #slowquery #sqlfails #productionbug #sqlshorts #databasedisaster #sqlwtf #indextrap

    youtube.com/watch?v=PUJ8KouC1V0

  18. Empty String '' vs NULL Are DIFFERENT?!

    SQL treats empty strings and NULL completely differently! This hidden difference breaks string logic. Your mind will short-circuit! Watch!

    #sql #sqltricks #database #sqltutorial #emptystring #null #sqlquiz #codingchallenge #sqlshorts #sqlbugs #stringcomparison #sqlwtf

    youtube.com/watch?v=MwxAtMuqq3g

  19. CTE Referenced Multiple Times?!

    CTEs can be referenced MULTIPLE times! The same CTE appears in different parts of the query. This reusability will simplify complex queries!

    #sql #sqltricks #cte #withclause #multiplereferences #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #commontableexpressions #advancedsql

    youtube.com/watch?v=7eK8AtN9PLU

  20. ALTER TABLE Auto-Commits Your Transaction?!

    This will DESTROY your confidence! Running ALTER TABLE inside a transaction AUTO-COMMITS everything! Your unsaved work gets COMMITTED permanently! This breaks transaction logic! Watch now!

    #sql #sqldisaster #altertable #autocommit #transaction #ddl #sqlfails #productionbug #sqlshorts #databasedisaster #sqlwtf #implicitcommit

    youtube.com/watch?v=BLB0Laohz0M

  21. ALTER TABLE Auto-Commits Your Transaction?!

    This will DESTROY your confidence! Running ALTER TABLE inside a transaction AUTO-COMMITS everything! Your unsaved work gets COMMITTED permanently! This breaks transaction logic! Watch now!

    #sql #sqldisaster #altertable #autocommit #transaction #ddl #sqlfails #productionbug #sqlshorts #databasedisaster #sqlwtf #implicitcommit

    youtube.com/watch?v=BLB0Laohz0M

  22. ALTER TABLE Auto-Commits Your Transaction?!

    This will DESTROY your confidence! Running ALTER TABLE inside a transaction AUTO-COMMITS everything! Your unsaved work gets COMMITTED permanently! This breaks transaction logic! Watch now!

    #sql #sqldisaster #altertable #autocommit #transaction #ddl #sqlfails #productionbug #sqlshorts #databasedisaster #sqlwtf #implicitcommit

    youtube.com/watch?v=BLB0Laohz0M

  23. ALTER TABLE Auto-Commits Your Transaction?!

    This will DESTROY your confidence! Running ALTER TABLE inside a transaction AUTO-COMMITS everything! Your unsaved work gets COMMITTED permanently! This breaks transaction logic! Watch now!

    #sql #sqldisaster #altertable #autocommit #transaction #ddl #sqlfails #productionbug #sqlshorts #databasedisaster #sqlwtf #implicitcommit

    youtube.com/watch?v=BLB0Laohz0M

  24. ALTER TABLE Auto-Commits Your Transaction?!

    This will DESTROY your confidence! Running ALTER TABLE inside a transaction AUTO-COMMITS everything! Your unsaved work gets COMMITTED permanently! This breaks transaction logic! Watch now!

    #sql #sqldisaster #altertable #autocommit #transaction #ddl #sqlfails #productionbug #sqlshorts #databasedisaster #sqlwtf #implicitcommit

    youtube.com/watch?v=BLB0Laohz0M

  25. Recursive CTE Termination Condition?!

    Recursive CTEs can loop FOREVER! The termination condition is CRITICAL. One wrong condition and your query hangs. This is how infinite loops happen in SQL!

    #sql #sqltricks #recursivecte #withrecursive #termination #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #cterecursion #advancedsql

    youtube.com/watch?v=oE5d6TLBKqU

  26. String Functions With NULL Return NULL?!

    LEN, SUBSTRING, and other string functions with NULL return NULL, not error! This breaks string processing logic! Watch the reveal!

    #sql #sqltricks #database #sqltutorial #stringfunctions #null #sqlquiz #codingchallenge #sqlshorts #sqlbugs #stringoperations #sqlwtf

    youtube.com/watch?v=FXql2wP0kmg

  27. Date Functions With NULL Return NULL?!

    DATEADD and DATEDIFF with NULL return NULL instead of error! Date arithmetic with NULL breaks all date logic! Watch now!

    #sql #sqltricks #database #sqltutorial #datefunctions #null #sqlquiz #codingchallenge #sqlshorts #sqlbugs #dateoperations #sqlwtf

    youtube.com/watch?v=y3khe0jfXKg

  28. Window Frame UNBOUNDED?!

    UNBOUNDED PRECEDING means ALL previous rows! UNBOUNDED FOLLOWING means ALL future rows. This creates running totals across the entire window!

    #sql #sqltricks #unbounded #preceding #following #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #windowframes #advancedsql

    youtube.com/watch?v=jkrzi1EItBg

  29. NOT IN With NULL Returns FALSE Always?!

    NOT IN with NULL in the list ALWAYS returns FALSE! Even if value is not in list, NULL breaks NOT IN logic completely! Watch!

    #sql #sqltricks #database #sqltutorial #notin #null #sqlquiz #codingchallenge #sqlshorts #sqlbugs #setoperations #sqlwtf

    youtube.com/watch?v=XM1TxcJSNXg

  30. Correlated Subquery With NULL Returns WHAT?!

    Correlated subquery with NULL comparison returns something impossible! NULL = NULL in subquery breaks correlation logic! Watch!

    #sql #sqltricks #database #sqltutorial #correlatedsubquery #null #sqlquiz #codingchallenge #sqlshorts #sqlbugs #subqueries #sqlwtf

    youtube.com/watch?v=0gi1cUqrgA4

  31. HAVING With NULL Comparison Breaks Logic!

    HAVING clause with NULL comparison returns ZERO rows! HAVING col = NULL never matches. This breaks aggregate filtering! Watch!

    #sql #sqltricks #database #sqltutorial #having #null #sqlquiz #codingchallenge #sqlshorts #sqlbugs #aggregatefiltering #sqlwtf

    youtube.com/watch?v=8F_ZBQrJUpQ