SQL check

SQL check

12th Grade

11 Qs

quiz-placeholder

Similar activities

C++ cap. 4

C++ cap. 4

9th - 12th Grade

15 Qs

CSS Rules Quiz-unit 4 CodeHS

CSS Rules Quiz-unit 4 CodeHS

7th Grade - University

7 Qs

L6 Data Rep

L6 Data Rep

12th Grade

15 Qs

Domain dan Hosting

Domain dan Hosting

12th Grade

12 Qs

Quiz sul DBMS

Quiz sul DBMS

12th Grade - University

11 Qs

Javascript

Javascript

10th - 12th Grade

15 Qs

Sistemi e reti: CPU, von neumann

Sistemi e reti: CPU, von neumann

12th Grade

10 Qs

HTML & CSS Basics

HTML & CSS Basics

9th - 12th Grade

15 Qs

SQL check

SQL check

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Agostino Villa

Used 2+ times

FREE Resource

11 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

descrivi cosa fa la seguente query

SELECT

fp.id,

first_name,

last_name,

national_team_id,

country,

games_played

FROM football_players fp

JOIN national_team nt

ON fp.national_team_id = nt.id

ORDER BY fp.id;

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

descrivi cosa fa la seguente query

SELECT

fp.id,

first_name,

last_name,

national_team_id,

country,

games_played

FROM football_players fp

LEFT JOIN national_team nt

ON fp.national_team_id = nt.id

ORDER BY fp.id;

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

descrivi cosa fa la seguente query

SELECT

fp.id,

first_name,

last_name,

national_team_id,

country,

games_played

FROM football_players fp

RIGHT JOIN national_team nt

ON fp.national_team_id = nt.id

ORDER BY fp.id;

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

3 mins • 1 pt

descrivi cosa fa la seguente query

SELECT

fp1.id,

fp1.first_name,

fp1.last_name,

fp1.national_team_id,

fp2.id AS id_2,

fp2.first_name AS first_name_2,

fp2.last_name AS last_name_2,

fp2.national_team_id as national_team_id_2

FROM football_players fp1

JOIN football_players fp2

ON fp1.id <> fp2.id

AND fp1.national_team_id = fp2.national_team_id;

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

cosa fa la seguente interrogazione

SELECT

first_name,

last_name,

mobile_data_limit,

data_used,

period

FROM mobile_user mu

JOIN data_usage du

ON mu.id = du.mobile_user_id

AND mobile_data_limit < data_used;

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

descrivi la seguente query

SELECT DISTINCT loan_duration

FROM loans

ORDER BY loan_duration;

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

Descrivi la seguente query

SELECT

column_1,

column_2,

…,

FROM table_name

WHERE …

GROUP BY column_1, column_2

HAVING …

ORDER BY column_1, column_2;

Evaluate responses using AI:

OFF

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?