sql - Connect By hierarchical query oracle -


I have the following output from a query: I want to get a column with 3 columns in all columns with all the specific values . I am not able to determine whether it can be obtained by connecting or some other function.

  Dad baby baby ---------- ----- D006 M026 LA019 D006 M026 NP082 D005 M048 NG073  

Expected production :

  D006 D005 M026 M048 LA019 NP082 NG073  

A union with a CTE is simple, but if you can '11g you unpivot the columns at: from (from the selection of the specific person - (it's your real big query) Select 'D006' father, 'M026' is in the form of mother, 'LA019' Select all as a child from Dual Union 'D006', 'M026', 'NP082 p A '(uninterrupted as a father) (Select one from' D005 ',' M048 ',' NG073 'Dual Union for anyone,' 'MOM' 'as a mother, child AS' child '))); Individual ------ D006 NP082 M026 LA019 M048 D005 NG073 7 Row Not Selected

Unpivot operation says that a new column indicates that the original columns have come from the value, because you It is apparently not interested in it that it can be removed, but it needs to be done in the external query.

Showing internal queries with extra columns added by unreserved, and removing the same thing to get rid of it and remove duplicates in the external query.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -