Tree: Multiple parents and offsprings from one table in just one tree.

Hello,
I have a table similar to this one,
CREATE TABLE "TABLE_ONE"
(     "MATERIAL_ID" NUMBER,
"MATERIAL_NAME" VARCHAR2(80),
     "PARENT_ID1" NUMBER,
     "PARENT_ID2" NUMBER,
     "OFFSPRING_ID1" NUMBER,
     "OFFSPRING_ID2" NUMBER,
     "OFFSPRING_ID3" NUMBER,
     "OFFSPRING_ID4" NUMBER,
     CONSTRAINT "TABLE_ONE_PK" PRIMARY KEY ("MATERIAL_ID") ENABLE
And I need to generate a tree based on the following assumption:
There's a relation of 2 parents to several new other materials depending on the combination.
But the tree should be like:
A & B generate c,d,e,f,h, (but not i), and
C & I generate j,l,m,n, (but not k), and so on....
J & K generate p,q,rm, etc....
How can I create a dynamic tree with two parents and several offsprings from just one table?
With the following tree query I get only the PARENT_ID1 side.
select "MATERIAL_ID" id,
"PARENT_ID1" pid,
"MATERIAL_NAME" name,
'f?p=&APP_ID.:Pxn:&SESSION.::NO::Pxn_MATERIAL_ID:'||"MATERIAL_ID" link,
null a1,
null a2
from "#OWNER#"."TABLE_ONE"
And I need to get all parents and all offspring materials in the same tree.
Could you please give me a clue?
Thanks,
NJ

Hi Raje,
One solution would be to do a UNION ALL:
select "MATERIAL_ID" id,
"PARENT_ID1" pid,
"MATERIAL_NAME" name,
'f?p=&APP_ID.:Pxn:&SESSION.::NO::Pxn_MATERIAL_ID:'||"MATERIAL_ID" link,
null a1,
null a2
from "#OWNER#"."TABLE_ONE"
UNION ALL
select "MATERIAL_ID" id,
"PARENT_ID2" pid,
"MATERIAL_NAME" name,
'f?p=&APP_ID.:Pxn:&SESSION.::NO::Pxn_MATERIAL_ID:'||"MATERIAL_ID" link,
null a1,
null a2
from "#OWNER#"."TABLE_ONE"
This should give you all of the values but it will be a single tree
Regards
Andy

Similar Messages

  • How to create multiple reports and dashboards from one dataset?

    Hi there,
    I've centralized the data to an excel workbook from multiple data sources and added as a dataset to my new Power BI site. How can I build multiple reports and dashboards out of one dataset?

    Hi Kuber,
    In the Datasets section on the Navigation pane (left side of your Dashboards page), you can click "..." next to each dataset. One of the options in the contextual menu is Explore. When you explore a dataset, you can create reports and save
    them.
    You can find more about this and other topics in our Getting Started content:
    https://go.microsoft.com/fwlink/?LinkID=512054
    Thanks,
    M.

  • How can i copy and paste from one spreadsheet to another?

    Trying to shuffle around the rows as part of an everchanging schedule.  When i copy and paste from one spreadsheet to the other, the images overlay each other as if i were litterally cutting them out of paper and then sloppily pasting to another. Is there a way to set them up so crosscutting is more seamless in appearance?

    jrc1971 wrote:
    ...When i copy and paste from one spreadsheet to the other, the images overlay each other as if i were litterally cutting them out of paper and then sloppily pasting to another.
    JRC,
    The reason you get that result is that you are pasting the rows to the canvas of your second document instead of into an existing table.
    Instead, make a large blank table in your receiving document and paste into that table only after clicking on the cell where you want the first cell of the copied data to be positioned.
    Jerry

  • CHECT and ZNME1 from PAYR table into FBL3N

    Hi Everybody,
    I've been asked to add CHECT and ZNME1 from PAYR table into FBL3N ,
    I've checked in the add Special Field options but both are not available there (Only found CHECF but it's not the same as the needed one) .
    Is there an option to add this field into the Special Field Selection. or should I go to make a Z to include this field.
    Thanks in advance for any information you could provide.
    Regards
    Luciano

    Hi Luciano,
    As you can check in T021S, there is only a limited number of fields
    taken from PAYR which are allowed as a special field:
      BANCD Check encashment
      CHECF Check number from
      VBLNR Payment document no.
      VOIDR Void reason code
    You could append structure RFPOS.
    Please check note 984305.
    Regards,
    Fernando Evangelista

  • How do I copy and paste from one page or file to another page or file - on the same screen?

    How do I copy and paste from one page or file to another - on the same screen?

      Open both of your images in the Editor. Click on the image you want to copy and press Ctrtl+A (select all) followed by Ctrl+C (copy) then click the tab for your other image and press Ctrl+V (paste)
    Alternatively click on your background image then simply drag the second image from the photo/project bin and drop it into the main editor workspace on top of the background image. Use the move tool to position and the corner handles of the bounding box to scale.

  • I am trying to drag and drop one page of a .pdf into another .pdf in Acrobat Reader.  I used to be able to drag and drop from one .pdf to another.

    I am trying to drag and drop one page of a .pdf into another .pdf in Acrobat Reader.  I used to be able to drag and drop from one .pdf to another.

    If you could drag and drop pages before, it wasn't in Reader. You no doubt had Adobe Acrobat (Pro or Standard) which shouldn't be confused with Adobe Acrobat Reader. They recently added Acrobat to the name of Adobe Reader so the confusion about which product you had and/or have is understandable.

  • How to generate multiple output pdf's from one oracle reports

    how to generate multiple output pdf's from one oracle reports.
    I have a report where I have to generate more than one output files from the same report based on a parameter.
    Each output file is for each parameter.
    Is this possible in oracle reports, is so how ?

    You can better post your question in the reports forum instead of this pl/sql forum.

  • How do I transfer files and documents from one user account to another?

    How do I transfer documents and files from one user account to another?

    You haven't understood me. Follow these steps:
    1. Log in the user where are the files you want to transfer, and open a Finder window.
    2. In Finder, select Go menu (on the menu bar) > Go to Folder, and type /Users/Shared. Now you're on Shared folder, so leave that window.
    3. Open a new Finder window without closing the old one, go to the folder with the files you want to transfer, and copy them to Shared folder.
    4. After copying the files to Shared folder, go to  > Log Out, and log in the other user.
    5. Repeat the step 2, and you will get access to the transferred files. Now, you can open them directly from this folder, or you can copy them to a folder on your user folder

  • How can I transfer my iTunes library and playlists from one computer to another?

    How can I transfer my iTunes library and playlists from one computer to another?

    Copy the iTunes folder (Mac: Home\Music or PC: My Music) to the same location on the new computer. If an iTunes folder already exists on the new computer (it will on a Mac) replace it with one you copied.

  • Can I sync podcasts and ITunesU. from one computer to another that both have the same acount.

    Can I sync podcasts and ITunesU. from one computer to another that both have the same account.

    No.  Time Machine won't get your boot camp partition back.  There are excellent utilities that move entire hard drive contents among hard drives such as SuperDuper! and CCC, but as far as I know they don't work with boot camp partition.  My suggestion: reinstall Mac OSX on your new Mac (you don't want to hold Option key to start it everytime anyway), partition it with boot camp exactly (or similarly) as you did to your previous Mac (install the same operating system, which should be one of the Microsoft Windows I assume).  Use Migration Assistant as kaz-k suggested to move all the stuff on the Mac partition of your previous Mac.  Reboot both your Macs from the boot camp partition - I assume they are all on Windows platform.  Now you have two computers on Windows platform.  Use Norton Ghost or similar tools to migrate all the stuff from your old machine to your new machine.  Hope this helps.  Backup all your data before such operation.  Good luck.

  • How do i manage multiple users and devices with one apple id without everything showing up on every device?

    how do i manage multiple users and devices with one apple id without everything showing up on every device?

    How to use multiple iPhone, iPad, or iPod devices with one computer

  • Using 2 different icloud accounts, but share match and photos from one account

    My wife and I have an our own Macs and iPhones. I would like to have the photo stream and match from one account shared on both but use backup, contacts, calendar, ect. seperately
    The way I currently have it setup it somewhat works except we both backup to the same account and the Maps program uses my account (which is where the backup and photo stream comes from)
    Does anyone have a suggestion?

    You can create a shared primary account and each add individual secondary iCloud accounts to your devices to sync mail, contacts, calendars, reminders and notes.  However, only the primary account can be used for iCloud Bookmarks, Photo Stream, Documents and Data, iCloud Backup and Find My iDevice.  Also, mail in the secondary account is fetch rather than push.  Perhaps that's your current setup.  If you want to share the same photo stream, that's how you'll have to set things up.
    An alternative of course would be to maintain separate iCloud accounts and manually add photos to a shared stream on your devices and invite each other as subscribers.

  • How can I keep all of my apps and stuff from one ID and move them to another ID without having to buy them all over again?

    Me and my mom share an account and I bought all my apps and stuff on their. so I made my own account so that it would just have my stuff and it would charge to my credit card. So I was wondering how you can sink all the apps and stuff from one ID to another or link the accounts so that I don't have to repurchase everything.

    You can render the ebook on an instructional application called Zankura. Not only can you control the screen scrolling, but all the students can freely annotate with their stylus. www.zankura.com.

  • Moving Events and Projects from one location to another on the same hard drive.

    Hello.
    I've searched in the FCP X User Manual, on this forum and in Google, but have found no explanation of how to do this, so I'm posting this here in hopes that someone in our community will be able to help.
    I've previously stored my FCP X Events and Projects folders on an external 3TB hard drive, because there is more room on it than on the internal 1TB hard drive, but, since then, I've worked with other media apps, for video, photography and audio, the files for which are also stored on the external hard drive, and this has created a bit of clutter with no folder structure to keep it tidy.
    I like an organised file structure on my system, to keep it uncluttered, easy to navigate and efficient to use, so I put all the files for my photography, video and audio apps into their own folders, which are, in turn, stored in their appropriate folders for Audio, Photography and Video, and those three folders are stored in a folder called Media, and then I directed each app to its own files.
    The only app with which this has been a problem is FCP X. While there is a way of relocating projects and events from within FCP X, it allows the user to move them from one hard drive to another, and not, as I want, from one place to another on the same hard drive.
    I'm not sure if it matters, but perhaps it's relevant to mention before the next paragraph that the files that had previously been imported as events are, to save hard-drive space, stored in the events folder as shortcuts to the original files, which are stored elsewhere on the drive, rather than as duplicates of those files.
    In Finder, I copied the Events and Projects folders to their intended new locations and tried in the app to link the events and projects to their new Finder location. It seemed to have worked, until I moved the original folders to the Trash. On re-opening FCP X, it was clear that the linking hadn't worked. I returned the original folders from the Trash to their original location, but that didn't entirely reverse the problem. I noticed also that, in the original and duplicated Events folders, the shortcuts had lost their links to the original files stored elswehere on the drive.
    Fortunately I had run a backup before starting, so I restored the original folders and the app from the backup, and all was back to normal.
    I'd be grateful if anyone could advise me on whether or not it's possible to move FCP X events and projects from one place to another on the same hard drive with the app's compliance.
    Thank you.

    Ludio wrote:
    I'd be grateful if anyone could advise me on whether or not it's possible to move FCP X events and projects from one place to another on the same hard drive with the app's compliance.
    I
    Message was edited by: Russ H Apparently mis-read the questions.

  • Can I move music and movies from one icloud account to another icloud account?

    Can I move music and movies from one icloud account to another of my icloud accounts?

    No.  Purchased music, movies and other iTunes media is permanently tied to the Apple ID used to purchase it and can't be transferred to another ID.  (Your purchases are stored in iTunes in the Cloud under the Apple ID used to purchase them.)

Maybe you are looking for

  • Stripping the docs

    Stripping the docs in order to have a light system seems to me like going on a morning run and expecting to run faster by omitting to take a handkerchief in your back pocket. Sneeze, and you're the loneliest person in the world. Just to say that I ha

  • Burning project in iDVD

    I have created a project in iMovie 09 using still photos, audio from iTunes and fades etc from iMovie. I have published it in Browser and sent it to iDVD I created a them from the Themes list. The map shows the grey panel, the theme and the project.

  • DESCRIBE FIELD statement difference between structure & Itab

    Hai , I am trying to read  field attributes using DESCRIBE FIELD satement & I am getting the field type in SYDES_DESC-types. When I am trying to read the attributes of a structure like the one below, data : begin of STRUCT ,            field1 type c,

  • Is there any quick and dirty way to determine what something will look like

    Hi, Is there any way (rule of thumb) to determine what something will look like when printed. for example. I am doing a composite (hope this is the right word). It will have some people sitting at a table and I want to have another layer with another

  • Formatting Issue - datatables with one to many relationship

    Hi... I am a newbie and I have designed a report in CR2008 and my datasource for the report is an XSD file. There are 2 tables Table A and B. Table A is as follows: AID     Name     Reference     Period          Manager 5       Name 1     Ref 1