Returning a table from a function, that requires multiple selects?

From: stan <stanb(at)panix(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Returning a table from a function, that requires multiple selects?
Date: 2019-08-30 20:03:15
Message-ID: 20190830200315.GA28175@panix.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I need to encapsulate, what are basically 2 related function calls into a single
function. The result of each of th calls is a date type.

y current thinking is to return a 2 row table with the 2 dates in it. But, I seem to
be having issues getting this to work.

Is it possible for a function to return a table with results from multiple
queries?

--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2019-08-30 20:09:10 Re: Returning a table from a function, that requires multiple selects?
Previous Message Rich Shepard 2019-08-30 17:41:26 Re: Aggregate functions on groups [RESOLVED]