Created
March 29, 2016 07:31
-
-
Save kokosing/912782236d728b782a7d to your computer and use it in GitHub Desktop.
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
[1;31m*** q18.sql 2016-03-25 14:10:21.906553746 +0100[0;0m | |
[1;34m--- q18_modified.sql 2016-03-25 14:10:21.906553746 +0100[0;0m | |
[1;35m***************[0;0m | |
[1;35m*** 1,16 ****[0;0m | |
[0;0m SELECT i_item_id,[0;0m | |
[0;0m ca_country,[0;0m | |
[0;0m ca_state,[0;0m | |
[0;0m ca_county,[0;0m | |
[1;31m! avg(cast(cs_quantity AS numeric(12,2))) agg1,[0;0m | |
[1;31m! avg(cast(cs_list_price AS numeric(12,2))) agg2,[0;0m | |
[1;31m! avg(cast(cs_coupon_amt AS numeric(12,2))) agg3,[0;0m | |
[1;31m! avg(cast(cs_sales_price AS numeric(12,2))) agg4,[0;0m | |
[1;31m! avg(cast(cs_net_profit AS numeric(12,2))) agg5,[0;0m | |
[1;31m! avg(cast(c_birth_year AS numeric(12,2))) agg6,[0;0m | |
[1;31m! avg(cast(cd1.cd_dep_count AS numeric(12,2))) agg7[0;0m | |
[0;0m FROM "${database}"."${schema}".catalog_sales,[0;0m | |
[0;0m "${database}"."${schema}".customer_demographics cd1,[0;0m | |
[0;0m "${database}"."${schema}".customer_demographics cd2,[0;0m | |
[0;0m "${database}"."${schema}".customer,[0;0m | |
[0;0m "${database}"."${schema}".customer_address,[0;0m | |
[1;35m--- 1,16 ----[0;0m | |
[0;0m SELECT i_item_id,[0;0m | |
[0;0m ca_country,[0;0m | |
[0;0m ca_state,[0;0m | |
[0;0m ca_county,[0;0m | |
[1;34m! avg(cast(cs_quantity AS decimal(12,2))) agg1,[0;0m | |
[1;34m! avg(cast(cs_list_price AS decimal(12,2))) agg2,[0;0m | |
[1;34m! avg(cast(cs_coupon_amt AS decimal(12,2))) agg3,[0;0m | |
[1;34m! avg(cast(cs_sales_price AS decimal(12,2))) agg4,[0;0m | |
[1;34m! avg(cast(cs_net_profit AS decimal(12,2))) agg5,[0;0m | |
[1;34m! avg(cast(c_birth_year AS decimal(12,2))) agg6,[0;0m | |
[1;34m! avg(cast(cd1.cd_dep_count AS decimal(12,2))) agg7[0;0m | |
[0;0m FROM "${database}"."${schema}".catalog_sales,[0;0m | |
[0;0m "${database}"."${schema}".customer_demographics cd1,[0;0m | |
[0;0m "${database}"."${schema}".customer_demographics cd2,[0;0m | |
[0;0m "${database}"."${schema}".customer,[0;0m | |
[0;0m "${database}"."${schema}".customer_address,[0;0m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment