Part one: Index, Users, Viwes and Triggers(18 MARK)
Q1 | Create index for the city in the LOCATIONS table,
| 3 marks
ete
Q | Create user “BOB” with password “B123” and give him the UPDATE |
privilege on departments table. \3 marks
| |
@ | Create a role named ”managers” , give the role the privilege of creating view, | |
then give the role to the user “BOB” | 3 martes |
|
24 | Create a sequence named SEQ DEPT that has initial value of 600, every step
is has value of 10, and then use it to insert new department “Applied Science”. | 3 marks |
2 Create a trigger for tracking the changes in the city of the department in
Locations table, this require creating log table as CITY_LOG (LOC_ID, janis
CDATE,OLD_CITY, NEW_CITY).
5 | create a view named emp_vw_stat which contains department name and
maximum and average of salaries for each department. es
Note: Round average salary to two decimal places and use suitable columnPart Two: APEX (12 marks)
on that consists of a Master_Detailed page for the
Employees and Departments tables,
|
Your application a LOV to display the CITY instead of location_id
m in the dey
ents form,
reate Dynamic Action that HIDE the manager_id when the
A display item that displays the Maximum salary in department that its |
ID is viewed in the pa |
departme:
Q4 | Cre
hame=" Marketi
Good wek
fng.Ruba Sultan
3 marks |
|
|
3 marks |
3 marks
3 marks