Reputation: 21
This is my initial data pattern
I would to order data in Value column ascendingly but reserve its original groups like this
Upvotes: 0
Views: 48
Reputation: 37473
You can try the below -
SELECT part, "group", value
FROM tablename
ORDER BY "group", value;
Upvotes: 1