$GV_Count =sql(‘AMP_DEV’,‘SELECT COUNT(*) FROM SOURCE WHERE
INTCODE IS NULL OR
(((to_char(sysdate( ),‘yyyy’)) - to_char(EMP_DOB,‘yyyy’)) <= ‘15’) OR
LOCATION IS NULL’);
Also, the contents of the second part of the SQL function, namely ‘SELECT COUNT(*) FROM SOURCE WHERE…’ will get passed straight to the database. As such, BODI’s functions are not relevant in this. The only BODI function being used here is the SQL one.
The only change from what works in Oracle and what should work in BODI is the “escaping” of the single-quotes.