תבנית:מפעל כדורגל/הצגת מספרים עונתיים/שליפת נתונים: הבדלים בין גרסאות בדף
מתוך מכביפדיה
אין תקציר עריכה
אין תקציר עריכה
שורה 6: שורה 6:
tables=Football_Games=fg, Achievements=a
tables=Football_Games=fg, Achievements=a
|join on=fg.Season=a.Season, fg.Competition=a.Competition  
|join on=fg.Season=a.Season, fg.Competition=a.Competition  
|where=a.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=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
|group by=a.Season, a.Competition, a.Achievement
|group by=a.Season, a.Competition, a.Achievement

גרסה מ־16:41, 3 במרץ 2025