SQL 1-60

SQL 1-60

1st Grade

60 Qs

quiz-placeholder

Similar activities

Mental maths / gk

Mental maths / gk

1st - 12th Grade

60 Qs

Coins

Coins

KG - 3rd Grade

57 Qs

maths

maths

1st Grade

56 Qs

MCT Maths Year 1

MCT Maths Year 1

1st Grade

60 Qs

Maths DJ

Maths DJ

1st - 5th Grade

58 Qs

Math Quiz

Math Quiz

1st Grade - University

62 Qs

Counting Money

Counting Money

1st - 3rd Grade

63 Qs

KECERUNAN GARIS LURUS TINGKATAN 2 (KSSM)

KECERUNAN GARIS LURUS TINGKATAN 2 (KSSM)

1st Grade - University

60 Qs

SQL 1-60

SQL 1-60

Assessment

Quiz

Mathematics

1st Grade

Practice Problem

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?