Is this possible in a view?

Hi,
I'm wondering if it is possible to do something using a view. It's difficult to even explain what I'm trying to do, but here goes.
I have two tables. The first contains "parent" information about a record and includes keys for one to four children. The second table contains "child" information. I would like to write a view that will return the parent information, and the information for the one to four children associated with the parent, in one record. I know I can accomplish this through multiple SQL statements, but I'm wondering if it can be done in a view. Returning all of the data in a single record would really simplify my program using this information.
Does anyone know if this is possible, and if so, could you please provide a small code sample?
Thanks for your help!

Hi hoek,
We are running Oracle 11g. Here is a script to create two tables (I might be taking this parent-child example a little far) and the results I'd like to see from my view. Sorry for all the dashes in the output, it was the only way I could figure out to make something that resembles a table.
Thanks for the help!
Drop Table PARENT_TBL;
Create Table PARENT_TBL
(PARENT_NUM NUMBER,
FATHER VARCHAR2(10),
MOTHER VARCHAR2(10),
CHILD1 NUMBER,
CHILD2 NUMBER,
CHILD3 NUMBER,
Constraint PARENT_TBL__PK PRIMARY KEY (PARENT_NUM));
Insert Into PARENT_TBL Values (1,'Tom','Sue',1,2,NULL);
Insert Into PARENT_TBL Values (2,'Bill','Jane',3,NULL,NULL);
Insert Into PARENT_TBL Values (3,'Harry','Wendy',4,5,6);
Drop Table CHILD_TBL;
Create Table CHILD_TBL
(CHILD_NUM NUMBER,
NAME VARCHAR2(10),
GENDER VARCHAR2(5),
AGE NUMBER,
Constraint CHILD_TBL__PK PRIMARY KEY (CHILD_NUM));
Insert Into CHILD_TBL Values (1,'Sally','girl',3);
Insert Into CHILD_TBL Values (2,'Roger','boy',6);
Insert Into CHILD_TBL Values (3,'Sam','boy',3);
Insert Into CHILD_TBL Values (4,'Lisa','girl',5);
Insert Into CHILD_TBL Values (5,'Molly','girl',8);
Insert Into CHILD_TBL Values (6,'Bill','boy',11);
Father-Mother-Child1-Gender1-Age1-Child2-Gender2-Age2-Child3-Gender3-Age3
Tom---Sue------Sally---girl--------3------Roger--boy------6
Bill-----Jane-----Sam---boy-------3
Harry--Wendy--Lisa---girl--------5------Molly---girl--------8-----Bill----boy------11

Similar Messages

  • I want to use my Mac desktop as a portal for viewing my cable television via some kind of cord. Is this possible and what do I need to set this up?

    I want to use my Mac desktop as a portal for viewing my cable television via some kind of cord. Is this possible and what do I need to set this up?

    It can be done with analog but not digital thanks to "good 'ol" HDCP copy protection which apple (and most other manufacturers) unfortunately respect.
    So you can take the analog output from your cable box (component -- 5 cables -- if it has it but generally they all have composite -- 3 cables) and feed it into some kind of converter or into some appropriate pci card for your mac pro.  But none of them are going to let you directly use the HDMI output from the box to your computer.
    Bottom line, no single cord is going to work and it will never be the higher quality digital picture you get on your tv.
    Some qualification:  There are boxes that I think support hdmi input.  Look at Blackmagic.  But I still don't think you can get around the HDCP from the cable box (might depend on the kind of cable box). 

  • HT204150 is it possible to retrive a stored contact once its been deleted from your iphone? i deleted a number from my phone like 2-3 months ago and now i need it back. is it possible to retrive this contact or either view my past call log from around the

    is it possible to retrive or download a number/contact after its been deleted from your iphone? i deleted a number about 2-3 months ago and
    now i really need it back. is it possible to retrieve this number or maybe view or bring up my entire or past call log which would have this numer in it?

    If it's not on icloud.com any longer you can't restore it from iCloud.  (Contacts are only synced to your iCloud account, and are not included in the iCloud backup.)

  • Is it possible for double view in iCal?

    It would be great if I could have my week view, and month view side by side. Or one on top of the other. I'm not talking about the month calender in the corner, I mean the full on moth view.
    Is this possible? Thanks

    Fill out and submit this form to send feature requests to the iCal engineers.
    (23405)

  • Is it possible to easily view the actual (not displayed) value of a cell?

    Is it possible to easily view the actual value of a cell calculated by a formula, not the displayed value after it has been rounded off?
    For instance, if you enter the number 1.23456789 and display it rounded to 3 decimal places, you can still see the full, actual value in the formula bar:
    The problem arises when you reference that number in a formula: you can't see the underlying value (even though it's obviously known to Numbers):
    Is there a way to get the formula bar (or a tooltip) to show the full, unrounded value? Changing the display to more decimal places is not very convenient, especially on big spreadsheets. Maybe it could be done via AppleScript?
    A related issue arises when you try to look at the sum or average of a number: if the numbers being summed have the same number of rounded decimals, the sum displayed is rounded too. I find this very annoying: I want to see the actual value, not how my spreadsheet may be displaying it in that cell.
    Although, curiously, rounding to any number of decimals as long as they are not all the same displays the full, correct underlying values:
    Has anyone come up with workarounds for these issues?

    I did it with an AppleScript.
    Now any time I have a cell or cell range selected, I do one click (AppleScript menu > Display Value at Full Precision), and it shows me a popup alert that simply reads:
         rowname : columnname
         value
    Here's the script:
    tell application "Numbers"
              try
                        set selectedTables to (tables of sheets of front document whose selection range is not missing value)
                        repeat with selectedTable in selectedTables -- tables of each sheet
                                  if contents of selectedTable is not {} then -- the list is not empty, it's the selected sheet
                                            set selectedCells to cells of selection range of (get item 1 of selectedTable)
                                            repeat with i in selectedCells -- each selected cell
                                                      set {selectedRow, selectedColumn, selectedVal} to {row, column, value} of i
      --                                                  display alert "value of " & name of selectedRow & " : " & name of selectedColumn & " (" & address of selectedRow & ":" & address of selectedColumn & ")" message selectedVal
      display alert name of selectedRow & " : " & name of selectedColumn message selectedVal
                                            end repeat
                                            return
                                  end if
                        end repeat
              on error eMsg number eNum
      display alert eMsg
              end try
    end tell
    ( Props to Jacques Rioux who posted code to get me started at https://discussions.apple.com/thread/3964938 )

  • I have a an external hard drive formatted for Windows, and I want to move those files to a new hard drive formatted for both Windows and OS. Is this possible?

    I just purchased a MB Air 13", as well as a Seagate Slim Backup Plus. I have an older external hard drive that I was using with a Dell laptop. I would like to get the files off of the older external hard drive, and onto the new Seagate drive. Is this possible? I'd also like to be able to add files going forward to the Seagate from either a PC or a Mac and be able to view/use them on the MB Air 13".
    Thanks in advance.

    You will have to format the Seagate external HDD to a format common to both Mac and PC such as ExFAT.  That should allow you to transfer files from the old HDD and still allow you to use with your MBA.
    Ciao.

  • How Can I put an Artists Live Albums in a separate folder, so they sort by "Concert Date" in iTunes and do not "intermingle" so to speak with Studio Albums?  Is this possible?

    How Can I put an Artists Live Albums in a separate folder, so they sort by "Concert Date" in iTunes and do not "intermingle" so to speak with Studio Albums?  Is this possible?
    That is about the best way I can phrase my question.
    I put year/month/date at the beginning of a show, hoping for them to sort by date and I get mixed results.
    Would creating a Folder within the Artists' existing folder  that said "Pearl Jam Live", inside the "Pearl Jam" folder in iTunes Media help this "Date Sorting Issue"?
    Thank you.

    Or is there a way to go through aperture to make a new reference library that I can move the masters into later?
    you do not move the masters into a references library - you turn your current library into a referenced library.  As Terence Devlin said:
    File -> Relocate Masters
    What you should set up:
    Select a folder, where you want to store your referenced files - probably on an external drive.
    Decide on a hierarchical folder structure inside this folder - that is completely up to you.
    Select a project from your library and use the command "File -> Relocate Masters/Originals" to move the original image files to the folder where you want to go them to. Only take care not to send two projects to the same folder.
    Alternatively, if you do not care about the folder structure Aperture will use, select all images at once from the "Photos" view and let Aperture decide how to assing the folders - in the "Relocate Originals" dialoge you can specify a subfolder format.
    Regards
    Léonie

  • I have some content in my library that I do not want to sync with my ipod touch. The content has previously been synced and I want to remove it without deleting it from my itunes library. Is this possible?

    I have some music content in my itunes library that I do not want to sync with my ipod touch. The content has previously been synced and I want to remove it without deleting it from my itunes library. Is this possible?

    Hi Pez,
    iTunes in the Cloud is not iCloud. Any songs that you have purchased but have not downloaded (or have deleted), go to iTunes in the cloud. The setting I mentioned will show all of your purchases in the various views in the Music app, whether they are on your device or not. If you turn that setting off, you will only see items that are actually on your device.
    Glad to hear the second sync worked! But if they all start appearing again, make sure that setting is turned off
    Cheers,
    GB

  • Is this possible to access arbitrary frame and to modify the mask?..

    Sorry for a bit messy discussion title. Please, let me explain.
    I have some experience in implementing video processing algorithms, but as our own software and never under AE. Now there is an idea to implement something for AE and first of all, I'm curious, if this is possible at all.
    1) When processing the n-th frame, I need the full access to the data of (n-k)-th and (n+k)-th. Is this possible to do in general case? Or the only variant is to implement frames buffering during the first pass?
    2) Our algorithm uses the mask as one of the inputs. But in contrary to the usual case, mask does not define an area of interest. In any case the full frame is processed, but the processing differs for different regions, depending on mask. In our software, it works like this: user defines a mask (and some parameters). Then effect is slightly modifying (let say – refining) the mask during the render and renders final images. After this user can modify the mask somehow again if he/she is not satisfied with what algorithm has done. Can I produce the same workflow in AE? The only way is using a drawbot (this means CS 5.5 and higher)? And what if I want masks to be raster images?
    The second question in the framework of this one is how to do two video inputs for an effect (first – the video to be processed and second – the mask (grayscale sequence in general case))?
    The possible workflow is that user provides trivial mask – lets say, the black solid. But even during the first pass effect should produce the mask, according to its sight to the video – so, it should somehow substitute the black solid with the sequence on black'n'white images. Is this all possible in AE?
    3) Is this possible (should be, I guess) to implement multipass algorithms? How the preview works then, if I need, for example, to pass all the video length 3-4 times, to produce the final render?
    I can expect that all this is solvable in AE, but may be experienced users could be so kind to give me some basic recommendation on how to do this. Looking through the PDF, which accompanies the SDK has not allowed to come to a distinct answer for the question: is this possible or not. So, I rely on your consultation.

    hi Theofil Mulony, welcome to the forum!
    in short, yes, what you want to do is possible, but some parts may be tricky.
    and now the long version:
    1) When processing the n-th frame, I need the full access to the data of (n-k)-th and (n+k)-th. Is this possible to do in general case? Or the only variant is to implement frames buffering during the first pass?
    you can access the pixel data of any layer at times other than the currently processed time. this concept of getting that data is referred to as "layer checkout" in the AE SDK, and "wide time" is the name of getting pixel data at times other than the current.
    the following thread discusses the difference between two methods of getting such data:
    http://forums.adobe.com/message/4033930#4033930
    you can also look at the "checkout" sample project to see how both concepts are implemented.
    2) Our algorithm uses the mask as one of the inputs. But in contrary to the usual case, mask does not define an area of interest. In any case the full frame is processed, but the processing differs for different regions, depending on mask. In our software, it works like this: user defines a mask (and some parameters). Then effect is slightly modifying (let say – refining) the mask during the render and renders final images. After this user can modify the mask somehow again if he/she is not satisfied with what algorithm has done. Can I produce the same workflow in AE?
    masks in AE generate a matte by default. the user can turn that mask off, so that the shape remains, but the mask does not... mask. (you can also set the mask mode to "none" via API commands).
    you can then read the "off" mask attributes and either render using an API command (see "pathmaster" sample to see how), or write your own algorithm if the API constraints on that operation are a problem for you. (and there are a few constraints on rendering masks in the API)
    now. when you say "modifying the mask" do you mean you modify it's generated matte, or do you mean change it's defining vector?
    both are possible, but completely different.
    if you turned the mask off, and rendered it's alpha yourself, then you can modify that alpha as you wish.
    if you want to use AE's generated matte of the mask and change the mask's outline shape, then you need to look into "streams" and the "mask outline suite".
    the user can modify a mask's shape as he/she pleases, unless you lock that mask or otherwise sabotage the user's operation.
    The only way is using a drawbot (this means CS 5.5 and higher)?
    drawbot is the API for drawing over AE's interface in CS5 and up.
    it's only a drawing tool. previous versions used OS drawing tools. that's all the difference.
    what i think you're asking is weather you need to create the mask drawing/handling capabilities or not.
    the answer is: you can, but you don't have to.
    unless you need control over the mask drawing that AE's existing masks don't have, i would have used AE's masks and not create a brand new mechanism (that the user need to learn as well).
    if you insist at creating a custom UI for drawing masks, the "CCU" sample project would be a good place to start the research.
    (just don't come crying to me when you get a splitting head ache)
    And what if I want masks to be raster images?
    The second question in the framework of this one is how to do two video inputs for an effect (first – the video to be processed and second – the mask (grayscale sequence in general case))?
    The possible workflow is that user provides trivial mask – lets say, the black solid. But even during the first pass effect should produce the mask, according to its sight to the video – so, it should somehow substitute the black solid with the sequence on black'n'white images. Is this all possible in AE?
    by default, "effect" plugins (as opposed to AEGPs) get only one input - the image of the layer, post masks and previous effects (but before transformations).
    you can put as many "layer param"s in your effect and let the user select any number of other layers, which you can the "checkout" and use as second inputs.
    you can also checkout other layers without the user selecting them manually.
    however, checked out layer results are pre-masks and effects. so if the user draws a mask over a black solid, you will not be able to read the "post mask" image unless the user pre-composes the layer with the mask inside the pre-comp. it's a common practice for users to do so, as many effects rely on a second input, and that's the only way to make the input pos-masks and effects. (so it's no biggie from the user's point of view)
    in the same manner, you can read any layer's image and use it as a mask.
    you get the image buffer, so it's up to you to decide whether to use the alpha channel of that image or the rgb (or any other method you see fit).
    3) Is this possible (should be, I guess) to implement multipass algorithms? How the preview works then, if I need, for example, to pass all the video length 3-4 times, to produce the final render?
    AE doesn't do multi pass rendering.
    it actually can render arbitrary frames, in no particular order.
    but as you already saw, you can access the image data from any time - of any time, so you can emulate passes.
    if you need to fly through the whole sequence for every frame, that would of course be very time consuming and wasteful.
    in such a case, you can try to do these passes only once, when effect is implemented, and cache the results.
    look up "sequence data", to see how to manage memory specific to a single instance fo you effect.
    but i must say that if you have to do full length scans of the footage, a couple of times over, and cache EVERYTHING, then you're in a bit of a problem in AE.
    it's just not set up for such rendering logic.
    not impossible, but highly inefficient in the AE rendering pipeline.
    there is a lot more to al of the above, but i hope this gave you a clearer picture of how things are in AE.

  • I want to order files (e.g., photos) in a particular order (not necessarily an order that is an option in MacOS. Ie, my own custom order, and I want them STAY in that order until I change the order. Is this possible?

    I want to order files (e.g., photos) in a particular order (not necessarily an order that is an option in MacOS. Ie, my own custom order, and I want them STAY in that order until I change the order. Is this possible?

    Custom sort order is not a typical option in the list view of any desktop computing systems I know of. The way you're seeing it work is also how it works in Windows and other systems.
    There is no "None" sort order. What you're seeing is a "None" option under "Arrange By." Arranging is not the same as sorting; arranging is how the files are grouped in the window. For example, you can arrange (group) files by Kind while sorting by Name. You'll notice that if you are in List view and you choose Arrange By "None," in the window there is still a sort triangle next to the column name that it's sorting by.
    If Arrange is set to None, the files appear in one big group (the traditional view) that is controlled by the Sort order (where there is no None option).
    I didn't even know the difference between Sort and Arrange until I saw your question and did a little research! This Macworld article helped:
    How to arrange and sort files in Lion Finder (also applies to later OSs like Mavericks)
    As for your main question, how to do a custom sort order in the Finder, you can only rearrange files manually in Icon view. As with other operating systems, if you want to create a custom sort order for photos there are other ways:
    Use a photo organizer application like iPhoto or Lightroom. Some let you have custom sort orders in folders, but others only let you have a custom sort inside a different container like an "album" or "collection". Having those additional container types is part of why photos are often best managed in an organizer application and not on the desktop.
    Rename the files. You can use a renaming utility program to rename the photos with numbers that will enforce your sort order when sorted by name on the desktop, like
    01 Photo.jpg
    01 Photo.jpg
    01 Photo.jpg
    or
    Photo 01.jpg
    Photo 02.jpg
    Photo 03.jpg

  • Is it possible to create view link on programatic VOs

    I tried creating a view link between 2 programatic VOs but did not get a clean way to get the where clause.
    It appears that the where clause has to be dependent on the EOs which does not exist in this case.
    On creating the view link,i need the following where clause:
    VO1.col1 = VO2.col1 ( i.e. :Bind_col1 = VO2.col2)
    Is this possible ? The query getting built here is showing up as null bind variable i.e. :Bind_col1 is null
    Please suggest how to get over this issue.

    How/where do you want to accomplish it?
    Within the document? Using Acrobat? Using another application?
    Using Acrobat within the document would be possible using Acrobat JavaScript. You can access the annotation objects of your document, and you then can evaluate the properties of each of these objects. Have a closer look at the Annotation Object section in the Acrobat JavaScript documentation.
    You will look for the contents property, and evaluate its content. When you have found something looking like a URL, you can create a link (using the rect property of the annotation), and you have what you want; you might then think to destroy the annotation, as it may overlay the link.
    Hope this can help.
    Max Wyss.

  • Recording Live DV. Is this possible?

    The church that I work at uses a program called VT4 for live computer based switching. I would like to run a firewire out of that computer(pc) into my Mac so that I can record and save the sermon as a quicktime file. Is this possible to do in Final Cut?
    I have been trying some different things but I cannot seem to get Final Cut to recognize the signal. It always says "[missing]DV Video". I think it keeps looking to control a camera or a deck. Is there any way to set it to just record an incoming stream of DV through firewire?
    Thanks in advance,
    Adam

    What do you normally use to record the DV stream or how is the firewire routed normally?
    Go to the Log and Capture Window ( Command + 8)
    Click on the Capture Settings tap and select DEVICE CONTROL>"Non-Controllable Device"
    Make sure that CAPTURE/INPUT is the correct format for your DV.
    If need be, VIEW>EXTERNAL VIDEO>REFRESH ALL DEVICES
    It is possible the device will not work with FCP.
    Your switcher may not be a bi-directional device and FCP is looking for something it can send a signal OUT as well.
    good luck.
    x

  • Is it possible to Use Views in place of Queries?

    Lets say that 10 broadcasted reports all could use the same query but each in a different navigational state.
    1. Can you navigate the query and save as a view and then set up a brodacast rule for that view?
    2. Can a DataProvider in a web template be a view?
    3. Can the BI Launcher iView take a view name in place of a query?
    <prt_protcl>://<prt_server>/<bi_launcher>?TEMPLATE=TEST1&QUERY=TEST2
    Is it possible to use Views interchangably with a query name in these situations? If not is there a better way to do this?

    You can goahead with view instead of query as data provider
    You can assign your webtemplates to Iview and assign roles to it

  • Streaming app for IOS, Android. Is this Possible ?

    Hi,
    I'm using Flash Media Server, and public a P2P live streaming using RTMFP.
    Ya, then I want writte an application client using adobe Air for Android, iOS (iphone & ipad). I choosed air application because objectivce C (iOS) can't read RTMFP. My air app have features as: view video (live & vod streaming), intergrate social (facebook, google +), connect friend, chatting....
    But I'm newbie with Air Adobe, with some features above, is this possible for Air App of Android and iOS ?
    Sr about my poor English .

    iOS 3 is a better OS than iOS 4 for 3G.
    iOS 4 for 3G is for you to suffer and buy an iPhone 4. iOS was designed for iPhone 4 technically and commercialy.
    There are places on the web with detailed instructions on how to downgrade from iOS 4 to iOS 3.

  • Snooped at work -How is this possible?

    The other day at work I discussed my boss has the capability to monitor what I am doing on the internet on my macbook. It is my computer but I use his internet. He does not know my password and I have my security settings set to NO FILESHARING. How is this possible and how do I make it stop?

    Short answer, as long as your data passes through any device owned/controlled by someone else, that someone else has the potential to view your data.
    Read that statement carefully. It doesn't matter whether the 'device' is a firewall in your office controlled by your boss (or by a network admin), or a router at your ISP controlled by your ISP's network folks, or even the wire run into your building and maintained by your local telco. Whoever controls the device has the potential to view the data running through it.
    Now, of course, telcos and ISPs aren't supposed to snoop on your traffic - at least without a court order (can anyone say 'warrantless wiretaps'?), but the possibility remains.
    One partial solution is to encrypt all your communications (e.g. HTTPS vs. HTTP, SSL vs telnet, etc.) and that may help hide the content of your communication but whoever's watching can still determine where you're going (e.g. they can see you're hitting https://your.favoritepr0n.com/ but not necessarily see the.. umm.. artwork), and that may be enough to get you disciplined.
    So the short answer, either don't do things you shouldn't, or find a better boss.

Maybe you are looking for