How to conditional SQL select – Postgresql
My table consists of user_id, revenue, publish_month columns. Right now I use group_by user_id and sum(revenue) to get revenue for all individual users. Is there a single SQL query I can use to query for user revenue across a time…