I currently struggle with the output of a sql-function which I require in my result-set:
SELECT getAdditionalInfoAboutDate(date) from sampleCalendar
The problem is, that I get the result in the following way:
- "Attribute1, Attribute2, Attribute3"
- "Attribute2, Attribute3, Attribute4"
- ...
As you can see I get my desired result but it only has one column even though my function returns 3 columns.
When I try to create a statement like:
SELECT (Select * from getAdditionalInfoAboutDate(date)) from sampleCalendar
I get the exception "subquery must return only one column".
Do I have the chance to solve this somehow?
Edit: Found the answer HERE which is:
SELECT getAdditionalInfoAboutDate(date).* from sampleCalendar