SQL Language (MOSC)

MOSC Banner

Find unique and sorted field value

edited Aug 24, 2016 5:00AM in SQL Language (MOSC) 1 commentAnswered ✓

Hi,

A column named input contains the following values in a table.The column Transformed output  contains unique value of the column named input and in sorted manner.

Sample output is present in column Transformed Output.

Input  Transformed output
G25,G25,G25,G25,G28,G28,G29,G25,G25G25,G28,G29
G26,G26,G26,G26,G28,G25,G28,G29,G26,G25,G26G25,G26,G28,G29

How can be this achieve by a single sql query.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center