Hi, can anybody tell me, how to write function in plpgsql, which generates html table and is called like this:
SELECT funktionName( 'Select name, salary*1.2 from employees where salary IN ( SELECT MIN(SALARY) from employees where salary>'||salary||') ' ) from employees where ssn=111;
Thanks for help.