Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Databases LAB SQL I – tasks B (v2)

1. 11.
EN Display the name of student identified by 5. EN Display an average of all ELECTRONICS students’
grades.
PL Podać nazwisko studenta o numerze 5.
PL Podać średnią ocen dla studentów kierunku
2. ELEKTRONIKA.
EN Display the names of subjects starting with A. 12.
PL Podać nazwy przedmiotów zaczynające się od litery A. EN Display the lowest and the highest grade got by each
student.
3.
PL Podać najniższą i najwyższą ocenę uzyskaną przez poszcze-
EN Display
the names of students who major in gólnych studentów.
COMPUTER CONSTRUCTION.
13.
PL Podać nazwiska studentów studiujących na kierunku
EN Display an average of grades for each student.
BUDOWA MC.
PL Dla każdego studenta podać średnią ocen.
4.
14.
EN Display in alphabetical order the names of female stu-
dents, who got grade greater than 4.5 in any subject. EN For each major display the dates of birth of the oldest
students.
PL Podać (w porządku alfabetycznym) nazwiska studentek,
PL Podać daty urodzenia najstarszych studentów na poszcze-
które z dowolnego przedmiotu otrzymały ocenę > 4,5.
gólnych kierunkach.
5.
15.
EN Prepare the list of lectures given to COMPUTER EN For each student display the number of grades that he
CONSTRUCTION students. or she got in each subject.
PL Sporządzić wykaz wykładów realizowanych na kierunku PL Dla każdego studenta podać liczbę ocen, które otrzymał z
BUDOWA MC. poszczególnych przedmiotów.
6. 16.
EN Display in reverse alphabetical order the names of men EN Display the names of subjects which have more than
who study MEDICAL ELECTRONICS or COMPUTER 8 grades given.
SCIENCE. PL Podać nazwy przedmiotów, z których wystawiono więcej
PL Podać (w odwrotnej kolejności alfabetycznej) nazwiska stu- niż 8 ocen.
dentów mężczyzn, którzy studiują na kierunku ELEKTRONIKA 17.
MED lub INFORMATYKA.
EN For each subject display the number of students who
7. got grade in it. Pay attention to getting several grades in
EN Display the names of subjects with at least one grade
one subject by some students.
5 given. The names mustn’t be repeated. PL Dla każdego przedmiotu podać liczbę studentów, którzy
otrzymali z nich ocenę. (Uwaga! Niektórzy studenci mają kilka
PL Podać nazwy przedmiotów, z których wystawiono przynaj-
ocen z danego przedmiotu).
mniej jedną ocenę = 5. Nazwa danego przedmiotu powinna się
pojawić tylko raz. 18.
8. EN Display the names of students who are older than stu-
dent WOLF.
EN Display the names of subjects with their parent sub-
PL Podać nazwiska studentów, którzy są starsi od studenta
jects.
WILK.
PL Podać nazwy przedmiotów i nazwy ich przedmiotów nad-
19.
rzędnych.
EN Display the names of students whose average of grades
9. is greater than student TROMMEL’s.
EN Display the number of COMPUTER SCIENCE stu- PL Podać nazwiska studentów, których średnia ocen jest więk-
dents. sza od średniej ocen studenta WALCZAKA.
PL Podać liczbę studentów kierunku INFORMATYKA. 20.
10. EN Display the names of majors having more students
than ELECTRONICS.
EN Display an average of grades of student COLLEGE.
PL Podać nazwy kierunków, na których studiuje więcej stu-
PL Podać średnią ocen studenta KOWALSKIEGO. dentów niż na kierunku ELEKTRONIKA.

You might also like