SQL SELECT Syntax
SELECT column_name(s) FROM table_name
and
SELECT * FROM table_name
SQL INSERT INTO Syntax
It is possible to write the INSERT INTO statement in two forms. The first form doesn't specify the column names where the data will be inserted, only their values:
INSERT INTO table_name VALUES (value1, value2, value3,...)
The second form specifies both the column names and the values to be inserted:
INSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...)
SQL UPDATE Syntax
UPDATE table_name SET column1=value, column2=value2,... WHERE some_column=some_value
SQL DELETE Syntax
DELETE FROM table_name WHERE some_column=some_value
SQL WHERE Syntax
SELECT column_name(s) FROM table_name WHERE column_name operator value
AND Operator Example
SELECT * FROM Persons WHERE FirstName='Tove' AND LastName='Svendson'
OR Operator Example
SELECT * FROM Persons WHERE FirstName='Tove' OR FirstName='Ola'
combining AND & OR
SELECT * FROM Persons WHERE
LastName='Svendson' AND (FirstName='Tove' OR FirstName='Ola')
SQL DISTINCT COMMAND SELECT DISTINCT "column_name" FROM "table_name"