Reference Table Queries

Reference Table Queries provide a way to augment the streaming data in an SAP Sybase Event Stream Processor project with information from a HANA table.

This CCL element enables you to establish a reference to a HANA table in an ESP project . This reference can then be used in a join along with streams and windows. When an event arrives via a stream or window, the reference executes a query on the HANA table and uses the returned data in the join to enrich streaming data with information from the database.

To create a reference you need the following information:
You also have the option of specifying the following:

Use the CREATE REFERENCE statement to define the reference, and then use the FROM and ON clauses to join data from the reference with streams and windows in an ESP project.

Also, in SPLASH, you can use an iterator over a reference from a local DECLARE block and in the FLEX operator in the same way you use an iterator over a window. You may also iterate over a reference using the key search (if a primary key is defined), record matching search, and for loop functionality.