תבנית:מפעל כדורגל/הצגת מספרים עונתיים/שליפת נתונים: הבדלים בין גרסאות בדף
מתוך מכביפדיה
אין תקציר עריכה
אין תקציר עריכה
 
שורה 7: שורה 7:
|join on=fg.Season=a.Season, fg.Competition=a.Competition  
|join on=fg.Season=a.Season, fg.Competition=a.Competition  
|where=fg.Competition IN ({{#arrayprint: מפעלים |, |@@@@ |'{{המרות/שם ללא גרש וגרשיים |שם=@@@@}}'}})
|where=fg.Competition IN ({{#arrayprint: מפעלים |, |@@@@ |'{{המרות/שם ללא גרש וגרשיים |שם=@@@@}}'}})
|fields=a.Season=Season, a.Achievement=Achievement, a.Competition=Competition, COUNT(CASE WHEN fg.ResultOpt=1 THEN 1 ELSE NULL END)=WinningCount, COUNT(CASE WHEN fg.ResultOpt=2 THEN 2 ELSE NULL END)=TieCount, COUNT(CASE WHEN fg.ResultOpt=3 THEN 3 ELSE NULL END)=LoosingCount
|fields=fg.Season=Season, a.Achievement=Achievement, a.Competition=Competition, COUNT(CASE WHEN fg.ResultOpt=1 THEN 1 ELSE NULL END)=WinningCount, COUNT(CASE WHEN fg.ResultOpt=2 THEN 2 ELSE NULL END)=TieCount, COUNT(CASE WHEN fg.ResultOpt=3 THEN 3 ELSE NULL END)=LoosingCount
|group by=a.Season, a.Competition, a.Achievement
|group by=fg.Season, fg.Competition, a.Achievement
|order by=a.Season DESC
|order by=fg.Season DESC
|no html
|no html
|named args=yes
|named args=yes

גרסה אחרונה מ־16:43, 3 במרץ 2025