DS : Advance SQL - Scenarios & Solution
DS : Advance SQL - Scenarios & Solution Note: Try to avoid GROUP BY clause to solve the problems For the problems use the Health Insurance Claim dataset. You can get the details as well as the dataset from here . Problem 1: What are the top 5 patients who claimed the highest insurance amounts? Problem 2: What is the average insurance claimed by patients based on the number of children they have? Problem 3: What is the highest and lowest claimed amount by patients in each region? Problem 4: What is the percentage of smokers in each age group? Problem 5: What is the difference between the claimed amount of each patient and the first claimed amount of that patient? Problem 6: For each patient, calculate the difference between their claimed amount and the average claimed amount of patients with the same number of children. Problem 7: Show the patient with the highest BMI in each region and their respective ran...