












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Employee
EmpID name DeptID 1 John Hats
2 David Shoes
Example of Insertion
EmpID name DeptID
1 John Hats
2 David Shoes
3 Steve Glasses (^) Row inserted
Example 2: Updating
update Employee set DeptID = ‘Shoes’ where name = ‘Steve’
EmpID name DeptID 1 John Hats 2 David Shoes 3 Steve Glasses
Employee
EmpID name DeptID 1 John Hats 2 David Shoes updated row 3 Steve Shoes
General Form: delete from tablename where somecolumn [and | or othercolumn ] OPERATOR value Example 1: delete from account where branch_name = ‘Perryridge’
Intersect Operation
Except Operation
Example: Aggregate Function
Group By Clause
multiple columns from a table (or tables) and at least one arithmetic operator appears in the SELECT statement.
the columns except the one(s) operated on by the arithmetic operator
Example GROUP BY…
HAVING clause
grouped data
it applies to each group constructed by the group by clause.
Null Values
absence of information about the value of an attribute.
predicate to test for a null value
Examples: Null Values
select loan_number from loan where amount is null
select loan_number from loan where amount is not null