1select [all/distinct] <COL1>, <COL2>, <COL3>
2from <TABLE_NAME>
3[join <JOIN_CONDITION>]
4[where <CONDITION>]
5[group by <COLUMN_NAME>]
6[having <SEARCH_CONDITION>]
7[order by <SORT_SPECIFICATION>]
8
9
10/*
11Specifically for SQL -> Oracle
12
13LEGEND:
14[...] : optional entries
15<...> : your specific entry
16*/
1Everything in brackets is optional.
2SELECT [all/distinct] <COL1>, <COL2>, <COL3>
3FROM <TABLE_NAME>
4[JOIN <JOIN_CONDITION>]
5[WHERE <CONDITION>]
6[GROUP BY <COLUMN_NAME>]
7[HAVING <SEARCH_CONDITION>]
8[ORDER BY <SORT_SPECIFICATION>]
1SELECT orders.order_id, customers.last_name
2FROM orders
3INNER JOIN customers
4ON orders.customer_id = customers.customer_id
5WHERE orders.order_id <> 1
6ORDER BY orders.order_id;