Skip to content

Commit

Permalink
Sample files
Browse files Browse the repository at this point in the history
  • Loading branch information
DJSteele committed Jul 25, 2016
1 parent 17aae05 commit d90d0db
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 04/Listing 4.004.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ SET SCHEMA SalesOrdersSample;

SELECT P.ProductNumber, P.ProductName
FROM Products AS P
WHERE P.ProductNumber NOT IN (SELECT DISTINCT ProductNumber FROM Order_Details);
WHERE P.ProductNumber NOT IN (SELECT ProductNumber FROM Order_Details);

2 changes: 1 addition & 1 deletion Microsoft SQL Server/Chapter 04/Listing 4.004.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ GO

SELECT P.ProductNumber, P.ProductName
FROM Products AS P
WHERE P.ProductNumber NOT IN (SELECT DISTINCT ProductNumber FROM Order_Details);
WHERE P.ProductNumber NOT IN (SELECT ProductNumber FROM Order_Details);

2 changes: 1 addition & 1 deletion MySQL/Chapter 04/Listing 4.004.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ USE SalesOrdersSample;

SELECT P.ProductNumber, P.ProductName
FROM Products AS P
WHERE P.ProductNumber NOT IN (SELECT DISTINCT ProductNumber FROM Order_Details);
WHERE P.ProductNumber NOT IN (SELECT ProductNumber FROM Order_Details);

2 changes: 1 addition & 1 deletion Oracle/Chapter 04/Listing 4.004.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ ALTER SESSION SET CURRENT_SCHEMA = SalesOrdersSample;

SELECT P.ProductNumber, P.ProductName
FROM Products P
WHERE P.ProductNumber NOT IN (SELECT DISTINCT ProductNumber FROM Order_Details);
WHERE P.ProductNumber NOT IN (SELECT ProductNumber FROM Order_Details);

2 changes: 1 addition & 1 deletion PostgreSQL/Chapter 04/Listing 4.004.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ SET search_path = SalesOrdersSample;

SELECT P.ProductNumber, P.ProductName
FROM Products AS P
WHERE P.ProductNumber NOT IN (SELECT DISTINCT ProductNumber FROM Order_Details);
WHERE P.ProductNumber NOT IN (SELECT ProductNumber FROM Order_Details);

0 comments on commit d90d0db

Please sign in to comment.