Informasjon

Forfatter(e) Quentin Cappart
Frist Ingen frist
Innleveringsgrense Ingen begrensning

Logg inn

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.


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