# 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()](https://www.w3schools.com/sql/func_mysql_concat_ws.asp) ## New Concepts/Syntax SQLite
`strftime('%Y', InvoiceDate`
[strftime documentation](https://www.w3resource.com/sqlite/sqlite-strftime.php)