I have a function which returns a table.
ordersum(from_date DATE, limit_date DATE) RETURNS TABLE (antal BIGINT, kundkategori text)
In my SELE