Snatch any course you want for just $15! Go to “Courses” and find a course ↓
Returning tables and sets


Hi again! In this part there's no Introduction section – we'll continue our journey from the previous part.

Using functions, you can also return tables; you are not limited to returning just a single value or parameters.

Let's first see an example:

SELECT * FROM get_active_users();


Run the template query. Observe that the function returns multiple rows.