Practice Problems - Write Code¶
Now, let’s spend 15 minutes to practice what we just learned!
Please do not refer back to the previous page or outside resources.
You can stop working on a problem after you worked on it for about three minutes without solving it.
Problems¶
Aside from the grades
table:

We also have a students
table:

Now we want to match the student name to their math grades.
Please write a statement using SELECT and JOIN to: select the test_name
and math
from the grades
table and name
from the students
table, where the student_id
in the grades
table is the same as the id
in the students
table.
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.
Aside from the grades
table:

We also have a tests
table:

Now we want to add the date information to the grades to see when the students took the tests.
Please write a statement using SELECT and JOIN to: select the date
and name
from the tests
table and student_id
from the grades
table,
where the test_name
in the grades
table is the same as the name
in the tests
table.
What to do next¶
Click on the following link to go to the post test: Post Test