Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Returning tables and sets
Summary

Instruction

Another way to call a function is like so:

SELECT *
FROM get_events('2017-01-01', '2017-12-31');

This statement returns the table that we defined in the function's body.

Exercise

Show all active users (show user_id, user_name) and the number of posts each of them created.

Stuck? Here's a hint!

Treat the function as a table. You'll have to join the result of the function get_active_users() with the post table.