Skip to content

Commit

Permalink
Sample files
Browse files Browse the repository at this point in the history
  • Loading branch information
DJSteele committed Jul 21, 2016
1 parent 23b42f5 commit 8f85dd9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion IBM DB2/Chapter 02/Listing 2.016.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SET SCHEMA SalesOrdersSample;

SELECT CustomerID, Sum(OrderTotal)
SELECT CustomerID, Sum(OrderTotal) AS SumOrderTotal
FROM Orders
WHERE OrderDate > DATE '2015-12-01'
GROUP BY CustomerID;
2 changes: 1 addition & 1 deletion Microsoft SQL Server/Chapter 02/Listing 2.016.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ USE SalesOrdersSample;
GO

-- Listing 2.16 Sample query SQL with WHERE clause
SELECT CustomerID, Sum(OrderTotal)
SELECT CustomerID, Sum(OrderTotal) AS SumOrderTotal
FROM Orders
WHERE OrderDate > '2015-12-01'
GROUP BY CustomerID;
2 changes: 1 addition & 1 deletion MySQL/Chapter 02/Listing 2.016.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
USE SalesOrdersSample;

-- Listing 2.16 Sample query SQL with WHERE clause
SELECT CustomerID, Sum(OrderTotal)
SELECT CustomerID, Sum(OrderTotal) AS SumOrderTotal
FROM Orders
WHERE OrderDate > '2015-12-01'
GROUP BY CustomerID;
2 changes: 1 addition & 1 deletion Oracle/Chapter 02/Listing 2.016.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ALTER SESSION SET CURRENT_SCHEMA = SalesOrdersSample;

SELECT CustomerID, Sum(OrderTotal)
SELECT CustomerID, Sum(OrderTotal) AS SumOrderTotal
FROM Orders
WHERE OrderDate > DATE '2015-12-01'
GROUP BY CustomerID;
2 changes: 1 addition & 1 deletion PostgreSQL/Chapter 02/Listing 2.016.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SET search_path = SalesOrdersSample;

SELECT CustomerID, Sum(OrderTotal)
SELECT CustomerID, Sum(OrderTotal) AS SumOrderTotal
FROM Orders
WHERE OrderDate > DATE '2015-12-01'
GROUP BY CustomerID;

0 comments on commit 8f85dd9

Please sign in to comment.