Grouping in mysql query by custom method

2641 views php

I am trying to grouping the data but i can't get exact result as per attached screenshot.

Click Here to Show image

answered question

Welcome to Stack Overflow! Please do not use images. Please provide a relevant and minimal sample data showcasing your requirements, and expected output. Refer this link on how to frame a good SQL question: Why should I provide an MCVE for what seems to me to be a very simple SQL query?

Is group a column name ? Can you show your existing query?

1 Answer


You need to use order by statement

 select Company,PRLimit,GroupLimit,Group from YourTable order by Group

posted this

Have an answer?


Please login first before posting an answer.