Scalar functions available with DB2 Multisystem
For DB2® Multisystem, scalar functions are available when you work with distributed files.
These functions help you determine how to distribute the data in your files as well as determine where the data is after the file has been distributed. When working with distributed files, database administrators might find these functions to be helpful debugging tools.
These scalar functions are PARTITION, HASH, NODENAME, and NODENUMBER. You can use these functions through SQL or the Open Query File (OPNQRYF) command.
- PARTITION with DB2 Multisystem
Through the PARTITION function, you can determine the partition number where a specific row of the distributed relational database is stored.
- HASH with DB2 Multisystem
The HASH function returns the partition number by applying the hash function to the specified expressions.
- NODENAME with DB2 Multisystem
Through the NODENAME function, you can determine the name of the relational database (RDB) where a specific row of the distributed relational database is stored.
- NODENUMBER with DB2 Multisystem
Through the NODENUMBER function, you can determine the node number where a specific row of the distributed relational database is stored.
- Special registers with DB2 Multisystem
For DB2 Multisystem, all instances of special registers are resolved on the coordinator node before sending the query to the remote nodes. (A coordinator node is the system on which the query was initiated.) This way, all nodes run the query with consistent special register values.
Parent topic:
DB2 Multisystem
Related reference
SQL reference
Control language