This repository has been archived on 2026-10-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
chinook/project_notes.md
T
2022-02-21 12:00:52 -06:00

520 B

Project Notes - SQL Interlude - Chinook

Questions

How to use NOT in queries

Why does

SELECT * FROM CUSTOMER
WHERE COUNTRY NOT LIKE 'USA';

work and

SELECT * FROM CUSTOMER
WHERE COUNTRY NOT 'USA';

does not work?

Answer

To avoid using LIKE

WHERE NOT customer.country = "USA";
or
WHERE NOT != "USA";

are valid ways of forming the query.

Resources

How to concatenate columns in SQL - CONCAT_WS()