Query to select feilds group by column and order by number of counts of feilds. || SELECT type , count (*) FROM vehicles group by type order by count (*) desc || SELECT `userid`, count( *) FROM `library` group by `userid` order by count( *) desc || SELECT `userid`, count( favourite) FROM `library` group by `userid` order by count( favourite) desc ERROR : SELECT list is not in GROUP BY clause and contains nonaggregated column … incompatible with sql_mode=only_full_group_by SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
A Passionate full stack developer with 7 years of amazing experience in full stack application development and expertise in technologies like React Native, NextJS, ReactJS, Codeigniter, PHP , NodeJs. He has huge craze in learning new things about technologies and constantly shares his knowledge with others.