SQL Trainer

Vår 2026

Deadline: 2026-03-08

Task 74

Räkna hur många olika uppgifter varje studerande har löst korrekt (inlämningens status är 0 = fel eller 1 = rätt).

Example

Input

Students

idname
1Uolevi
2Maija
3Kaaleppi

Exercises

idname
1T1
2T2
3T3

Submissions

idstudent_idexercise_idstate
1110
2110
3211
4120
5111
6221
7230
8120
9121
10221
11221

Output

Uolevi2
Maija2
Kaaleppi0