diff --git a/queries.md b/queries.md index b06f900..b4183ac 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,10 @@ ```sql -- Your Query Goes Here +SELECT * from authors +left join books +ON + authors.id = books.author_id; ```
@@ -24,6 +31,10 @@ ```sql -- Your Query Goes Here +SELECT * from authors +right join books +ON + authors.id = books.author_id; ```
@@ -32,6 +43,10 @@ ```sql -- Your Query Goes Here +SELECT * from authors +full join books +ON + authors.id = books.author_id; ```