The takes table records which student took which course, in which semester and year. Its primary key has four columns: look for the key icons in its tab.
Compare the number of rows that SELECT DISTINCT returns with the number of rows of the table. The count shows next to each table name and above each result.
- Return the different
dept_namevalues ofinstructor. - Is
{dept_name}a superkey ofinstructor? Answer yes or no. - Return the different combinations of
id,semesterandyearintakes, in that column order. - Is
{id, semester, year}a superkey oftakes? - Return the different combinations of
idandcourse_idintakes. Do two rows of today's data have the same pair? - A student who fails a course takes it again the next year. Is
{id, course_id}a superkey oftakes?