Skip to content

Commit

Permalink
BETWEEN Text Values Example
Browse files Browse the repository at this point in the history
SELECT * FROM Products
WHERE ProductName BETWEEN 'Carnarvon Tigers' AND 'Mozzarella di Giovanni'
ORDER BY ProductName;

/*NOT BETWEEN Text Values Example
The following SQL statement selects all products with a ProductName NOT BETWEEN Carnarvon Tigers and Mozzarella di Giovanni:*/

SELECT * FROM Products
WHERE ProductName NOT BETWEEN 'Carnarvon Tigers' AND 'Mozzarella di Giovanni'
ORDER BY ProductName;
  • Loading branch information
Sandeep-BlackHat authored Sep 4, 2020
1 parent 69b3c09 commit 51bebe0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions C0de5/Programs_2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ The following SQL statement selects all products with a ProductName BETWEEN Carn
SELECT * FROM Products
WHERE ProductName BETWEEN 'Carnarvon Tigers' AND 'Mozzarella di Giovanni'
ORDER BY ProductName;

/*NOT BETWEEN Text Values Example
The following SQL statement selects all products with a ProductName NOT BETWEEN Carnarvon Tigers and Mozzarella di Giovanni:*/

SELECT * FROM Products
WHERE ProductName NOT BETWEEN 'Carnarvon Tigers' AND 'Mozzarella di Giovanni'
ORDER BY ProductName;

0 comments on commit 51bebe0

Please sign in to comment.