First, the basic select statement
SELECT id select those columns
FROM identifies the table from which to select
select * Select All logo
select department_id, location_id
from departments; selecting a particular column
note:
SQL language is not case sensitive
SQL can be written in one or more rows
Keywords can not be abbreviated nor branch
Each clause of general branches write
Use indentation to improve readability statement
Second, the arithmetic operators
Numbers and dates of use of arithmetic operators (multiplication and division can not be used date)
Operator Description
+ Plus
- Less
* Multiplication
/ Division
Operator precedence
* / + -