Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
AS Used to rename a column. Most helpful when you are calculating something in your select statement.
(note: if you are using more than one word or want mixed case use “”)
SELECT employee_id
FROM employee WHERE position IN
(SELECT position FROM employee WHERE salary > 50000)
INSERT Used to insert data into a table. Note: If you are not adding something to every column you can either list
out the attribute names you have data for and then the data you want in them, OR put in a space holder by
using ‘’. Dates are always in the following format and they use single quotes ’01-JAN-1999’
SELECT employee_lname
FROM employee
WHERE salary > 50000