Mateusz Baczewski / 11 czerwca 2024
Odcinek pierwszy (przygotowanie środowiska): https://www.youtube.com/embed/I7YyA0iQJO0?si=HBn1_PqxJdyzCoAq
DB Browser for SQL Lite: https://sqlitebrowser.org/
Baza danych do pobrania: https://www.sqlitetutorial.net/sqlite-sample-database/
SELECT * FROM employees WHERE title = 'IT Staff'
SELECT * FROM employees WHERE title IN ('IT Staff', 'IT Manager')
SELECT * FROM employees WHERE title IN ('IT Staff', 'IT Manager', 'Sales Manager')
SELECT * FROM employees WHERE title != 'IT Staff'
SELECT * FROM employees WHERE title <> 'IT Staff'
SELECT * FROM employees WHERE NOT title = 'IT Staff'
SELECT * FROM employees WHERE title NOT IN ('IT Staff', 'IT Manager', 'Sales Manager')
SELECT * FROM invoices WHERE `Total` = 1.98
SELECT * FROM invoices WHERE `Total` > 1.98
SELECT * FROM invoices WHERE `Total` >= 1.98
SELECT * FROM invoices WHERE `Total` < 1.98
SELECT * FROM invoices WHERE `Total` <= 1.98
SELECT * FROM invoices WHERE total BETWEEN 0.99 AND 3.96
SELECT * FROM invoices WHERE InvoiceDate BETWEEN '2009-01-01 00:00:00' AND '2009-01-03 00:00:00'
SELECT * FROM invoices WHERE InvoiceDate NOT BETWEEN '2009-01-01 00:00:00' AND '2009-01-03 00:00:00'