Sorry, but I am novice in postgreSQL so :-)
I have created this function, but it desnt work.
It still tells me:
"ERROR: syntax error at or near "and"na znaku 630"
-- Function: eds_getaccountsdataset(mustbechecked bool, applicatestatus bool, applicatedifferentmaker bool, currentloggedusername...