אורן המתעפץ (שיחה | תרומות) (יצירת דף עם התוכן "<includeonly><!-- We use SUM(Score)/COUNT(*) instead of AVG(Score) because AVG didn't work well with empty values -->{{#cargo_query: table=Volleyball_Players_Ga...") |
אורן המתעפץ (שיחה | תרומות) אין תקציר עריכה |
||
| שורה 3: | שורה 3: | ||
We use SUM(Score)/COUNT(*) instead of AVG(Score) because AVG didn't work well with empty values | We use SUM(Score)/COUNT(*) instead of AVG(Score) because AVG didn't work well with empty values | ||
-->{{#cargo_query: | -->{{#cargo_query: | ||
table=Volleyball_Players_Game_Events=vpge, Volleyball_Games=vg | table=Volleyball_Players_Game_Events=vpge, Volleyball_Games=vg, Volleyball_Competitions=vc | ||
|join on=vpge._pageName = vg._pageName | |join on=vpge._pageName = vg._pageName, vg.Competition=vc.OriginalName | ||
|fields=COUNT(*)=Appearances, SUM(vpge.PlayerScore)=PointsSum, SUM(vpge.PlayerScore)/COUNT(*)=PointsAvg | |fields=COUNT(*)=Appearances, SUM(vpge.PlayerScore)=PointsSum, SUM(vpge.PlayerScore)/COUNT(*)=PointsAvg | ||
|where=vpge.PlayerName="{{{שם|}}}" AND vpge.Team=1 AND vpge.isPlayed=true | |where=vpge.PlayerName="{{{שם|}}}" AND vpge.Team=1 AND vpge.isPlayed=true AND vc.Official=true | ||
|format=template | |format=template | ||
|template=פרופיל כדורעף/מספרים עונתיים/הצגת סכימת מספרים/שחקן | |template=פרופיל כדורעף/מספרים עונתיים/הצגת סכימת מספרים/שחקן | ||