SQL 1-60

SQL 1-60

1st Grade

60 Qs

quiz-placeholder

Similar activities

Geometry Review

Geometry Review

1st - 3rd Grade

58 Qs

Seleksi T1 OSN Matematika SDN Jenang 02

Seleksi T1 OSN Matematika SDN Jenang 02

1st - 5th Grade

60 Qs

Geometry Practice

Geometry Practice

1st - 5th Grade

60 Qs

Place Value, Standard Form and Written Numbers

Place Value, Standard Form and Written Numbers

1st - 6th Grade

55 Qs

Triangle Congruence

Triangle Congruence

KG - 10th Grade

64 Qs

Quiz sa Pagbasa at Kasanayan

Quiz sa Pagbasa at Kasanayan

1st Grade

60 Qs

Inspire Part III Quizziz

Inspire Part III Quizziz

KG - 1st Grade

56 Qs

Angles Review Game

Angles Review Game

KG - 10th 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?

Similar Resources on Wayground