Page 107 - IPP-12-2024
P. 107

(vii)   Select department, sum(charges), max(charges) from hospital
               group by department;

                 department                     sum(charges)                    max(charges)



                 Surgery                        600                             300

                  Orthopedic                    400                             200

                 ENT                            550                             300

                 Cardiology                     1600                            800


                 Gynecology                     300                             300

                 Medicine                       400                             400



               Program 24: SQL queries based on the following two tables—Activity,
               Coach:
































               (a)     Display the names of all the activities with their Codes in descending order.
   102   103   104   105   106   107   108   109   110   111   112