Solution: How to select distinct using a function definition

Background

A user working within a function definition to query the database using the 'SELECT DISTINCT' command.

Question

Is there any way to use a "SELECT DISTINCT" query using the following function definition?

Solution

Yes. See forum thread reference for solution.

External Reference