Created
March 29, 2016 07:31
-
-
Save kokosing/7e65102cfc8bd8724491 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*** q21.sql 2016-03-25 14:10:21.906553746 +0100[0;0m | |
[1;34m--- q21_modified.sql 2016-03-25 14:10:21.906553746 +0100[0;0m | |
[1;35m***************[0;0m | |
[1;35m*** 10,20 ****[0;0m | |
[0;0m "${database}"."${schema}".date_dim[0;0m | |
[0;0m WHERE i_current_price BETWEEN 0.99 AND 1.49[0;0m | |
[0;0m AND i_item_sk = inv_item_sk[0;0m | |
[0;0m AND inv_warehouse_sk = w_warehouse_sk[0;0m | |
[0;0m AND inv_date_sk = d_date_sk[0;0m | |
[1;31m! AND d_date BETWEEN (CAST ('1999-06-23' AS date) - 30 days) AND (CAST ('1999-06-23' AS date) + 30 days)[0;0m | |
[0;0m GROUP BY w_warehouse_name,[0;0m | |
[0;0m i_item_id) x[0;0m | |
[0;0m WHERE (CASE WHEN inv_before > 0 THEN inv_after / inv_before ELSE NULL END) BETWEEN 2.0/3.0 AND 3.0/2.0[0;0m | |
[0;0m ORDER BY w_warehouse_name,[0;0m | |
[0;0m i_item_id LIMIT 100;[0;0m | |
[1;35m--- 10,20 ----[0;0m | |
[0;0m "${database}"."${schema}".date_dim[0;0m | |
[0;0m WHERE i_current_price BETWEEN 0.99 AND 1.49[0;0m | |
[0;0m AND i_item_sk = inv_item_sk[0;0m | |
[0;0m AND inv_warehouse_sk = w_warehouse_sk[0;0m | |
[0;0m AND inv_date_sk = d_date_sk[0;0m | |
[1;34m! AND d_date BETWEEN (CAST ('1999-06-23' AS date) - INTERVAL '30' DAY) AND (CAST ('1999-06-23' AS date) + INTERVAL '30' DAY)[0;0m | |
[0;0m GROUP BY w_warehouse_name,[0;0m | |
[0;0m i_item_id) x[0;0m | |
[0;0m WHERE (CASE WHEN inv_before > 0 THEN inv_after / inv_before ELSE NULL END) BETWEEN 2.0/3.0 AND 3.0/2.0[0;0m | |
[0;0m ORDER BY w_warehouse_name,[0;0m | |
[0;0m i_item_id LIMIT 100;[0;0m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment