Skip to content

finished interations #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

```sql
-- Your Query Goes Here
select books.id, books.title, author.name as author_name
from books
inner join author on book.author_id = author.id
```

<br>
Expand All @@ -16,6 +19,9 @@

```sql
-- Your Query Goes Here
select authors.id, authors.name as author_name, book.title as book_title
from authors
left join books on authors.id = books.author_id;
```

<br>
Expand All @@ -24,6 +30,10 @@

```sql
-- Your Query Goes Here
SELECT books.id, books.title AS book_title, authors.name AS author_name
FROM authors
RIGHT JOIN books ON authors.id = books.author_id;

```

<br>
Expand All @@ -32,6 +42,10 @@

```sql
-- Your Query Goes Here
SELECT books.id AS book_id, books.title AS book_title, authors.id AS author_id, authors.name AS author_name
FROM authors
FULL JOIN books ON authors.id = books.author_id;

```

<br>
Expand Down