You are on page 1of 2

Introduction to SQL Session 14 Quiz

1. Using the college schema, write the correct SQL statement to add a new student to the members table. The student
data is of your choice.

No result grid is shown.

2. Using the college schema, write the correct SQL statement to correct an error in the members table for student_id
108, Michael Stanton. In this record the ‘state’ column displays VA, which is incorrect. The state should be CA.

No result grid is shown.

3. Using the college schema, write the correct SQL statement to delete student_id 1, Teresa Pelkie from the members
table.

No result grid is shown.

4. What is the purpose of a primary key?

5. What is the purpose of setting an index on a column?

1
5. Explain in your own worlds when you would use an inner join and when you would use a left join. (What is the
difference)

You might also like