Apply the basic prompts (Table 14-6)
| Identifiers | When | date and time |
| Where | Region City |
|
| What | Movie title Rating Genre |
|
| How | reservation channel (phone, Web,booth) | |
| Variables | Outcomes | Revenue Adult tickets sold Senior tickets sold Child tickets sold Adult price Senior price Child price Concession sales Weather |
SELECT SUM(revenue) FROM exped SELECT location, SUM(revenue) FROM exped GROUP BY location SELECT channel, SUM(revenue) FROM exped GROUP BY channel SELECT location, channel, SUM(revenue) FROM exped GROUP BY location, channel
SELECT location, channel, item, DECIMAL(SUM(revenue),9) FROM exped GROUP BY GROUPING SETS (location, channel, item)
Channel is listed before location.
This page is part of the promotional and support material for Data Management (fifth edition) by Richard T. Watson |