From b45833fb806b7bd8043de74148fde216ea544c1b Mon Sep 17 00:00:00 2001 From: Skyteks Date: Wed, 20 Nov 2024 10:51:43 +0100 Subject: [PATCH] done --- queries.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/queries.md b/queries.md index b06f900..ed6abf0 100644 --- a/queries.md +++ b/queries.md @@ -8,6 +8,9 @@ ```sql -- Your Query Goes Here +SELECT * FROM books +INNER JOIN authors +ON books.author_id = authors.id; ```
@@ -16,6 +19,9 @@ ```sql -- Your Query Goes Here +SELECT * FROM authors +LEFT JOIN books +ON books.author_id = authors.id; ```
@@ -24,6 +30,9 @@ ```sql -- Your Query Goes Here +SELECT * FROM books +RIGHT JOIN authors +ON books.author_id = authors.id; ```
@@ -32,6 +41,9 @@ ```sql -- Your Query Goes Here +SELECT * FROM books +FULL JOIN authors +ON books.author_id = authors.id; ```
@@ -42,6 +54,9 @@ ```sql -- Your Query Goes Here +SELECT title, name, nationality FROM books +INNER JOIN authors +ON books.author_id = authors.id; ```
@@ -50,6 +65,9 @@ ```sql -- Your Query Goes Here +SELECT * FROM authors +LEFT JOIN books +ON books.author_id = authors.id; ```
@@ -58,6 +76,9 @@ ```sql -- Your Query Goes Here +SELECT * FROM authors +RIGHT JOIN books +ON books.author_id = authors.id; ```
@@ -66,6 +87,11 @@ ```sql -- Your Query Goes Here +SELECT * FROM authors +FULL JOIN books +ON books.author_id = authors.id +FULL JOIN publishers +ON books.publisher_id = publishers.id; ``` -
+
\ No newline at end of file