CSE311 IAH Slide07 SQL+Advanced+Quries
CSE311 IAH Slide07 SQL+Advanced+Quries
Alter
Drop
Update
Delete
Truncate
CASCADE NO The change to the parent is cascaded to all affected child rows
ACTION SET The change to the parent is prohibited
NULL The foreign key column in the child is set to NULL
SET DEFAULT The foreign key column in the child is set to its default value The
RESTRICT change to the parent is prohibited
Tuples are deleted from only one table at a time (unless
CASCADE is specified on a referential integrity
constraint)
A missing WHERE-clause specifies that all tuples in the
The reference to the SALARY attribute on the right of =
refers to the old SALARY value before modification
The reference to the SALARY attribute on the left of =
refers to the new SALARY value after modification
CREATE statement
);
INSERT statement
INSERT INTO shoppers (shoppername, phone) VALUES
('AlanParadise', '800-432-6543')
inexperienced users
Querying:
select * from TopEmployeesOrders
FROM products;