Function View Trigger Procedure
Function View Trigger Procedure
1
Views in SQL
2
SQL Views: An Example
Create a view for Department Managers:
3
View Implementation
4
View Implementation
ORACLE
CREATE MATERIALIZED VIEW or CREATE SNAPSHOT
5
Update Views
6
Stored Procedures in MySQL
9
Example
Step 2:
10
Example
11
Example
12
Example
13
Stored Procedures in MySQL
14
Stored Procedures in MySQL
15
Example using Cursors
16
Example using Cursors
17
Example using Cursors
Call procedure
18
Another Example
19
Another Example
20
Another Example
21
Functions
22
Example of Functions
23
Example of Functions
24
SQL Triggers
25
SQL Triggers: An Example
26
SQL Triggers: An Example
27
SQL Triggers: An Example
28
SQL Triggers: An Example
A trigger to update the total salary of a department when an
employee tuple is modified:
29
SQL Triggers: An Example
30
SQL Triggers: An Example
A trigger to update the total salary of a department when an
employee tuple is deleted:
31
SQL Triggers: An Example
32
SQL Triggers
33