Return query result from postgresql conditionally
|Added at||2016-11-28 23:11|
I am trying to write function that should return records based on my input parameter. Structure will differ based on input. Here is something similar I am trying to achieve:
I want my users to just call my function like this:
Not sure what is simple and clean way to achieve this.