skip to main content
OpenAccess SDK SQL Engine Core Functions API : Function Reference : dam_getJoinQuery
 

dam_getJoinQuery

This function is used to get the query's handle for the current Select Query that is being processed. This function is first called to get the handle of the query. Then the damex_getFirstTable and damex_getNextTable functions can be used to access the tables in the Select query. This is required as the user's query can contain many subqueries.
DAM_HQUERY dam_getJoinQuery(DAM_HSTMT hstmt)
Table 128. Parameters for dam_getJoinQuery
Parameter
Type
Description
IN
hstmt
DAM_HSTMT
The statement handle.
RETURN
DAM_HQUERY
Status of the function call:
DAM_SUCCESS - all data retrieved.
DAM_FAILURE - error in getting the data.

See also

*damex_getFirstTable
*damex_getNextTable