home.social

#setoperations — Public Fediverse posts

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

  1. INTERSECT vs INNER JOIN?!

    INTERSECT and INNER JOIN are DIFFERENT! INTERSECT removes duplicates, JOIN doesn't. Same data, different results. This will break your logic!

    #sql #sqltricks #intersect #innerjoin #setoperations #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #joins #advancedsql

    youtube.com/watch?v=0CUpybmKB0E

  2. UNION ALL Preserves Duplicates?!

    UNION ALL keeps ALL rows! UNION removes duplicates. This one keyword difference changes the entire result set. This will break your data!

    #sql #sqltricks #union #unionall #duplicates #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #setoperations #advancedsql

    youtube.com/watch?v=_Sa8Kgc-nuU

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

  4. EXCEPT vs NOT EXISTS?!

    EXCEPT removes rows from first set! It's like subtraction for result sets. NOT EXISTS does similar but differently. This set operation will confuse you!

    #sql #sqltricks #except #notexists #setdifference #sqlweird #sqlquiz #codingchallenge #sqlshorts #sqlwtf #setoperations #advancedsql

    youtube.com/watch?v=Nmnw6rkvzHI