I wrote a sql query which is as below
SELECT ryot_code, ryot_name, variety_group, SUM(total_area)
FROM field_survey_trn
WHERE unit_code = '01'
AND season_cntrl = 20
AND crop_type_code NOT IN (11,12)
AND ryot_code != 0
GROUP BY ryot_code, ryot_name, variety_group;
output
In variety_group column I am getting different variety code for same ryot_code in different lines.
My question is, how can I write a query, using which I can get all type or ** variety_code** for a same grower in a single row like below image

