By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| name | salary | salary/(select sum(salary) from employees e)*100 |
|---|---|---|
| Steven | 24000.00 | 15.444015 |
| Neena | 17000.00 | 10.939511 |
| Lex | 17000.00 | 10.939511 |
| Alexander | 9000.00 | 5.791506 |
| Bruce | 6000.00 | 3.861004 |
| David | 4800.00 | 3.088803 |
| Valli | 4800.00 | 3.088803 |
| Diana | 4200.00 | 2.702703 |
| Nancy | 12000.00 | 7.722008 |
| Daniel | 9000.00 | 5.791506 |
| John | 8200.00 | 5.276705 |
| Ismael | 7700.00 | 4.954955 |
| Jose Manuel | 7800.00 | 5.019305 |
| Luis | 6900.00 | 4.440154 |
| Den | 11000.00 | 7.078507 |
| Alexander | 3100.00 | 1.994852 |
| Shelli | 2900.00 | 1.866152 |