Created
May 20, 2014 20:11
-
-
Save niisar/2e8052f9761f92b6911b to your computer and use it in GitHub Desktop.
Create the all combinations of data using the variables ,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select SURVEY_YEAR, | |
candybar_name, | |
gender, | |
overall_rating, | |
sum(number_bars_consumed) as total_bars_consumed | |
from candybar_consumption_data | |
group by cube(SURVEY_YEAR,CANDYBAR_NAME,GENDER,OVERALL_RATING) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment