Zip a tree like file structure in memory

Hi all guys...
How can I create a tree like file structure in memory (without using the disk at all) and than zip it send it out as an http servlet response?
I think its easier if I break it down to 2 separated problems: file structure in memory and zipping those bytes.
thanks

You can use a ByteArrayOutputStream but it will scale very very badly. What will happen if you get 100 concurrent users all wanting to allocate memory for the Zip file?

Similar Messages

  • How to represent a tree (like file system dirs) in object?

    I am parsing a dynamic set of nodes at runtime. The nodes below a "known" node are all dynamic, in that they can be any number of nodes at any number of depth. I am basically doing what DOM does, in that I want to take these nodes below the "known" node, and create a simple object in memory. I am using xml pull parser though, so I am not using any sort of DOM/SAX/SAX2 parsing and do not want to use anything outside of my own object or one that is in the JDK 1.3 or later API. I see TreeSet and TreeMap, but I don't see much in the way of parent/child(ren) methods. I would think that each node can have a parent node, as well as any number of children.
    Is there an object like this (simple, small bit of code preferrably) that I can download/use, or does someone have a snippet in mind they can post that would be a valid object to represent an xml/dir tree the way I need?
    Thanks.

    I've seen this kind of think implemented very easily. You basically need a TreeNode object, which has a collection of children (which are also TreeNodes).
    You can use a Vector or Hashtable or some such for the children. I would also suggest maintaining a "parent" reference in each child.
    At that point, you simply implement the getters and setters that you want.
    Chances are you will also want to maintain some info about each node. You can be very specific (say providing a name and one or two other attributes), or you could introduce another collection: properties.
    I suggest you implement some kind of toString(), which lets you print out your tree.
    Finally, you may decide that you want to support access by path or relative path. It's useful, but paths are a pain in the butt - trickier code to get right.
    My estimate: A few hours for the basics, and then tweak it as you go.

  • Tree Like structures

    Dear All,
    I am working on some tree like structures querys.
    I am strucked up with one tricky concept.
    My Data is like as given below
    EMPNO MGR
    1
    2 1
    3 1
    4 2
    5 4
    Now my requirement states that I should display the date as given below
    1
    1 2
    1 2 4
    1 2 4 5
    Can anyone help me in designing a query.
    Appreciate your help on this.
    Thanks,
    Madhu K.

    If more levels are there then it should populate under different columns like col5 ..... That's fine, that's how it will work.
    There are only 4 levels above because that's just how the sample data is.
    1 2 3 4You'd think people could give suggestions that get you over the hard bit and then you do some work for anything that's not exactly right.
    SQL> ed
    Wrote file afiedt.buf
      1  WITH DATA AS(
      2   SELECT 1 a,0 b FROM dual UNION
      3   SELECT 2,1 FROM dual UNION
      4   SELECT 3,1 FROM dual UNION
      5   SELECT 4,2 FROM dual UNION
      6   SELECT 5,4 FROM dual UNION
      7   SELECT 6,5 FROM dual
      8  )
      9  SELECT SUBSTR(SYS_CONNECT_BY_PATH (a,' '),2) scbp
    10  FROM DATA
    11  CONNECT BY PRIOR a=b
    12  START WITH a=1
    13* ORDER BY 1
    SQL> /
    SCBP
    1
    1 2
    1 2 4
    1 2 4 5
    1 2 4 5 6
    1 3
    6 rows selected.
    SQL>

  • Tree like structure ??????????? pls help

    Hello
    I want to get the tree like structure
    My requirement is that when I write any jsp and put it in webapps's any
    folder I should get tree like structure of the folders in which I am putting my jsp.
    Foe example I have structure like
    webapps
    --rakesh_folder1
    --rakesh_folder2
    --rakesh_folder3
    ---rakesh_subfolder1
    ---rakesh_subfolder2
    ----(Here goes my jsp which would make to get sructure)
    ----my_other_file_1
    ----my_other_file_2
    When I type http://localhost:8080/rakesh_folder3/rakesh_subfolder2/jspname
    I want output as
    --rakesh_folder3
    ---rakesh_subfolder2
    ----my_other_file_1 (size of file) (time stamp)
    ----my_other_file_2 (size of file) (time stamp)
    How should I proceed ????????????????????
    Tx in advance
    Rakesh

    rakesh,
    see if you have tree structure like this
    C:\
    Vivek
    Rakesh
    then C:\ is the root from where you are starting.
    so just
    <html>
    <body>
    C:\
    &ampnbsp;&ampnbsp;&ampnbsp;Vivek
    &ampnbsp;&ampnbsp;&ampnbsp;Rakesh
    </body>
    </html>

  • Access rights in case of a tree-like structure, with inheritance

    Hello,
    the project I've just started to work on should include an easy way (from the user's point of view) to grant/revoke access rights on a tree-like structure with inheritance.
    Basically we are working for several international companies who want to use our application to watch/manage some of their web projects - each project belongs to one company and consisting of several 'campaigns' in several countries (there can be several campaigns per country, but each campaign belongs to exactly one country).
    From our point of view this is a tree-like structure, with a 'root' node at the top level, 'companies' at the first level, 'countries' at the second level, 'campaigns' at the third level, and modules of our application (for example a module to display overall stats of the campaing, and so on) at the fourth level. There could be (and probably will be) some more levels, but that's not important at this point - it will always be a tree-like structure.
    The customer's reqirements are natural - the administrators should be able to grant/revoke access to 'subtrees' of this structure. For example the top managers should be able to see all the data related to their company, the local managers should be able to see all the data related to their company in the country they work in, etc. On the other hand the relular employees should not see some of the modules (with details about clients of the company).
    I wonder whether this can be solved using JAAS in an elegant and flexible manner - from the documents / whitepapers / tutorials I've seen till now it seems to me it seems to me not too suitable.
    All the data will be stored in relational database (Oracle, and in some cases PostgreSQL), and it would be nice to have the access rights stored in the same way (but it's not required). We have some ideas how to solve that using a single table containing paths in the tree, but at this point it's only an idea (not a single line of code written).
    We are sure somebody has already to solve such a problem - maybe using JAAS, maybe some other technology - and we don't want to reinvent a wheel. Do you have an idea how to solve this (using JAAS or something else)?

    Well, I forgot to explain what the 'inheritance' means ...
    We do not want to set the access right on each node of the tree - we prefer (as well as the users) to set/store only as much information as needed. We'd like the nodes to inherit the access rights from their parent nodes. For example we'd like granting access to particular project to mean granting access to all campaigns in all countries (related to the project), without the need to set and store these rights for each of the campaigns/countries.

  • How do I specify folder and file options for memory cards in LR4?

    Hello!
    I have read the sections Set import and file-handling preferences and Specify Auto Import settings in the manual. But they don't seem to answer my question. The other stuff that's written about importing files in Lightroom seem to only cover the import of photos to the Lightroom catalog, which is not my primary concern, although I do want them imported to the catalog as well. But before the photos can go to the Lightroom catalog they need to be improted, in other words copied over from the memory card to the local disk drive. Simply put, all I want is for Lightroom to take over the responsibility from Canon EOS Utility and behave the same way when importing/copying files to the local disk drive. How do I set up Lightroom to do just that?
    I just want this type of folder and file structure:
    J:\2010_08_02\IMG_0037.JPG
    J:\2010_08_02\IMG_0039.JPG
    J:\2010_08_22\IMG_0372.CR2
    J:\2010_08_22\IMG_0372.JPG
    J:\2010_11_29\IMG_1405.CR2
    J:\2010_11_29\IMG_1405.JPG
    J:\2011_06_17\IMG_2887.CR2
    J:\2011_06_17\IMG_2887.JPG
    ... etc!
    1. First things first, where the heck do I specify the destination folder for new photos?
    There is an option titled Show import dialog when a memory card is detected under the General tab in Preferences, but there is no folder destination option associated with this.
    2. How do I tell Lightroom to leave original file names as they are (i.e. IMG_2887.CR2) and place them in a new sub-folder (i.e. 2011_06_17) of the destination folder (J:\) named after the capture date of the photo (July 17, 2011)?
    There are a few options under the File Handling tab in the Preferences, but they don't seem to concern the importation of files to the local disk drive.
    3. This maybe should have been the first question really; is Lightroom capable of importing files from the camera or a card reader to the local disk drive at all?
    I sure would expect it to be able to do that, but from the looks of it I am not too confident about that.
    For starters I would like it to just copy my photo files, either directly from camera or from a card reader to a destination folder of my choice, in the same fashion that Canon EOS Utility does it. I don't wat to just import the files to the Lightroom catalog and start working with the files directly from camera or memory card. Hell no! It's not an external disk drive for God's sake!
    Please advise!

    I'm not sure how it is now, but there used to be a dedicated "photo downloader" in Adobe Photoshop Elements at least up to version 6. Is this still part of Photoshop Elements? Or is it just available in Adobe Bridge? I don't remember though if it only imported files to the local disk drive or if it also added them to the library/catalog.
    I've tested Downloader Pro and Lightroom 4 now for importing the photos to local disk drive. I also tested one application called Cam2PC Image Downloader.
    The latter is actually called Cam2PC Image Browser and as its name suggests it's a software for browsing and doing basic changes to the photos, an image organizer. But it has a dedicated downlaoder called Cam2PC Image Downloader that can be very useful for importing photos. It comes either as a payed version or a freeware version.
    I also tested one called Smart Photo Import. This one could be a good alternative to Downloader Pro, but I think it still needs many improvements, and it lacks a lot of the functionality of Downloader Pro. But to be fair, this does cost half as much as Downloader Pro (13 EUR or 17 USD compared to 30 USD).
    I am most impressed by Downloader Pro. It has everything I could ask for really. But I was most impressed by its speed. I've done a simple speed test to see which one is faster and here are the results.
    Downloader Pro
    324 files (162 JPG & 162 CR2)
    Max speed: 21,25 MB/s
    Time: 02:58.6
    Lightroom 4
    Set to render "Standard" previews
    324 files (162 JPG & 162 CR2)
    Max speed: N/A
    Time: 03:41.7
    Compared to Downloader Pro: 78% done at 02:58.6
    Rendering time: 04:35.5
    Total: 08:16.12
    Cam2PC Image Downloader
    324 files (162 JPG & 162 CR2)
    Max speed: N/A
    Time: 03:30.6
    The max speed is the maximum transfer speed that ever occured during the transfer, and this is not something that the application is showing on it's own, it's the highest speed that I have seen with my own eyes. Unfortunately the other applications had no way of showing the speed, only Downloader Pro could show the speed. That's why it says N/A (as in not available).
    As you can see Downloader Pro did the same job in shortest amount of time. Note that I could be transfering 2 or 3 cards worth of photos for the time it takes Lightroom to transfer just one.
    The memory card was full when I started the test. It was a 4 GB Sandisk Ultra 30 MB/s card. The card reader was a Lexar USB 3.0 Professional. Although it was connected to a USB 2.0 port on Intel chipset motherboard (Intel X38, ICH9R). The destination folder was set to Desktop\(name of the application) on a Seagate 500 GB SATA (ST3500320AS) disk. All done on a Windows Vista PC with SP2.
    One way to make Lightroom do this job more quickly is to choose "minimum" as previews rendering option. This way it doesn't spend as much time rendering the photos after being copied to the disk drive. Now, I have not tested this but I believe that Lightroom can start a second import of a second memory card whilst the first one is being copied. I'm not sure how it would affect the speed though, and you would need two card readers for this.
    I wish I could skip rendering previews alltogether. I like to leave adding photos to the catalog and rendering previews for the last step. This is because it takes so long time and I like to use 1:1 previews, so I like leaving Lightroom to do this job in the morning or over the night.
    I have learned to use prests now in the import dialog of Lightroom. So now it should not be a problem if I always want to copy new photos to the same location. If this location is changed I can recall it simply by choosing my preset. This is very handy.
    All in all, Lightroom is very good at importing photos from camera or from a memory card reader to the local disk drive. But it's now my preferred way of importing photos to the computer. Which is why I have decided to purchase Downloader Pro. Thanks all for your help. I appreciate it!

  • How to Create Hierarchy From Flat file Structure

    Hi Gurus,
    There is a scenario for me regarding the Hierarchy.
    Required Hierarchy structure - Region>Director>Manager-->Sales id
    I have flat file which gives the info like user id , sales id , manager id, director id.
    But the transaction data Flat file has structure with sales id, region id, sales amt, sales qty.
    Note : Region id is another Master Data.
    How i can create hierarchy from the first flat file which doesnot have region info in that but it is available in the transaction data Flat file.
    Is there anyway we can create hierarchy based on the first Flat file structure which contains more that 1,00,000 records.
    Try to Suggest me in this regard .
    This is urgent.
    Regards,
    Mano

    Hi Mano,
                    Defining the source system from which to load data
    Choose the source system tree File  ® Create.
           2.      Defining the InfoSource for which you want to load data
    Optional: choose InfoSource Tree ® Root (InfoSources) ® Create Application Components.
    Choose InfoSource Tree ® Your Application Component ® Other Functions  ® Create InfoSource 3.x ® Direct Update.
    Choose an InfoObject from the proposal list, and specify a name and a description.
           3.      Assigning the source system to the InfoSource
    Choose InfoSource Tree ® Your Application Component ® Your InfoSource ® Assign Source System. The transfer structure maintenance screen appears.
    The system automatically generates DataSources for the three different data types to which you can load data.
    &#9675;       Attributes
    &#9675;       Texts
    &#9675;       Hierarchies (if the InfoObject has access to hierarchies)
    The system automatically generates the transfer structure, the transfer rules, and the communication structure (for attributes and texts).
           4.      Maintaining the transfer structure / transfer rules
    Select the DataSource for uploading hierarchies.
    IDoc transfer method: The system automatically generates a proposal for the DataSource and the transfer structure. This consists of an entry for the InfoObject for which hierarchies are loaded. With this transfer method, the structure is converted to the structure of the PSA during loading, which affects performance.
    PSA transfer method: The transfer methods and the communication structure are also generated here.
           5.      Maintaining the hierarchy
    Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy
    Hope this helps
    Regards
    Karthik
    Assign points if Helpful

  • How to display grouped tracks tree-like?

    I imported lots of classical CDs and I grouped some works using the 'Grouping' field of the song information dialog. The grouping I added appears in the column 'Grouping' , but however, I'd like to have the groupings displayed in a tree-like structure. I know iTunes can do that, because I have seen it in the music store (on some classical CDs).
    Unfortunately, the help files and FAQs don't tell a lot about grouping.
    How can I enable the tree-like display of groupings in my library?
    FYI: I am using iTunes 6.0.1 on Mac OS X 10.0.3
    Thanks for any help
    Michael

    I'd like to have the groupings displayed in a tree-like structure. I know iTunes can do that, because I have seen it in the music store (on some classical CDs).
    Ohh! That would be Folder Structure then. A useful feature in other circumstances of running tracks together while in Party Shuffle or Shuffling a list. iTMS can obviously do it, but apparently not iTunes.
    Suggest you log a request at http://www.apple.com/feedback/itunes.html
    Grouping seems another way of making a regular or smart playlist, but would not affect how those songs get displayed in viewing the library. The word "grouping" gives the impression of doing somethiing more I think.

  • File structure on JTree

    I need to show the file structure of my clients' computer in a JTree, including the Mapped folders (windows OS). The gui part (JTree) is not the problem. I just don't know how to get the data. I belive that to do that I have to get to the registry of the machine. I was wondering how I can accomplish that.
    Thanks!

    Do you mean like create a file explorer? Someone must have done that previously, so: http://www.google.com/search?q=jtree+directory+tree
    Or by "client's computer" do you mean access some remote computer's files?

  • Importing File Structure into iPhoto

    I need help (or perhaps someone could kindly point me in the right direction) importing the file structure I had set up for my photos. Currently, I have my photos filed in an external drive. The structure I have created is, for example, 2008 folder, then under that 2008 folder I have a folder for each month, then in each month I have an events folder (christmas, tree cutting, etc...). This would look something like this: 2008/12/Christmas Day. Is there a way to import this structure into iPhoto?
    Thanks for the help... (if you've made it this far!)!
    -Ann Marie

    Ann Marie:
    Welcome to the Apple Discussions. You can achieve that by using virtual folders, 2007, 2008, etc. and the have smart albums in each of those folder for the months. The criteria for the January smart album would be "Date is the range 01/01/2007 to 01/31/2007".
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Lightroom 5 isn't seeing my file structure. Please help!

    I just recently upgraded lightroom at the same time that I switched harddrives. Basically, I installed LR 5 on the new harddrive. Then I opened my LR4 catalogue on LR5 and had it do the "update" to the catalogue. Everything seemed to be working properly. However, this is the first time I have imported a memory card and it is really having problems.
    I imported and had the files put into Pictures>Client Sessions>Weddings (and then wrote in the subfolder name). It shows in my finder that that is where the photos are. However, in Lightroom it is like creating a whole new section. For some reason it isn't "linking" to my current file structure. See the 2014 Mclennan-Reeser file. It is under "wedding" on my finder.
    See how it is is like its own separate thing on my Lightroom (even though if you scroll down you will SEE the wedding folder. I have even tried to drag and drop it into "wedding" on LR... but it says it already exists OF COURSE IT DOES!  I then tried to right click on 2014 McLennan and say "show parent folder", but it just creates a NEW "Wedding" folder in LR. Why is this happening??? Any fixes?
    two images below.

    OK, now that we know what the problem is the trick is to get Lightroom to forget about the "LindseyPortugal" path, and to merge everything in that path with the new 2014 folders' "lyndseyportugal" path. To do that we need to employ a bit of a roundabout route:
    1. Backup your catalog, just in case something wrong.
    2. Create a dummy (i.e. new but empty) folder at the root of your SSD drive (i.e. not in the users library), call it something like "Dummy Images".
    3. In the Lightroom Folders Panel right/ctrl-click on "Pictures" and in the resulting context menu select "Update Folder Location". A file browser window will open, use this to navigate to and select the "Dummy Images" folder. Don't be alarmed when "Pictures" disappears from the panel to be replaced by "Dummy Images", and all the sub-folders will have the "?" mark to indicate they're missing. This step is needed to get Lightroom to forget all about the "LyndseyPortugal" path.
    4. Next, right/ctrl-click on "Dummy Images" and again select "Update Folder Location".This time browse to and select the "Pictures" folder (so Lightroom should now register the path as being under "lyndseyportugal"), and if all goes to plan you should now see everything back as it should be, with that 2014 sub-folder showing with the other sub-folders under "lynsdeyportugal/Pictures". One thing to note, there MAY be a "Merge" warning message, i.e. along the lines of "This folder already exists in the catalog, do you want to merge", if so choose "Merge".
    Report back with any issues.

  • Recreating Original AVCHD file Structure

    Hi
    I have a few folders on my mac containing only MTS files
    Is it possible to recreate the original file structure of the Memory Stick (my cam's a Sony) ? That means rather than having only MTS files i'd like to get again the "AVCHD --BDMV--CLIP & STREAM...." structure
    That way i could reimport them easier into imovie rather than convert each file separately with a 3rd party software
    I guess i have to upload them again on my cam ? How should i do this ? Is there another way ?
    Thanks

    I agree with Martin and might add that I was in a similar project late last year with several folks who certainly weren't as computer savvy as myself, and YouTube turned out to be the solution. That way I didn't have to deal with the perennial "I couldn't open it" comments you WILL receive. Everyone was able to view YouTube.
    You might try uploading to Vimeo - I think you can actually upload .MTS files directly to their site, if you want to just post your raw footage. You could just get the files in the Finder directly from the file structure on the HF10, copy them to your Mac and upload from there. (I haven't tried this, but Vimeo's site says they accept .MTS files, which is what the HF10 videos will be, in the "STREAM" subfolder)
    The downside is that their free account maxes out at 500MB of uploads per week. That may be enough for you but I don't know. If you pay, the limit is quite a bit higher.

  • Using Adobe Bridge file structure with iPhoto (latest version)

    I use Adobe Bridge and have all my pics in named folders in Pictures/PICS/Folder Names.  Inside the PICS folder is the iPhoto Library (only a few pics in it).  Is there any way I can use the file structure I have set up with Bridge and iPhoto (latest) simultaneously?  I really dont want to import (copy) all my pics into IPhot because I am pretty sure I will end up with two versions of each.  I havent been able to manage pics manually the way I like to in older versions of iPhoto. 

    Here's some info to help you setup Photoshop for use with iPhoto:
    Using Photoshop or Photoshop Elements as Your Editor of Choice in iPhoto.
    1 - select Photoshop or Photoshop Elememts as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    2 - double click on the thumbnail in iPhoto to open it in Photoshop.  When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done. 
    3 - however, if you get the navigation window
    that indicates that  PS wants to save it as a PS formatted file.  You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements  the Saving File preferences should be configured as shown:
    I also suggest the Maximize PSD File Compatabilty be set to Always.  In PSE’s General preference pane set the Color Picker to Apple as shown:
    Note 1: screenshots are from PSE 10
    Note:  to switch between iPhoto and PS or PSE as the editor of choice Control (right)-click on the thumbnail and select either Edit in iPhoto or Edit in External Editor from the contextual menu. If you use iPhoto to edit more than PSE re-select iPhoto in the iPhoto General preference pane. Then iPhoto will be the default editor and you can use the contextual menu to select PSE for your editor when desired.
    OT

  • How to join 5 different tables using SQL to make it to a flat file structur

    I am trying to load five differnt tables into one flat file structure table without cartesian product.
    I have five different tables Jobplan, Jobtask(JT), Joblabor(JL), Jobmaterial(JM) and Jpsequence(JS) and the target table as has all the five tables as one table.
    The data i have here is something like this.
    jobplan = 1record
    jobtask = 5 records
    joblabor = 2 records
    jobmaterial = 1 record
    jpsequence = 3 records
    The output has to be like this.
    JPNUM     DESCRIPTION     LOCATION     JT_JPNUM     JT_TASK     JL_JPNUM     JL_labor     JM_JPNUM     JM_MATERIAL     JS_JPNUM     JS_SEQUENCE
    1001     Test Jobplan     USA     NULL     NULL     NULL     NULL     NULL     NULL     NULL     NULL
    1001     Test Jobplan     USA     1001     10     NULL     NULL     NULL     NULL     NULL     NULL
    1001     Test Jobplan     USA     1001     20     NULL     NULL     NULL     NULL     NULL     NULL
    1001     Test Jobplan     USA     1001     30     NULL     NULL     NULL     NULL     NULL     NULL
    1001     Test Jobplan     USA     1001     40     NULL     NULL     NULL     NULL     NULL     NULL
    1001     Test Jobplan     USA     1001     50     NULL     NULL     NULL     NULL     NULL     NULL
    1001     Test Jobplan     USA     NULL     NULL     1001     Sam     NULL     NULL     NULL     NULL
    1001     Test Jobplan     USA     NULL     NULL     1001     Mike     NULL     NULL     NULL     NULL
    1001     Test Jobplan     USA     NULL     NULL     NULL     NULL     1001     Hammer     NULL     NULL
    1001     Test Jobplan     USA     NULL     NULL     NULL     NULL     NULL     NULL     1001     1
    1001     Test Jobplan     USA     NULL     NULL     NULL     NULL     NULL     NULL     1001     2
    1001     Test Jobplan     USA     NULL     NULL     NULL     NULL     NULL     NULL     1001     3
    Please help me out with this issue.
    Thanks,
    Siva
    Edited by: 931144 on Apr 30, 2012 11:35 AM

    Hope below helps you
    CREATE TABLE JOBPLAN
    ( JPNUM NUMBER,
      DESCRIPTION VARCHAR2(100)
    INSERT INTO JOBPLAN VALUES(1001,'Test Jobplan');
    CREATE TABLE JOBTASK
    ( LOCATION VARCHAR2(10),
      JT_JPNUM NUMBER,
      JT_TASK  NUMBER
    INSERT INTO JOBTASK VALUES('USA',1001,10);
    INSERT INTO JOBTASK VALUES('USA',1001,20);
    INSERT INTO JOBTASK VALUES('USA',1001,30);
    INSERT INTO JOBTASK VALUES('USA',1001,40);
    INSERT INTO JOBTASK VALUES('USA',1001,50);
    CREATE TABLE JOBLABOR
    ( JL_JPNUM NUMBER,
      JL_LABOR VARCHAR2(10)
    INSERT INTO JOBLABOR VALUES(1001,'Sam');
    INSERT INTO JOBLABOR VALUES(1001,'Mike');
    CREATE TABLE JOBMATERIAL
    ( JM_JPNUM    NUMBER,
      JM_MATERIAL VARCHAR2(10)
    INSERT INTO JOBMATERIAL VALUES(1001,'Hammer');
    CREATE TABLE JOBSEQUENCE
    ( JS_JPNUM    NUMBER,
      JS_SEQUENCE NUMBER
    INSERT INTO JOBSEQUENCE VALUES(1001,1);
    INSERT INTO JOBSEQUENCE VALUES(1001,2);
    INSERT INTO JOBSEQUENCE VALUES(1001,3);
    SELECT   JP.JPNUM        AS JPNUM       ,
             JP.DESCRIPTION  AS DESCRIPTION ,
             NULL            AS LOCATION    ,
             NULL            AS JT_JPNUM    ,
             NULL            AS JT_TASK     ,
             NULL            AS JL_JPNUM    ,
             NULL            AS JL_labor    ,
             NULL            AS JM_JPNUM    ,
             NULL            AS JM_MATERIAL ,
             NULL            AS JS_JPNUM    ,
             NULL            AS JS_SEQUENCE
    FROM JOBPLAN JP
    UNION ALL
    SELECT   JP.JPNUM        AS JPNUM       ,
             JP.DESCRIPTION  AS DESCRIPTION ,
             JT.LOCATION     AS LOCATION    ,
             JT.JT_JPNUM     AS JT_JPNUM    ,
             JT.JT_TASK      AS JT_TASK     ,
             NULL            AS JL_JPNUM    ,
             NULL            AS JL_labor    ,
             NULL            AS JM_JPNUM    ,
             NULL            AS JM_MATERIAL ,
             NULL            AS JS_JPNUM    ,
             NULL            AS JS_SEQUENCE
    FROM JOBPLAN JP, JOBTASK JT
    UNION ALL
    SELECT   JP.JPNUM        AS JPNUM       ,
             JP.DESCRIPTION  AS DESCRIPTION ,
             NULL            AS LOCATION    ,
             NULL            AS JT_JPNUM    ,
             NULL            AS JT_TASK     ,
             JL.JL_JPNUM     AS JL_JPNUM    ,
             JL.JL_labor     AS JL_labor    ,
             NULL            AS JM_JPNUM    ,
             NULL            AS JM_MATERIAL ,
             NULL            AS JS_JPNUM    ,
             NULL            AS JS_SEQUENCE
    FROM JOBPLAN JP, JOBLABOR JL
    UNION ALL
    SELECT   JP.JPNUM        AS JPNUM       ,
             JP.DESCRIPTION  AS DESCRIPTION ,
             NULL            AS LOCATION    ,
             NULL            AS JT_JPNUM    ,
             NULL            AS JT_TASK     ,
             NULL            AS JL_JPNUM    ,
             NULL            AS JL_labor    ,
             JM.JM_JPNUM     AS JM_JPNUM    ,
             JM.JM_MATERIAL  AS JM_MATERIAL ,
             NULL            AS JS_JPNUM    ,
             NULL            AS JS_SEQUENCE
    FROM JOBPLAN JP, JOBMATERIAL JM
    UNION ALL
    SELECT   JP.JPNUM        AS JPNUM       ,
             JP.DESCRIPTION  AS DESCRIPTION ,
             NULL            AS LOCATION    ,
             NULL            AS JT_JPNUM    ,
             NULL            AS JT_TASK     ,
             NULL            AS JL_JPNUM    ,
             NULL            AS JL_labor    ,
             NULL            AS JM_JPNUM    ,
             NULL            AS JM_MATERIAL ,
             JS.JS_JPNUM     AS JS_JPNUM    ,
             JS.JS_SEQUENCE  AS JS_SEQUENCE
    FROM JOBPLAN JP, JOBSEQUENCE JS;
         JPNUM DESCRIPTION     LOCATION      JT_JPNUM    JT_TASK   JL_JPNUM JL_LABOR     JM_JPNUM JM_MATERIA   JS_JPNUM JS_SEQUENCE
          1001 Test Jobplan    NULL       NULL        NULL       NULL       NULL       NULL       NULL    NULL          NULL
          1001 Test Jobplan    USA        1001        10         NULL       NULL       NULL       NULL    NULL          NULL
          1001 Test Jobplan    USA        1001        20         NULL       NULL       NULL       NULL    NULL          NULL
          1001 Test Jobplan    USA        1001        30         NULL       NULL       NULL       NULL    NULL          NULL
          1001 Test Jobplan    USA        1001        40         NULL       NULL       NULL       NULL    NULL          NULL
          1001 Test Jobplan    USA        1001        50         NULL       NULL       NULL       NULL    NULL          NULL
          1001 Test Jobplan    NULL       NULL        NULL       1001       Sam        NULL       NULL    NULL          NULL
          1001 Test Jobplan    NULL       NULL        NULL       1001       Mike       NULL       NULL    NULL          NULL
          1001 Test Jobplan    NULL       NULL        NULL       NULL       NULL       1001       Hammer  NULL          NULL
          1001 Test Jobplan    NULL       NULL        NULL       NULL       NULL       NULL       NULL    1001          1
          1001 Test Jobplan    NULL       NULL        NULL       NULL       NULL       NULL       NULL    1001          2
          1001 Test Jobplan    NULL       NULL        NULL       NULL       NULL       NULL       NULL    1001          3
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Moving a Folder from the iTunes Folder to My Own File Structure

    I'm trying to move a folder from the default iTunes folder to a folder on another drive where I am managing the file structure. This allows me to file music as I would like to on the disk an makes things much easier to find when I need to.
    Recently I've noticed that when I do this I lose some of the song meta data such as the image and rating which is kind of annoying. Is there any way to do this and not lose meta data?

    If the external drive is in NTFS format (which is how most new drives are shipped), the Mac can't write to it. Reformat it with Disk Utility, putting it into Mac OS Extended format.

Maybe you are looking for

  • Re: one or more cartridges appear to be damaged

    my printer is approximately 2 years old and no longer under warranty.  I just replaced two cartridges that were empty, approximately 60.00 worth of ink.  Printer had not been used in about two months as I could not afford to replace the ink.  Now I a

  • Pop-up Blocker with adobe on BT-Yahoo under IE9

    I have installed BT-yahoo software with IE9 on Windows 7. Since the upgrade I am no longer statements or bills from bank or Electricity company when I request them. Their sites suggest adding the site address to pop-up blocker settings. This does not

  • Struggle to reset Skype password - PW reset reques...

    During the configuration of my wife's new notebook (Win 8.1 - MS account created) I ran into an issue. When trying to request a new password for Skype (desktop version) I was forwarded from the Skype webpage (enter email - request reset mail) directl

  • Wsrm Sequence refused error

    Hi All, I am trying to implement reliable messaging at the OSB level. I keep getting this error when I invoked the service after adding RM. Fri Apr 26 10:07:47 EST 2013:DEBUG:<< "<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><en

  • Order Status for settlement

    Hi All, I need to find all the Settled process order of a particular period. There is no system status getting activated for Settlement. Thanks & regards Mahesh