Navigation
Most popular FAQs 
- When I add a new player they do not ... (31808 views)
- You calculate ERAs for 6 or 9 innings. My ... (30438 views)
- How do you add a statistic to a report? ... (30301 views)
- I don't understand the statistic Catcher's Interference (CI)? How ... (28526 views)
- How do you create an Input Statistic? (28409 views)
- I just purchased Statbook 3.2 in the hopes that ... (28169 views)
- Any way to for me to access the Totals ... (27755 views)
- How do I add OPS (On-base percentage + Slugging) ... (26715 views)
- Love the new report builder. Can it do conditionals? ... (26355 views)
- I used to indicate .1 for a 1/3 inning ... (24763 views)
Latest FAQs 
- I downloaded your software and can't figure out how ... (2012-09-28 15:47)
- How come you don't respond to my emails? (2012-09-28 15:42)
- Is Statbook compatible with Mac OS X 10.7 Lion? ... (2012-02-03 18:09)
- I am trialling this software for potential use. I ... (2012-02-03 18:06)
- Where can I download previous versions of Statbook and ... (2012-02-03 18:02)
Reports & Statistics
Where is the "Additional Instructions" field? Also, I'd like to be able to have access to the last 2,3,4,and 5 games for both league and non league
So, the "Additional Instructions" field in near the top-left of the Edit Reports window (right below the two check-boxes, "Show Totals" and "Group With Next".
To get to the Edit Reports window, either double-click on a report (or a report field) or select a report and then choose the Reports -> Edit Reports... menu item.
To have a "League" only report, you would put this text in the "Additional Instructions" field (making sure "GROUP BY p.ID" is a separate line):
Where g.GameType="League"
GROUP BY p.ID
The Pitching report would look like this:
WHERE s.pitched='1' AND g.GameType="League"
GROUP BY p.ID
Let's go one step further and say you want a League report but only show the "Active" players on your roster. This would look like:
Where g.GameType="League" AND p.Active='1'
GROUP BY p.ID
The Pitching report would not need to change since an inactive player should not have pitched.
Now let's say you want to a report that shows the last 5 games, for League games only:
Where g.GameType="League" AND p.Active='1' AND s.gameID IN (SELECT g.id FROM games g ORDER BY g.gameNo DESC LIMIT 0,5)
GROUP BY p.ID
Last 2 games would look like:
Where g.GameType="League" AND p.Active='1' AND s.gameID IN (SELECT g.id FROM games g ORDER BY g.gameNo DESC LIMIT 0,2)
GROUP BY p.ID
Changed the '5' to a '2'
For Non-League reports, simply replace "League" in the above examples with "Non-League".
Tags: -
Related entries:
- How do you create an Input Statistic?
- How do you add a statistic to a report?
- You calculate ERAs for 6 or 9 innings. My ERA is based on 7 innings (or another number). How do I change this?
- How do I add OPS (On-base percentage + Slugging) to an overall report?
- When I add a new player they do not appear in the game data entry forms or in the reports. How do I add a new player during the season?
Last update: 2011-04-22 19:07
Author: Statbook
Revision: 1.1
You cannot comment on this entry