In: Computer Science
How to write a query in SQL using the Group by function to decide if the results of the diet worked. There are 6 columns ID, Gender, treatment, start_weight_kg, end_weight_kg, and correct change (end weight minus start weight).
With the information given write a SQL to determine if the the results(correct change) worked.
Question is not incomplete.
SQL Query :
select * from Diet GROUP BY Gender,Id,Treatment,start_weight_kg,end_weight_kg,correct_changes;
Note: I had taken sample recods into my sql database using above columns and below is the output screenshots