Entering content frame

This graphic is explained in the accompanying text FUNCTIONS Locate the document in the library structure

Prerequisites

You have the HOTEL Demo Schema for the SQL Tutorial.

Log on to the database instance DEMODB as user MONA.

Create database functions. Proceed as described in the SQL Tutorial, Database Functions.

Examples

You can use the system tableFUNCTIONS to determine the following database information, among other things:

·        All database functions of the HOTEL schema that were created in the last 10 days

SELECT schemaname, functionname
  FROM DOMAIN.FUNCTIONS
    WHERE schemaname = 'HOTEL' AND createdate >= subdate(date,10)

·        Number of parameters for the database function AVGPRICE

SELECT schemaname, functionname, parameter
  FROM DOMAIN.FUNCTIONS
    WHERE functionname = 'AVGPRICE'

Note

Parameters of a database function: see DBPROCPARAMS

 

Leaving content frame