SQL 1-60

SQL 1-60

1st Grade

60 Qs

quiz-placeholder

Similar activities

Maths KS1

Maths KS1

1st - 3rd Grade

61 Qs

Kuiz matematik

Kuiz matematik

1st - 3rd Grade

60 Qs

3G Math Final Review

3G Math Final Review

1st - 5th Grade

59 Qs

HÓA GK 11

HÓA GK 11

1st Grade

57 Qs

Math review 2

Math review 2

1st - 5th Grade

61 Qs

Practice

Practice

1st - 6th Grade

62 Qs

You can do this

You can do this

1st Grade

64 Qs

Fun kindergarten quiz

Fun kindergarten quiz

KG - 1st Grade

62 Qs

SQL 1-60

SQL 1-60

Assessment

Quiz

Mathematics

1st Grade

Practice Problem

Medium

Created by

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

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?