Entering content frame

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

Prerequisites

You have generated the Structure linkdemo data for the SQL Tutorial.

Log on to the demo database instance DEMODB as user MONA.

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

Examples

You can use the system table FUNCTIONS 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)

     Parameters of 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