Skip to content

Commit

Permalink
Sample files
Browse files Browse the repository at this point in the history
  • Loading branch information
TexanInParis committed Aug 29, 2016
1 parent 278c561 commit 4096c86
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion Microsoft SQL Server/Chapter 04/Listing 4.018.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ GO

-- Sample query that searches products correctly:
CREATE VIEW ProdsOfInterest AS
SELECT Products.ProductName,
SELECT DISTINCT
CASE WHEN Products.ProductName LIKE '%Skateboard%' THEN 'Skateboard'
WHEN Products.ProductName LIKE '%Helmet%' THEN 'Helmet'
WHEN Products.ProductName LIKE '%Knee Pads%' THEN 'Knee Pads'
Expand Down
2 changes: 1 addition & 1 deletion Microsoft SQL Server/Chapter 04/Listing 4.019.sql
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ INNER JOIN Products
GO

CREATE VIEW ProdsOfInterest AS
SELECT Products.ProductName,
SELECT DISTINCT
CASE WHEN Products.ProductName LIKE '%Skateboard%' THEN 'Skateboard'
WHEN Products.ProductName LIKE '%Helmet%' THEN 'Helmet'
WHEN Products.ProductName LIKE '%Knee Pads%' THEN 'Knee Pads'
Expand Down
2 changes: 1 addition & 1 deletion Microsoft SQL Server/Chapter 04/Listing 4.020.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ INNER JOIN Products
GO

CREATE VIEW ProdsOfInterest AS
SELECT Products.ProductName,
SELECT DISTINCT
CASE WHEN Products.ProductName LIKE '%Skateboard%' THEN 'Skateboard'
WHEN Products.ProductName LIKE '%Helmet%' THEN 'Helmet'
WHEN Products.ProductName LIKE '%Knee Pads%' THEN 'Knee Pads'
Expand Down
2 changes: 1 addition & 1 deletion MySQL/Chapter 04/Listing 4.018.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DROP VIEW ProdsOfInterest;

-- Sample query that searches products correctly:
CREATE VIEW ProdsOfInterest AS
SELECT Products.ProductName,
SELECT DISTINCT
CASE WHEN Products.ProductName LIKE '%Skateboard%' THEN 'Skateboard'
WHEN Products.ProductName LIKE '%Helmet%' THEN 'Helmet'
WHEN Products.ProductName LIKE '%Knee Pads%' THEN 'Knee Pads'
Expand Down
2 changes: 1 addition & 1 deletion MySQL/Chapter 04/Listing 4.019.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ INNER JOIN Products
ON Products.ProductNumber = Order_Details.ProductNumber;

CREATE VIEW ProdsOfInterest AS
SELECT Products.ProductName,
SELECT DISTINCT
CASE WHEN Products.ProductName LIKE '%Skateboard%' THEN 'Skateboard'
WHEN Products.ProductName LIKE '%Helmet%' THEN 'Helmet'
WHEN Products.ProductName LIKE '%Knee Pads%' THEN 'Knee Pads'
Expand Down
2 changes: 1 addition & 1 deletion MySQL/Chapter 04/Listing 4.020.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ INNER JOIN Products
ON Products.ProductNumber = Order_Details.ProductNumber;

CREATE VIEW ProdsOfInterest AS
SELECT Products.ProductName,
SELECT DISTINCT
CASE WHEN Products.ProductName LIKE '%Skateboard%' THEN 'Skateboard'
WHEN Products.ProductName LIKE '%Helmet%' THEN 'Helmet'
WHEN Products.ProductName LIKE '%Knee Pads%' THEN 'Knee Pads'
Expand Down

0 comments on commit 4096c86

Please sign in to comment.