Introduction to AND, UPDATE, and JOIN

First, let’s spend 8 minutes to learn about AND, UPDATE, and JOIN in SQL!

AND Keyword

Here are Alice’s bookkeeping entries in the table bookkeeping:

https://i.ibb.co/yYZ9tyY/intro-bookkeeping.png

Sometimes we want to select data with multiple constraints, and that can be done using AND.

note: When you run the code, there will be several execution results. Please only refer to the last execution result that displays the entries.

UPDATE Keyword

Here is a similar table for bookkeeping:

https://i.ibb.co/yYZ9tyY/intro-bookkeeping.png

Sometimes we want to update certain records.

note: When you run the code, there will be several execution results. Please only refer to the last execution result that displays the table.

JOIN Keyword

Consider as a publishing company, we have two tables: authors and books:

https://i.ibb.co/98D76Dh/intro-join.png

Sometimes we want to merge the information from different tables.

note: When you run the code, there will be several execution results. Please only refer to the display of the entries.

Before you keep reading...

Runestone Academy can only continue if we get support from individuals like you. As a student you are well aware of the high cost of textbooks. Our mission is to provide great books to you for free, but we ask that you consider a $10 donation, more if you can or less if $10 is a burden.

What to do next

Click on the following link to go the practice problems: Practice Problems

By the way, this time you will always get the same type of practice even if you navigate back and forth =)

You have attempted 1 of 4 activities on this page