68 of 100 menu

SQL Taskbook Level 7.8

The tables are given:

students
id name grade
1 John 91
2 Alex 92
3 Evans null
4 Alisa null
5 Donella 66
6 Lauren 79
7 Matthew null
8 Andrew 62
9 Richard 55
10 Sam null
grade_subjects
id subject_id student_id grade
1 1 5 70
3 1 6 91
5 1 9 79
6 1 8 71
8 1 2 77
9 1 1 94
subjects
id name
1 Math

Solve the following tasks for them:

List all students and their GPA, where if a student has no grades, his GPA is assumed to be 'NULL'.

List all students and the number of subjects they have no grades for.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline