What's query or function will help me for this issus please ?

Hi
I attached here jpg which will show you there 3 table A , b And c
And i needed know how i can make Function or any thing else for know which i add into cell question mark
Pls look into this attached and advise me
Take your time
http://imageshack.us/f/853/examplees.jpg/
Edited by: 964035 on Oct 9, 2012 1:09 AM
Edited by: 964035 on Oct 9, 2012 2:26 AM

Below the cods for create the table and insert some data as example
I needed know how i can Booking The item from stock for each order and how i can know the status of item it's will be available or not so we should do the order purchase for item
Create Table Color (                                   
     Order Number(5) Not Null ,                              
     Color Varchar2(8) Not Null ,                              
     Qty Number (8) Not Null )                              
Create Table Recipe (                                   
     Color Varchar2(8) Not Null ,                              
     Item Varchar2(8) Not Null ,                              
     Recipe Number (8) Not Null )                              
Create Table Stock (                                   
     Item Varchar2(8) Not Null Constraint Item_PK PRIMARY KEY,               
     Qty_Of_Stock Number (8) Not Null )               
Insert into Color VALUES ( 1500 ,     Red'     ,10);
Insert into Color VALUES ( 1500 ,     yellow'     ,15);
Insert into Color VALUES ( 1500 ,     Green'     ,8);
Insert into Color VALUES ( 1500 ,     Blue'     ,7);
Insert into Color VALUES ( 1600 ,     yellow'     ,6);
Insert into Color VALUES ( 1600 ,     Green'     ,7);
Insert into Color VALUES ( 1600 ,     Blue'     ,8);
Insert into Color VALUES ( 1700 ,     Red'     ,10);
Insert into Color VALUES ( 1700 ,     Blue'     ,15);
Insert into Color VALUES ( 1800 ,     Green'     ,16);
Insert into Color VALUES ( 1800 ,     yellow'     ,9);
Insert into Recipe VALUES ( 'Red','A',0.25);
Insert into Recipe VALUES ( 'Red','B',0.3);
Insert into Recipe VALUES ( 'Red','C',0.2);
Insert into Recipe VALUES ( 'Red','D',0.25);
Insert into Recipe VALUES ( 'Yellow','C',0.1);
Insert into Recipe VALUES ( 'Yellow','D',0.3);
Insert into Recipe VALUES ( 'Yellow','E',0.2);
Insert into Recipe VALUES ( 'Yellow','F',0.4);
Insert into Recipe VALUES ( 'Green','C',0.25);
Insert into Recipe VALUES ( 'Green','D',0.35);
Insert into Recipe VALUES ( 'Green','E',0.2);
Insert into Recipe VALUES ( 'Green','G','0.1);
Insert into Recipe VALUES ( 'Green','H',0.1);
Insert into Recipe VALUES ( 'Blue','A',0.35);
Insert into Recipe VALUES ( 'Blue','B',0.35);
Insert into Recipe VALUES ( 'Blue','C',0.3);
Insert into Stock VALUES ( 'A',50);               
Insert into Stock VALUES ( 'B',60);               
Insert into Stock VALUES ( 'C',40);               
Insert into Stock VALUES ( 'D',30);               
Insert into Stock VALUES ( 'E',20);               
Insert into Stock VALUES ( 'F',10);               
Insert into Stock VALUES ( 'H',25);               
Insert into Stock VALUES ( 'G',15);               
Take your time my dear ...

Similar Messages

  • Which function will help to get occurence of perticulat text

    Hi all ,
    pls tell me which function will help to get occurrence of perticulat text
    suppose is have text "Discussion" here i Occurred 2 times
    Regards

    Like this..?
    sql>select 'Discussion' txt,length('Discussion') -length(replace('Discussion','i','')) count_of_i
        from dual;
    TXT COUNT_OF_I 
    Discussion  2                                                                                                                                                                                                                                                                                                                                                               

  • Just for my own privacy i would like to set up a password or pin number on my messgae app is there anything out there that will help me do this please comment if there is a possible solution out there

    Just for my own privacy i would like to set up a password or pin number on my messgae app is there anything out there that will help me do this please comment if there is a possible solution out there. I know alot may say what you have to hide but ive got nothing to hide i just want one on there so my privacy is not broken by friends and family if they fancy playing on my phone and having a snoop round my phone.

    If you visit these forums often, you will read about the 2 year old child who accidentally wiped out the parents phone, the kid who set a passcode and didn't remember what it was, etc etc etc
    Passcode your device.   Protect your device.   It really isn't a toy.    The toy is the iPod touch.

  • How do tune sql query? Can somebody help me in this? Atleast prescribe book

    how do tune sql query? Can somebody help me in this? Atleast prescribe a reference book.
    I am not able understand How to analyze tkproof output.

    Check out asktom.oracle.com
    Lot's of threads on interpreting tkprof output - no simple easy solution here.
    You need to understand what is happening and THINK. Then you can be a good engineer.
    As for good books...
    Tom Kyte's books are really, really good.
    http://www.amazon.com/Effective-Oracle-Design-Osborne-ORACLE/dp/0072230657/ref=sr_1_3?ie=UTF8&s=books&qid=1266783471&sr=8-3
    http://www.amazon.com/Expert-Oracle-Database-Architecture-Programming/dp/1590595300/ref=sr_1_1?ie=UTF8&s=books&qid=1266783471&sr=8-1
    Good luck!

  • I have Mac mini and there is partition of boot camp but some miss understanding the osx 10.8.2 is deleted and while I m going to recovery mode the portition can not removing and the also cant repaired what I do I need urgent help ???? Please ?????

    I have Mac mini and there is partition of boot camp but some miss understanding the osx 10.8.2 is deleted and while I m going to recovery mode the portition can not removing and the also cant repaired what I do I need urgent help ???? Please ?????

    Do you have a Time Machine backup or clone?  If not,
    all is lost if you have in fact deleted your OSX partition
    and you will have to do a reinstall from Recovery HD
    and install all else.

  • I have an iphone6. I am unsure whether to go from 8.1.3 operating system and switch to  ICloud Drive or not?  Has anyone done this?  Is it awesome?  I need to be able to access my resume from phone. I think this will help me achieve this.am i right?

    I have an iphone6. I am unsure whether to go from 8.1.3 operating system and switch to  ICloud Drive or not?  Has anyone done this?  Is it awesome?  I need to be able to access my resume from phone. I think this will help me achieve this?  Am i right?  Is there any body out there right now that could help me?  I'm thinking about going from 8.1.3 to I guess yosemite?  Or is that for Mac computers?  I don't understand the language entirely on the help page.   Anyone's straight forward and easy stepped advice would be much appreciated.  I'm so frustrated and I need a job so badly!  Drowning in debt.  Any help appreciated!
    Thanks,
    A

    You're a Windows user, correct? If so, read here:
    http://support.apple.com/kb/DL1455

  • Ever since the last update, My iTunes continues to quit unexpectedly. It will open for one second and then close. Anyone have a solution for this. Please help.

    Ever since the last update, My iTunes continues to quit unexpectedly. It will open for one second and then close. Anyone have a solution for this. Please help.
    I've tried my best to troubleshoot. . . opening in safe mode nothing seems to work.
    In the problem report, this is the error that stood out:
    Crashed Thread:  8  Dispatch queue: com.apple.iad.iadidmanager
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000090

    Hi there navicin79,
    You may find the troubleshooting steps in the articles below helpful. The first thing I would try is reinstalling iTunes as outlined in the first article.
    Troubleshooting iTunes installation on Mac OS X
    http://support.apple.com/kb/ht2311
    OS X Mavericks: If an app freezes or quits unexpectedly
    http://support.apple.com/kb/PH13975
    -Griff W. 

  • I have question about hooking up an external hdd to a time capsule and still have my printer hooked up as well. Anyone got any tips for me, how to do it and what brand of harddrive that will work best for me 1 or 2 TB

    i have question about hooking up an external hdd to a time capsule and still have my printer hooked up as well. Anyone got any tips for me, how to do it and what brand of harddrive that will work best for me 1 or 2 TB

    You just need a powered hub.. if you already use one then fine.
    Plug in just about any external hard disk will work fine. Format has to be readable by the TC.. ie fat32.. or much better HFS+.. plug it into a Mac to prepare the drive.
    Pick whatever size suits.. nowadays 2TB are most economical.
    WD, Seagate have goobled up all the minor players.. so pick one.
    Whatever suits your budget and asthetics.
    NOTE.. The USB on the TC is fine for printers.. IMHO it is the wrong way to go with USB disks.. use the internal disk of the TC.. USB is less than half the native speed plugged into a Mac.. TC to USB is slow.. far slower than internal drive.. or using external drive as external.

  • What kind of power regulator will you recommend for an vintage Mac Pro tower with 2 displays?

    What kind of power regulator will you recommend for an vintage Mac Pro tower with 2 displays?

    Cyberpower 1500VA UPS ~$200

  • Hp pavilion dv6 6180 help me for this error when I am using my recovery disk

    hp pavilion dv6 6180 help me for this error when I am using my recovery disk
    The destination drive is not connected

    Hello Mohammadshamlou.  I understand that you're having some issues using your Recovery Disc.  It is giving you the error that the drive is not connected.  Is this correct?  How long have you had the notebook?
    What issue originally led you to want to try a recovery?
    The error seems to imply that it is not detecting the hard drive as this would be the most logical destination drive.  So, I feel the best thing to try first is verify that the hard drive is in proper working order.  Follow these steps and please post the result. 
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • I have noticed iOS6 slow down browser and email client, I really hope Apple will find solution for this. Junaid

    I have noticed iOS6 slow down browser and email client, I really hope Apple will find solution for this. Junaid

    We need to know more about your system, please download EtreCheck and run the report and please post it on your next reply. Then we can see how your system is configured, what apps are on it and look for anything obvious. We will look forward to seeing your report.

  • Hello, I have been exporting my photos with a watermark. Without changing any settings, half way through my day things changed, and now about 1 out of 7 photos have the watermark after export. Change you helpe me change this back please?

    Hello, I have been exporting my photos with a watermark. Without changing any settings, half way through my day things changed, and now about 1 out of 7 photos have the watermark after export. Change you help me change this back please? Has anyone had this issue before?

        I'm sorry to learn that you have endured the audio issues outlined in your post for almost 2 years SusanLM1! This is certainly not normal! Let's get to the bottom of this issue, first please confirm your phone model; your mention that you have the iPhone 5 but your post is on the iPhone 5S forum. Also, share the iOS version currently installed on your phone. What is your ZIP code? Does this happen mainly while you make/receive calls from a particular location (home, office, etc)?
    AntonioC_VZW Follow us on Twitter at www.twitter.com/VZWSupport

  • Time manageru2019s workplace -No possible entries help available for this time

    Hello Experts,
    I am configuring time manageru2019s workplace.
    I can insert an employee , I can see his detail, planed schedule of time, but I cant change its TIME ID it is showing there like ?03 ( No possible entries help available for this time data ID )
    I have configured Time IDs also accordingly.
    I used definition set SET_BE
    And subsets P,Q,R
    I created time data IDs A- Absence ,B- Avilability ,U-Leave
    Please let me know where I am going wrong.
    Thanks and Regards
    Jaydeep Jadhav

    Hi,<br>
    Recheck all the nodes under TM->TMW. If you have maintained groups , please check them.
    Also request the abaper to debug and find which query is failing.
    Good luck<br><br>
    Thanks,
    Amosha
    <br><br>"Known is a drop & unknown is an OCEAN!"

  • I need help instantly on this program please

    import java.util.*;
    public class D3
              private static int[] z = new int[100000];
    private static int first=z[0];
              private static int last=z[n-1];
              private static int n=100000;
    public static void main(String args[])
    Scanner input=new Scanner(System.in);
    for(int i=0;i<z.length;i++)
              z=2*i;
    int seqSearch(z;50000;n); //method call 4 key where key=mid
              int binSearch(z;first;last;50000);
              int seqSearch(z;35467;n); //method call 4 key where key in the left half
              int binSearch(z;first;last;35467);
              int seqSearch(z;89703;n); //method call 4 key where key in the right half
              int binSearch(z;first;last;89703);
              public int seqSearch(int z[];int key;int n)
         long start = System.currentTimeMillis();
    int count=0;
    int ans=-1;
    for(int i=0;i<n;i++)
    if z[i]=key
    count++
    {ans=i
    break;}
    return ans;
    long elapsed = System.currentTimeMillis() - start;
    System.out.print("Execution Time:" + elapsed);
    System.out.print("# of Basic Operations:" + count);
         public int binSearch(int z[];int first;int last;int key)
         long start = System.currentTimeMillis();
         int count=0;
         if(last<first){
         count++;
         index=-1;
         else
         count++;
         int mid=(first+last)/2
         if(ket=z[mid]{
         index=mid;
         else
         if(key<z[mid]){
         index = binSearch(z[];first;mid-1;key);
         else
         index=binSearch(z[];mid+1;last;key);
         return index;
         long elapsed = System.currentTimeMillis() - start;
         System.out.print("Execution Time:" + elapsed);
         System.out.print("# of Basic Operations:" + count);
    // if anyone could tell me whats wrong with my code i'd be greatful...the program is supposed to perform binary and sequential search on a sorted array of 100000 numbers.once on an item in the middle of the array once on the right side of it and once on the left side...i also need to count the number of basic operations for the same number in both sequential and binary to see whats better.and i need to check the time...plz i need help now,,,

    "Guide to a first-time poster"
    you need to add exclamation marks to signify how urgent it is
    e.g.
    i need help instantly on this program please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    capital letters is better
    I NEED HELP INSTANTLY ON THIS PROGRAM PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    starting the italics on line 1, better again
    import java.util.*;
    public class D3
    private static int[] z = new int[100000];
    private static int first=z[0];
    private static int last=z[n-1];
    private static int n=100000;
    public static void main(String args[])
    Scanner input=new Scanner(System.in);
    for(int i=0;i<z.length;i++)
    z=2*i;
    int seqSearch(z;50000;n); //method call 4 key where key=mid
    int binSearch(z;first;last;50000);
    int seqSearch(z;35467;n); //method call 4 key where key in the left half
    int binSearch(z;first;last;35467);
    int seqSearch(z;89703;n); //method call 4 key where key in the right half
    int binSearch(z;first;last;89703);
    public int seqSearch(int z[];int key;int n)
    long start = System.currentTimeMillis();
    int count=0;
    int ans=-1;
    for(int i=0;i<n;i++)
    if z=key
    count++
    {ans=i
    break;}
    return ans;
    long elapsed = System.currentTimeMillis() - start;
    System.out.print("Execution Time:" + elapsed);
    System.out.print("# of Basic Operations:" + count);
    public int binSearch(int z[];int first;int last;int key)
    long start = System.currentTimeMillis();
    int count=0;
    if(last><first){
    count++;
    index=-1;
    else
    count++;
    int mid=(first+last)/2
    if(ket=z[mid]{
    index=mid;
    else
    if(key><z[mid]){
    index = binSearch(z[];first;mid-1;key);
    else
    index=binSearch(z[];mid+1;last;key);
    return index;
    long elapsed = System.currentTimeMillis() - start;
    System.out.print("Execution Time:" + elapsed);
    System.out.print("# of Basic Operations:" + count);
    and what about the dukes, offer 10 (never to be awarded, of course)
    do this, then sit back and watch the replies roll in.

  • Hi ...Some days ago i bought a used iphone 4s....but i can't activate the phone...when i connect it to itunes it shown that activate the phone but the person was not give me the ID & password....pls help me for this issue....Iphone is my favourite ph

    Hi ...Some days ago i bought a used iphone 4s....but i can't activate the phone...when i connect it to itunes it shown that activate the phone but the person was not give me the ID & password....pls help me for this issue....Iphone is my favourite phone...in my child hood i love Apple products & till now......I can't activate it & for this reason i can't find the carrier network & can't make any call....pls help me...thanks for always support..My device ios is 7.1.2
    & IMEI is : *****
    Br-----------------------
    Fazlur
    <Personal Information Edited By Host>

    It's a security risk to post your IMEI number and I've asked the Hosts to remove it.
    If a second-hand iOS device has been 'Activation locked' then only the previous owner can unlock it, either by providing you with the account ID and password, or by removing it from his list of devices (as he should have done before selling it) - please see http://support.apple.com/kb/ts4515
    If you are unable to contact him to do this then I'm afraid you will not be able to use the device - there is no other way of unlocking it at all. Apple cannot unlock it for you.
    You should if possible return it to wherever you bought it and ask for a refund as in this event the device is completely useless.

Maybe you are looking for

  • Is there a plug-in similiar to Nucleo for AFX?

    I have Nucleo for After Effects and I love it (for those not in the know, it's a render manager that uses 100% of all the processors at once instead of 50-75% during rendering. It cuts my render times in half). So does anyone make something similar f

  • Startup application doesn't start on cRIO (work fine on the target with LV RT)

    Hello! I have a application (running on a cRIO-9075) that is communicating with a GPS via RS-323 (using NI-9870). I can run the code without problems with LabVIEW RT on the target but when I build the executable and setting it up to run at startup it

  • Imac (intel) 2008 24" screen.

    Hi there, I bought my imac (intel) in 2008 along with an Applecare plan which I forgot to register (a complete waste! silly me). Can I register it now? The box is still un-opened? Any suggestions?thanks!

  • Adding a Quicktime Media Player to a page that can play from a list of links

    I'm on a Mac G4 window front tower running OS X 10.4.11. I am using Adobe GoLive 7.2. and Quicktime player 7.6. The project I am involved in entails linking a group of Quicktime movies to a Quicktime media player on the same page. I can handle the li

  • How to see the contents of jar file?

    Hi is there any way we can see the contents of jar file.(Since it is similar to zip file can we unzip it and see the contents)