SQL Language (MOSC)

MOSC Banner

display the same name once

edited May 17, 2012 10:31PM in SQL Language (MOSC) 3 commentsAnswered ✓
Hi,

A single select statement (select distinct employee_id, dept,sal from employee_dept where current_record=1 order by employee_id) returns this output:

EMPLOYEE_ID | DEPT | SAL
-----------------------------
                      1   x     100
                      1   y     200
                      1   z     500
                      2   x     200
                      2   z     500


Is there a way that we get the output like this:

EMPLOYEE_ID | DEPT | SAL
-----------------------------
                      1   x     100
                           y     200
                           z     500
                      2   x     200
                           z     500

Thank you,

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