SUB-23 MASCUL═

SELECT nom as sujeto, dni as doc, sexe as sex1, categoria as cate, IFNULL((SELECT puntscat FROM historic WHERE idcursa=130 AND dni=doc ),0) AS una, IFNULL((SELECT puntscat FROM historic WHERE idcursa=131 AND dni=doc ),0) AS tres, IFNULL((SELECT puntscat FROM historic WHERE idcursa=132 AND dni=doc ),0) AS dos, IFNULL((SELECT puntscat FROM historic WHERE idcursa=133 AND dni=doc ),0) AS quatre, IFNULL((SELECT puntscat FROM historic WHERE idcursa=134 AND dni=doc ),0) AS cinc, IFNULL((SELECT puntscat FROM historic WHERE idcursa=135 AND dni=doc ),0) AS sis, IFNULL((SELECT puntscat FROM historic WHERE idcursa=136 AND dni=doc ),0) AS siet, IFNULL((SELECT puntscat FROM historic WHERE idcursa=137 AND dni=doc ),0) AS vuit, IFNULL((SELECT puntscat FROM historic WHERE idcursa=138 AND dni=doc ),0) AS nou, IFNULL((SELECT puntscat FROM historic WHERE idcursa=139 AND dni=doc ),0) AS deu, SUM(puntscat) AS punts, SUM(empat) as desempat FROM historic WHERE categoria="S23 M" GROUP BY dni ORDER BY punts DESC, desempat ASC..
Pos Nom AmpostaL'AmpollaUlldeconaPerellˇS.BÓrbaraCamarlesTortosaDeltebreLa GaleraJes˙s Total Punts
1 RIERA I CAIRE, ALBERT 9310301151030103103930 713 713
2 ABAGHAD, YOUSSEF 1151150011510301151030 666 666
3 TOM└S GIN╔, GUILLEM 079103093009300 368 368
4 MAIJË FRIGOLA, └DAM 0000011511501150 345 345
5 VIDIELLA CURTO, SERGI 79850009300850 342 342
6 PONS TOM└S, RAMON 1039300000000 196 196
7 MARZA PLA, XAVI 001150000000 115 115
8 PONS ALEMAN, ALEX 00930000000 93 93
9 BELTRAN MARTINEZ-AGUADO, RAMON 85000000000 85 85
10 CARBË FRANCH, ERIAN 00000008500 85 85
11 STANCIU, MIHAI MARIUS 00000000790 79 79
12 CID FERRE, LLULL 00000000750 75 75
13 RAMON FARGA, └NGEL 75000000000 75 75
14 TRASCA, ROBERT 00000000730 73 73