Advanced DBMS | 2017 & 2016
End Term Questions Q Differentiate between the following: (2017) (a) Procedures and functions in PL/SQL. Procedures and functions are both subprograms in PL/SQL that can be called by other PL/SQL blocks. However, they have some differences: A procedure is a subprogram that performs a specific action and does not return a value. It is executed using the CALL statement or as part of a larger block. A function is a subprogram that performs a specific action and returns a value. It can be called from other PL/SQL blocks or SQL statements. (b) Current database and temporal database. A current database is a traditional database that stores the current state of data at any given time. It is not designed to track changes over time and does not store historical versions of data. A temporal database is a type of database that stores historical versions of data. It tracks changes to data over time and allows users to query data as it existed at any point in the past. This allows for mor...