Created
March 29, 2016 07:31
-
-
Save kokosing/b71c87e44be5d3ad3c0f 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*** q32.sql 2016-03-25 14:10:21.906553746 +0100[0;0m | |
[1;34m--- q32_modified.sql 2016-03-25 14:10:21.906553746 +0100[0;0m | |
[1;35m***************[0;0m | |
[1;35m*** 2,15 ****[0;0m | |
[0;0m FROM "${database}"."${schema}".catalog_sales,[0;0m | |
[0;0m "${database}"."${schema}".item,[0;0m | |
[0;0m "${database}"."${schema}".date_dim[0;0m | |
[0;0m WHERE i_manufact_id = 284[0;0m | |
[0;0m AND i_item_sk = cs_item_sk[0;0m | |
[1;31m! AND d_date BETWEEN '2001-01-07' AND (cast('2001-01-07' AS date) + 90 days)[0;0m | |
[0;0m AND d_date_sk = cs_sold_date_sk[0;0m | |
[0;0m AND cs_ext_discount_amt >[0;0m | |
[0;0m (SELECT 1.3 * avg(cs_ext_discount_amt)[0;0m | |
[0;0m FROM "${database}"."${schema}".catalog_sales,[0;0m | |
[0;0m "${database}"."${schema}".date_dim[0;0m | |
[0;0m WHERE cs_item_sk = i_item_sk[0;0m | |
[1;31m! AND d_date BETWEEN '2001-01-07' AND (cast('2001-01-07' AS date) + 90 days)[0;0m | |
[0;0m AND d_date_sk = cs_sold_date_sk) LIMIT 100;[0;0m | |
[1;35m--- 2,15 ----[0;0m | |
[0;0m FROM "${database}"."${schema}".catalog_sales,[0;0m | |
[0;0m "${database}"."${schema}".item,[0;0m | |
[0;0m "${database}"."${schema}".date_dim[0;0m | |
[0;0m WHERE i_manufact_id = 284[0;0m | |
[0;0m AND i_item_sk = cs_item_sk[0;0m | |
[1;34m! AND d_date BETWEEN '2001-01-07' AND (cast('2001-01-07' AS date) + INTERVAL '90' DAY)[0;0m | |
[0;0m AND d_date_sk = cs_sold_date_sk[0;0m | |
[0;0m AND cs_ext_discount_amt >[0;0m | |
[0;0m (SELECT 1.3 * avg(cs_ext_discount_amt)[0;0m | |
[0;0m FROM "${database}"."${schema}".catalog_sales,[0;0m | |
[0;0m "${database}"."${schema}".date_dim[0;0m | |
[0;0m WHERE cs_item_sk = i_item_sk[0;0m | |
[1;34m! AND d_date BETWEEN '2001-01-07' AND (cast('2001-01-07' AS date) + INTERVAL '90' DAY)[0;0m | |
[0;0m AND d_date_sk = cs_sold_date_sk) LIMIT 100;[0;0m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment