תבנית:מפעל כדורגל/הצגת מספרים עונתיים/שליפת נתונים: הבדלים בין גרסאות בדף
מתוך מכביפדיה
(יצירת דף עם התוכן "<includeonly><!-- -->{{#arraydefine: מפעלים |{{{מפעלים}}}}}<!-- -->{{#תנאי: {{{מפעלים|}}} |{{#cargo_query: tables=Football_Games=fg, Achi...")
 
אין תקציר עריכה
שורה 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=a.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

גרסה מ־13:18, 3 במרץ 2025