CLASSIFICACIÓ 10K: 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 dos, IFNULL((SELECT puntscat FROM historic WHERE idcursa=132 AND dni=doc ),0) AS tres, 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, IFNULL((SELECT puntscat FROM historic WHERE idcursa=140 AND dni=doc ),0) AS once, 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àrbaraCamarlesTortosaJesúsDeltebreLa GaleraL'Aldea Total Punts
1 CARBÓ FRANCH, ÉRIAN 1031031031151151150103000 757 757
2 RIERA I CAIRE, ALBERT 11511500000115000 345 345
3 PEDROL PASCUAL, OSCAR 00850103000000 188 188
4 MAIJÓ FRIGOLA, ÀDAM 0000000001150 115 115
5 MARZA PLA, XAVI 0011500000000 115 115
6 CEBALLOS CAMAÑES , ADRIA 0000000001030 103 103
7 FABREGAT CAMPOS, NIL 009300000000 93 93
8 MIOAGA TRASCA , ROBERT 000000000930 93 93
9 VATAMANIUC, NICOLAE 000000000850 85 85




Amb el suport de: