commiting first excercise

This commit is contained in:
2022-02-21 11:26:11 -06:00
parent 9050efabcf
commit 3ed87f5ac7
3 changed files with 29 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
projectnotes.md*
+2
View File
@@ -0,0 +1,2 @@
SELECT CustomerId, FirstName, Country FROM CUSTOMER
WHERE COUNTRY != 'USA';
+26
View File
@@ -0,0 +1,26 @@
# Project Notes - SQL Interlude - U
## 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";` <br/>
or <br/>
`WHERE NOT != "USA";` <br/>
are valid ways of forming the query.