Cholmanat Kaewkarn
Cholmanat Kaewkarn

Reputation: 21

How can I create Oracle SQL with specific Order by?

This is my initial data pattern
enter image description here

I would to order data in Value column ascendingly but reserve its original groups like this
enter image description here

Upvotes: 0

Views: 48

Answers (1)

Fahmi
Fahmi

Reputation: 37473

You can try the below -

SELECT part, "group", value
FROM tablename
ORDER BY "group", value;

Upvotes: 1

Related Questions