home.social

#sqlquiz — Public Fediverse posts

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

fetched live
  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. 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

  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. 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

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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

  14. 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

  15. 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

  16. 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

  17. 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

  18. 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

  19. 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

  20. 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

  21. 10 % 0 Modulo By Zero Returns WHAT?!

    Modulo by zero in SQL doesn't always crash! Some databases return NULL, others error. This breaks math operations! Watch the chaos!

    #sql #sqltricks #database #sqltutorial #modulo #divisionbyzero #sqlquiz #codingchallenge #sqlshorts #sqlbugs #mathoperations #sqlwtf

    youtube.com/watch?v=S-r3m92XI70

  22. 10 % 0 Modulo By Zero Returns WHAT?!

    Modulo by zero in SQL doesn't always crash! Some databases return NULL, others error. This breaks math operations! Watch the chaos!

    #sql #sqltricks #database #sqltutorial #modulo #divisionbyzero #sqlquiz #codingchallenge #sqlshorts #sqlbugs #mathoperations #sqlwtf

    youtube.com/watch?v=S-r3m92XI70

  23. NULL IN (1,2,3) Is NOT What You Think!

    Your brain will explode! Checking if NULL is IN a list returns something that makes NO sense. This breaks every query! Watch the chaos!

    #sql #sqltricks #database #sqltutorial #nullin #sqlquiz #codingchallenge #sqlshorts #sqlbugs #inclause #sqlwtf #threevaluedlogic

    youtube.com/watch?v=5FqLSPXnieA

  24. NULL IN (1,2,3) Is NOT What You Think!

    Your brain will explode! Checking if NULL is IN a list returns something that makes NO sense. This breaks every query! Watch the chaos!

    #sql #sqltricks #database #sqltutorial #nullin #sqlquiz #codingchallenge #sqlshorts #sqlbugs #inclause #sqlwtf #threevaluedlogic

    youtube.com/watch?v=5FqLSPXnieA

  25. 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

  26. 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

  27. CHAR vs VARCHAR Padding?!

    CHAR PADS with spaces! VARCHAR doesn't. LENGTH() returns different values for same string in CHAR vs VARCHAR. This padding will break comparisons!

    #sql #sqltricks #char #varchar #padding #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #stringtypes #advancedsql

    youtube.com/watch?v=0DNOIV-lXyo

  28. CHAR vs VARCHAR Padding?!

    CHAR PADS with spaces! VARCHAR doesn't. LENGTH() returns different values for same string in CHAR vs VARCHAR. This padding will break comparisons!

    #sql #sqltricks #char #varchar #padding #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #stringtypes #advancedsql

    youtube.com/watch?v=0DNOIV-lXyo

  29. Conditional Aggregation with CASE?!

    CASE inside SUM creates conditional aggregation! You can sum only certain rows based on conditions. This conditional math will transform your data!

    #sql #sqltricks #case #sum #conditionalaggregation #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #aggregation #advancedsql

    youtube.com/watch?v=ncgl7_S0NvQ

  30. Conditional Aggregation with CASE?!

    CASE inside SUM creates conditional aggregation! You can sum only certain rows based on conditions. This conditional math will transform your data!

    #sql #sqltricks #case #sum #conditionalaggregation #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #aggregation #advancedsql

    youtube.com/watch?v=ncgl7_S0NvQ

  31. GROUP BY NULLs Are Treated As ONE?!

    GROUP BY treats all NULLs as the same group! Multiple NULL rows get grouped together. This breaks grouping logic! Watch now!

    #sql #sqltricks #database #sqltutorial #groupby #nullhandling #sqlquiz #codingchallenge #sqlshorts #sqlbugs #grouping #sqlwtf

    youtube.com/watch?v=KCBZwLbAF8Y

  32. GROUP BY NULLs Are Treated As ONE?!

    GROUP BY treats all NULLs as the same group! Multiple NULL rows get grouped together. This breaks grouping logic! Watch now!

    #sql #sqltricks #database #sqltutorial #groupby #nullhandling #sqlquiz #codingchallenge #sqlshorts #sqlbugs #grouping #sqlwtf

    youtube.com/watch?v=KCBZwLbAF8Y

  33. NULL = NULL Is FALSE In SQL?!

    STOP SCROLLING! Comparing NULL to NULL in SQL returns FALSE, not TRUE! This breaks every assumption about equality. Your mind will explode! Watch now!

    #sql #sqltricks #database #sqltutorial #sqlweird #nullcomparison #sqlquiz #codingchallenge #sqlshorts #sqlwtf #databasequeries #sqlbugs

    youtube.com/watch?v=5x89cEbWuPg

  34. NULL = NULL Is FALSE In SQL?!

    STOP SCROLLING! Comparing NULL to NULL in SQL returns FALSE, not TRUE! This breaks every assumption about equality. Your mind will explode! Watch now!

    #sql #sqltricks #database #sqltutorial #sqlweird #nullcomparison #sqlquiz #codingchallenge #sqlshorts #sqlwtf #databasequeries #sqlbugs

    youtube.com/watch?v=5x89cEbWuPg

  35. COALESCE(NULL, NULL, NULL) Returns WHAT?!

    COALESCE with all NULLs returns something that defies logic! This function is supposed to return first non-NULL but what if all are NULL? Watch!

    #sql #sqltricks #database #sqltutorial #coalesce #nullhandling #sqlquiz #codingchallenge #sqlshorts #sqlbugs #nullfunctions #sqlwtf

    youtube.com/watch?v=85Dkogn0mPY

  36. COALESCE(NULL, NULL, NULL) Returns WHAT?!

    COALESCE with all NULLs returns something that defies logic! This function is supposed to return first non-NULL but what if all are NULL? Watch!

    #sql #sqltricks #database #sqltutorial #coalesce #nullhandling #sqlquiz #codingchallenge #sqlshorts #sqlbugs #nullfunctions #sqlwtf

    youtube.com/watch?v=85Dkogn0mPY

  37. EXISTS vs IN With NULL Breaks Logic!

    EXISTS and IN behave completely differently with NULL! One works, one doesn't. This breaks subquery logic! Watch the chaos!

    #sql #sqltricks #database #sqltutorial #existsin #subqueries #sqlquiz #codingchallenge #sqlshorts #sqlbugs #nullhandling #sqlwtf

    youtube.com/watch?v=dwtsETOcH2Q

  38. EXISTS vs IN With NULL Breaks Logic!

    EXISTS and IN behave completely differently with NULL! One works, one doesn't. This breaks subquery logic! Watch the chaos!

    #sql #sqltricks #database #sqltutorial #existsin #subqueries #sqlquiz #codingchallenge #sqlshorts #sqlbugs #nullhandling #sqlwtf

    youtube.com/watch?v=dwtsETOcH2Q

  39. Date Arithmetic with Leap Year?!

    Leap years BREAK date math! February 28 + 1 day = February 29 in leap years, March 1 in non-leap years. This edge case will cause bugs!

    #sql #sqltricks #datearithmetic #leapyear #dateadd #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #datefunctions #advancedsql

    youtube.com/watch?v=LndKlugNMrE

  40. Date Arithmetic with Leap Year?!

    Leap years BREAK date math! February 28 + 1 day = February 29 in leap years, March 1 in non-leap years. This edge case will cause bugs!

    #sql #sqltricks #datearithmetic #leapyear #dateadd #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #datefunctions #advancedsql

    youtube.com/watch?v=LndKlugNMrE

  41. LAG - LEAD Default Value Trap?!

    LAG and LEAD have DEFAULT values! When there's no previous/next row, they return the default. This hidden parameter will surprise you!

    #sql #sqltricks #lag #lead #defaultvalue #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #windowfunctions #advancedsql

    youtube.com/watch?v=zGKaBIgNThU

  42. LAG - LEAD Default Value Trap?!

    LAG and LEAD have DEFAULT values! When there's no previous/next row, they return the default. This hidden parameter will surprise you!

    #sql #sqltricks #lag #lead #defaultvalue #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #windowfunctions #advancedsql

    youtube.com/watch?v=zGKaBIgNThU

  43. NULLIF and COALESCE Chain?!

    NULLIF and COALESCE can be CHAINED! NULLIF converts to NULL, COALESCE converts from NULL. This transformation chain will surprise you!

    #sql #sqltricks #nullif #coalesce #functionchaining #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #nullhandling #advancedsql

    youtube.com/watch?v=36UQvnnAo5s

  44. NULLIF and COALESCE Chain?!

    NULLIF and COALESCE can be CHAINED! NULLIF converts to NULL, COALESCE converts from NULL. This transformation chain will surprise you!

    #sql #sqltricks #nullif #coalesce #functionchaining #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #nullhandling #advancedsql

    youtube.com/watch?v=36UQvnnAo5s

  45. Window PARTITION BY Changes Results?!

    PARTITION BY creates separate windows! Each partition has its own running sum. This partitioning will change your aggregation results!

    #sql #sqltricks #partitionby #windowfunctions #runningsum #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #advancedsql

    youtube.com/watch?v=OdUmjf_ZbSU

  46. Window PARTITION BY Changes Results?!

    PARTITION BY creates separate windows! Each partition has its own running sum. This partitioning will change your aggregation results!

    #sql #sqltricks #partitionby #windowfunctions #runningsum #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #advancedsql

    youtube.com/watch?v=OdUmjf_ZbSU

  47. Self-Join with Aliases Trap?!

    Self-joins need DIFFERENT aliases! Same table, different names. The join condition creates relationships within the same table. This will confuse you!

    #sql #sqltricks #selfjoin #aliases #tablealiases #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #joins #advancedsql

    youtube.com/watch?v=a5FIIZPvZ7A

  48. Self-Join with Aliases Trap?!

    Self-joins need DIFFERENT aliases! Same table, different names. The join condition creates relationships within the same table. This will confuse you!

    #sql #sqltricks #selfjoin #aliases #tablealiases #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #joins #advancedsql

    youtube.com/watch?v=a5FIIZPvZ7A

  49. NTH_VALUE Gets Specific Position?!

    NTH_VALUE extracts the Nth value from window! It's like array indexing for window functions. This positional access will surprise you!

    #sql #sqltricks #nthvalue #windowfunctions #positionalaccess #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #advancedsql

    youtube.com/watch?v=6wNXQoiEg8Y

  50. NTH_VALUE Gets Specific Position?!

    NTH_VALUE extracts the Nth value from window! It's like array indexing for window functions. This positional access will surprise you!

    #sql #sqltricks #nthvalue #windowfunctions #positionalaccess #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #advancedsql

    youtube.com/watch?v=6wNXQoiEg8Y