SET PAGESIZE 100
SET LINESIZE 200

ALTER SESSION SET CURRENT_SCHEMA = ADMIN;

PROMPT Employee self-service update: change own phone number.

UPDATE dds_employees
SET phone = '555-9999'
WHERE UPPER(email) = ORA_END_USER_CONTEXT.username;

COMMIT;

SELECT employee_id, first_name, last_name, email, phone
FROM dds_employees
WHERE UPPER(email) = ORA_END_USER_CONTEXT.username
ORDER BY employee_id;
