Information

Author(s) Quentin Cappart
Deadline Keine Frist
Abgabenlimit No limitation

Einloggen

Lecture de requêtes SQL (une seule relation)

Traduisez le plus précisément possible les requêtes SQL suivantes. N'hésitez pas à exécuter ces requêtes dans SQLite pour vérifier votre compréhension.


Question 1:
select name
from instructor;
Question 2:
select distinct building
from department;
Question 3:
select all title
from course;
Question 4:
select *
from student;
Question 5:
select tot_cred
from student
Question 6:
select *
from student
where tot_cred > 6;
Question 7:
select course_id
from course
where dept_name = "Biology" and credits < 3;
Question 8:
select 0
from department;
Question 9:
select time_slot_id
from time_slot
where day = 'M' and start_hr between 8 and 12;
Question 10:
select name
from instructor
where salary = null;