Postgresql – SQL group three columns from three tables into one column
I have three tables x, y, z that have similar columns like this and the other columns are different: table x: id user_id month year total_price 1 1 January 2023 100.00 2 1 February 2023 200.00 table y: id user_id…