Postgresql – How to find salaries of their subordinates
This is my data , employee_id name manager_id salary 1 Alice 100000.00 2 Bob 1 80000.00 3 Charlie 1 75000.00 4 David 2 60000.00 5 Eve 2 50000.00 6 Frank 3 55000.00 Question is The total salary paid under each…