תבנית:מפעל כדורסל/הצגת מספרים עונתיים/שליפת נתונים: הבדלים בין גרסאות בדף
מתוך מכביפדיה
אין תקציר עריכה
אין תקציר עריכה
 
(גרסת ביניים אחת של אותו משתמש אינה מוצגת)
שורה 6: שורה 6:
tables=Basketball_Games=bg, Basketball_Achievements=ba
tables=Basketball_Games=bg, Basketball_Achievements=ba
|join on=bg.Season=ba.Season, bg.Competition=ba.Competition  
|join on=bg.Season=ba.Season, bg.Competition=ba.Competition  
|where=bg.Competition IN ({{#arrayprint: מפעלים |, |@@@@ |"{{#replace: @@@@|'|}}"}})
|where=bg.Competition IN ({{#arrayprint: מפעלים |, |@@@@ |"@@@@"}})
|fields=bg.Season=Season, ba.Achievement=Achievement, ba.Competition=Competition, COUNT(CASE WHEN bg.ResultOpt=1 THEN 1 ELSE NULL END)=WinningCount, COUNT(CASE WHEN bg.ResultOpt=3 THEN 3 ELSE NULL END)=LoosingCount
|fields=bg.Season=Season, ba.Achievement=Achievement, ba.Competition=Competition, COUNT(CASE WHEN bg.ResultOpt=1 THEN 1 ELSE NULL END)=WinningCount, COUNT(CASE WHEN bg.ResultOpt=3 THEN 3 ELSE NULL END)=LoosingCount
|group by=bg.Season, bg.Competition, ba.Achievement
|group by=bg.Season, bg.Competition, ba.Achievement

גרסה אחרונה מ־10:55, 15 בינואר 2026