SQL 1-60

SQL 1-60

1st Grade

60 Qs

quiz-placeholder

Similar activities

Gladstone Spring 1 Week 1 Retrieval Quiz

Gladstone Spring 1 Week 1 Retrieval Quiz

1st - 6th Grade

59 Qs

Awesome Math Facts

Awesome Math Facts

KG - Professional Development

57 Qs

Compare

Compare

1st Grade

58 Qs

10/12

10/12

KG - 2nd Grade

56 Qs

Math Review

Math Review

1st - 5th Grade

57 Qs

2.01 Parent Functions HW

2.01 Parent Functions HW

1st Grade

57 Qs

Quiz Time

Quiz Time

1st - 3rd Grade

56 Qs

ETA 02 - Ciclo Agosto

ETA 02 - Ciclo Agosto

1st Grade

55 Qs

SQL 1-60

SQL 1-60

Assessment

Quiz

Mathematics

1st Grade

Medium

Created by

мадияр алимов

Used 11+ times

FREE Resource

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Define a degree of a relation

How many rows a table has

how long each tuple is, or how many columns the table has

how many different tuples there are

how many different datatypes table has

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

60. Which of the following anomaly does not exist?

Creation anomaly

Deletion anomaly

Insertion anomaly

Modification anomaly

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

59. How many types of anomalies exist?

3

2

1

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

58. Retrieve all students’ name and scholarship, tutors name except students who have scholarship 3000$. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))

select s.name, t.name from students s join tutor t on s.tutorid=t.id where s.scholarship <> 3000;

select s.name, t.name from students s join tutor t on s.tutorid=t.id where s.scholarship = 3000;

select s.name, t.name from students s join tutor t on s.tutorid=t.id where s.scholarship < 3000;

select s.name, t.name from students s join tutor t on s.tutorid=t.id where s.scholarship is 3000;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

57. Retrieve office name and the number of students for each of them. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))}.

select count (s.name) as numberofstudents, o.name from tutor t join students s on t.id=s.tutoridjoin office o on o.id=t.officeid group by o.name;

select count (s.name) as numberofstudents, o.name from students s on join office o on o.id=s.id group by o.name;

select count (s.name) as numberofstudents, o.name from tutor t join students s on t.id=s.tutoridjoin office o o.id=t.officeid group by o.name;

select count (s.name) as numberofstudents, o.name from tutor t join students s on t.id=s.idjoin office o on o.id=t.id group by o.name;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

56. Retrieve tutors’ name and the number of students for each of them. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))}.

select count (s.name) as numberofstudents, t.name from tutor t join students s on t.id=s.tutoridgroup by t.name;

select count (s.name) as numberofstudents, t.name from tutor t join students s on t.id=s.tutorid;

select count (s.name) as numberofstudents, t.name from tutor t join students s on t.id=s.idgroup by t.name;

select count (s.name) as numberofstudents, t.name from tutor t join students s on t.id=s.id;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

55. Retrieve all tutors and students names. Tables: OFFICE {id (PK), locations, name}, TUTOR {id (PK), name, officeid (FK references office (id)), experience}, STUDENTS {id (PK), name, scholarship, registereddate, tutorid (FK references tutor (id))}.

select t.name, s.name from tutor t full join students s on t.id=s.tutorid;

select t.name, s.name from tutor t full join students s t.id=s.tutorid;

select t.name, s.name from tutor t full join students s t.id=s.id;

select t.name, s.name from tutor t full join students s on t.id=s.id;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?