diff --git a/SQL_CheatSheet.md b/SQL_CheatSheet.md index 1cc78ff..7c8a375 100644 --- a/SQL_CheatSheet.md +++ b/SQL_CheatSheet.md @@ -49,6 +49,9 @@ MariaDB: #Return the intersection of two queries SELECT c1,c2 FROM t1 INTERSECT SELECT c1,c2 FROM t2; + + #Return the UNION of two queries + SELECT c1,c2 FROM t1 UNION SELECT c1,c2 FROM t2; #Drop a table DROP TABLE [IF EXISTS] table_name;