-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
802a902
commit 988e68b
Showing
4 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
select sum(v_revenue) as revenue | ||
from p_lineorder | ||
left join dates on lo_orderdate = d_datekey | ||
where d_year = 1993; | ||
where d_year = 1993 | ||
and lo_discount between 1 and 3 | ||
and lo_quantity < 25; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
select sum(v_revenue) as revenue | ||
from p_lineorder | ||
left join dates on lo_orderdate = d_datekey | ||
where d_yearmonthnum = 199401; | ||
where d_yearmonthnum = 199401 | ||
and lo_discount between 4 and 6 | ||
and lo_quantity between 26 and 35; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
select sum(v_revenue) as revenue | ||
from p_lineorder | ||
left join dates on lo_orderdate = d_datekey | ||
where d_weeknuminyear = 6 and d_year = 1994; | ||
where d_weeknuminyear = 6 and d_year = 1994 | ||
and lo_discount between 5 and 7 | ||
and lo_quantity between 26 and 35; |
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