From 20275bbf9ff4b99952d05c59fdc90982069910c7 Mon Sep 17 00:00:00 2001 From: Mohamed Ashfak <39162550+AshfakMRM@users.noreply.github.com> Date: Fri, 21 Oct 2022 13:57:26 +0530 Subject: [PATCH 1/4] Added some explanation about SQL join Operators --- MYSQL_Cheatsheet.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MYSQL_Cheatsheet.md b/MYSQL_Cheatsheet.md index f78c2c6..54b1ae3 100644 --- a/MYSQL_Cheatsheet.md +++ b/MYSQL_Cheatsheet.md @@ -41,6 +41,11 @@ MYSQL #Tests for existence of a certain record. Returns a boolean value. SELECT * FROM TABLE NAME WHERE EXIST (SUB QUERY); + #A JOIN clause is used to combine rows from two or more tables, based on a related column between them. + #INNER JOIN: Returns records that have matching values in both tables + #LEFT JOIN: Returns all records from the left table, and the matched records from the right table + #RIGHT JOIN: Returns all records from the right table, and the matched records from the left table + #CROSS JOIN: Returns all records from both tables #Inner Join selects records that have the same values in two same or distinct tables. SELECT COLUMN(S) FROM TABLENAME1 INNER JOIN TABLENAME2 ON TABLENAME1.COLUMNAME=TABLENAME2.COLUMNAME; From 8f9e07f000ef92eb4f6cf6322f42d711953393fd Mon Sep 17 00:00:00 2001 From: Mohamed Ashfak <39162550+AshfakMRM@users.noreply.github.com> Date: Fri, 21 Oct 2022 13:57:49 +0530 Subject: [PATCH 2/4] Update MYSQL_Cheatsheet.md --- MYSQL_Cheatsheet.md | 1 + 1 file changed, 1 insertion(+) diff --git a/MYSQL_Cheatsheet.md b/MYSQL_Cheatsheet.md index 54b1ae3..d0cd8d4 100644 --- a/MYSQL_Cheatsheet.md +++ b/MYSQL_Cheatsheet.md @@ -46,6 +46,7 @@ MYSQL #LEFT JOIN: Returns all records from the left table, and the matched records from the right table #RIGHT JOIN: Returns all records from the right table, and the matched records from the left table #CROSS JOIN: Returns all records from both tables + #Inner Join selects records that have the same values in two same or distinct tables. SELECT COLUMN(S) FROM TABLENAME1 INNER JOIN TABLENAME2 ON TABLENAME1.COLUMNAME=TABLENAME2.COLUMNAME; From a741a8590a404409eeca2983d6168af74c45b41c Mon Sep 17 00:00:00 2001 From: Mohamed Ashfak <39162550+AshfakMRM@users.noreply.github.com> Date: Fri, 21 Oct 2022 14:08:03 +0530 Subject: [PATCH 3/4] Update MYSQL_Cheatsheet.md --- MYSQL_Cheatsheet.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/MYSQL_Cheatsheet.md b/MYSQL_Cheatsheet.md index d0cd8d4..c577a83 100644 --- a/MYSQL_Cheatsheet.md +++ b/MYSQL_Cheatsheet.md @@ -40,12 +40,6 @@ MYSQL #Tests for existence of a certain record. Returns a boolean value. SELECT * FROM TABLE NAME WHERE EXIST (SUB QUERY); - - #A JOIN clause is used to combine rows from two or more tables, based on a related column between them. - #INNER JOIN: Returns records that have matching values in both tables - #LEFT JOIN: Returns all records from the left table, and the matched records from the right table - #RIGHT JOIN: Returns all records from the right table, and the matched records from the left table - #CROSS JOIN: Returns all records from both tables #Inner Join selects records that have the same values in two same or distinct tables. SELECT COLUMN(S) FROM TABLENAME1 INNER JOIN TABLENAME2 ON TABLENAME1.COLUMNAME=TABLENAME2.COLUMNAME; From 7abb97e61c68878e3d6e44aa10b859ec872ee094 Mon Sep 17 00:00:00 2001 From: Mohamed Ashfak <39162550+AshfakMRM@users.noreply.github.com> Date: Fri, 21 Oct 2022 14:09:21 +0530 Subject: [PATCH 4/4] Added some VS Code Shortcuts --- VSCode_CheatSheet.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VSCode_CheatSheet.md b/VSCode_CheatSheet.md index d4c403d..42d1f76 100644 --- a/VSCode_CheatSheet.md +++ b/VSCode_CheatSheet.md @@ -140,3 +140,9 @@ VsCode: #Jump to matching bracket Ctrl + SHIFT + \ + + #Indent Line + Ctrl + ] + + #Outdent Line + Ctrl + [