The two following SQL statements select all customers with a City NOT starting with "b", "s", or "p":

Example

SELECT * FROM Customers
WHERE City LIKE '[!bsp]%';

Or:

Example

SELECT * FROM Customers
WHERE City NOT LIKE '[bsp]%';



Practice Excercise Practice now