I am trying to select the output of a Function into a Table ( Informix Server 11.1, Database Cisco UCCX). The function is executing fine but when I select its results into a Table, I get an error.
1. Simple Execution of routine is okay i.e.
Execute function sp_details_agent('2022-08-16 21:00:00','2022-08-17 20:59:59')
// above execution gives 03 column output : node_id | resourcename | callshandled
2. Following Query fails:
select node_id C1 , resourcename C2 , callshandled C3 FROM TABLE(function sp_details_agent('2022-08-16 21:00:00','2022-08-17 20:59:59') );
Error is: SQL Error (-217): Column (node_id) not found in any table in the query (or SLV is undefined).
Please advise what I am missing.