From 38ac857c187bfafd3db7f33f3c8a3583edb339d5 Mon Sep 17 00:00:00 2001 From: nikhilkalburgi <70331875+nikhilkalburgi@users.noreply.github.com> Date: Thu, 20 Oct 2022 19:21:03 +0530 Subject: [PATCH] Update SQL_CheatSheet.md --- SQL_CheatSheet.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SQL_CheatSheet.md b/SQL_CheatSheet.md index eff8cd1..ea8a439 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;