SQL beginner here. I would like to combine 2 different queries, I think I\'m pretty close to the solution but I\'m missing a piece.
I have a table that looks like thi