Created
April 19, 2016 19:10
-
-
Save devadutta/02ca910e941ed4d2a4f463ea5fca5629 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
SELECT l_returnflag, | |
l_linestatus, | |
Sum(l_quantity) AS SUM_QTY, | |
Sum(l_extendedprice)AS SUM_BASE_PRICE, | |
Sum(l_extendedprice * ( 1 - l_discount ))AS SUM_DISC_PRICE | |
FROM lineitem | |
GROUP BY l_returnflag, | |
l_linestatus | |
ORDER BY l_returnflag, | |
l_linestatus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment