Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Compute portfolio variance given weights and covariance matrix.
DECLARE
weights SYS.ODCINUMBERLIST := SYS.ODCINUMBERLIST(0.6,0.4);
cov_matrix SYS.ODCINUMBERLIST := SYS.ODCINUMBERLIST(0.0004,0.0002,0.0002,0.0003);
portfolioVariance NUMBER;
BEGIN
portfolioVariance := weights(1)*weights(1)*0.0004 + weights(1)*weights(2)*0.0002
+ weights(2)*weights(1)*0.0002 + weights(2)*weights(2)*0.0003;
DBMS_OUTPUT.PUT_LINE('Portfolio Variance: ' || portfolioVariance);
END;Oracle Forms is a software product for creating screens that interact with an Oracle database. PL/SQL is Oracle's procedural extension to SQL, allowing developers to write business logic, triggers, and stored procedures inside the database. Together, they provide a robust environment for developing enterprise applications.
Origin & Creator
Oracle Corporation developed Oracle Forms in the late 1980s as a rapid application development tool for Oracle databases. PL/SQL was introduced in 1991 to extend SQL with procedural programming.
Industrial Note
Oracle Forms + PL/SQL is niche to Oracle database environments, mainly used in legacy enterprise applications, internal ERP, and large-scale administrative systems.