Subquery multiple columns with Different operand

Hi ,
i have 2 tables as below ,
table 1 ,
date            number    value
20-10-13      1234       500
21-10-13      1235       800
19-10-13     1234       600
19-10-13     1234       700
20-10-13      1235       500
10-10-11      1235       600
20-10-13      1236       500
19-10-12      1236       700
table 2 ,
date            number
20-10-13      1234
20-10-13      1236
how to get the values from the table one when only the number=number in table 2 and start date >= date in table 2 ,
result should be ,
date            number    value
20-10-13      1234       500
21-10-13      1235       800
20-10-13      1235       500
20-10-13      1236       500

where table1.number=table2.number
   and table1.date >= table2.date
You might want to read up:
http://docs.oracle.com/cd/E11882_01/server.112/e41084/statements_10002.htm#sthref6662

Similar Messages

  • JTable - Setting multiple columns with different color

    Building excel type functionality in Java.
    I have a database table like this
    id PK
    min_x
    max_x
    min_y
    max_y
    color
    1. I need to create a JTable having 50 colums and 50 rows.
    2. I need to select mouse selection color.
    3. On mouse selection I have to change the Background-color or foreground-color of JTable cells and on click of save button I need to get the data in following manner column start of particular color as min_x, column end of particular color as max_x, row start of particular color as min_y, row end of particular color as max_y, and bg or foreground color.
    can some one tell me is there a way to do this. Or any other way to implement this functionality.

    Crossposted:
    http://forum.java.sun.com/thread.jsp?thread=541598&forum=422&message=2625937
    http://forum.java.sun.com/thread.jsp?thread=541597&forum=57&message=2625933
    http://forum.java.sun.com/thread.jsp?thread=541595&forum=31&message=2625929
    http://forum.java.sun.com/thread.jsp?thread=541594&forum=54&message=2625922

  • BO xi 3.1 u2013 schedule a template for multiple reports with different column

    Hi,
    I need to migrate the existing reports from SQL Server Reporting Services to BO, and the column order in the report is very important to the clients since clients have existing code to ingest these reports into their database. Now I want to schedule a single template with different parameters for all reports in BO, or create a single template with lot of parameters for all reports. My question is how I might use one template to create multiple reports with different column orders in the reports?
    For example, client A has the following column order in their report: firstName, LastName, DateBirth, SSN. Client B has the following column order in their report: SSN, DateBirth, LastName, FirstName. Can I use one template to create these multiple reports?
    Thanks!

    Hi,
    The only approach I can think of is to create a template report which uses variables
    For each column you would need to variable
    v_columnAName and v_columnAValue
    v_columnAName would have a if statement in it
    =if([client]="clientA" or [client]="clientC";NameOf([firstName]);if([client]="clientB";NameOf([SSN]);NameOf([lastName]));
    v_columnA would have a if statement in it
    =if([client]="clientA" or [client]="clientC";[firstName];if([client]="clientB";[SSN],[lastName]));
    This would only work when you had a small set of clients.
    This might be more managable if it was done in the universe
    Regards
    Alan

  • Design a single template for multiple reports with different column order

    Hi,
    I need to migrate the existing reports from SQL Server Reporting Services to Crystal Report 2008, and the column order in the report is very important to the clients since clients have existing code to ingest these reports into their database. Now I want to create a single template with lot of parameters for all reports. My question is how I might use one template to create multiple reports with different column orders in the reports?
    For example, client A has the following column order in their report: firstName, LastName, DateBirth, SSN. Client B has the following column order in their report: SSN, DateBirth, LastName, FirstName. Can I use one template to create these multiple reports?
    Thanks in advance.

    -As I mentioned you can find Template Field object in Insert menu of crystal report Designer 2008.
    As soon as you select Template Field object you will be able to see a box beside ur mouse cursor. Drag and drop this box at required place. Now when you place this object in report you will get some thing like this "<TemplateField1>" listed under Formula Fields tree. Double click "<TemplateField1>" formula to add your conditions.
    -I have not tested it for large amount of Customers. However as the number of customer increases the number of conditions will get increased.
    For the customer that want the same ordering of columns you can put those customers under one condition.
        for Example...
              if(?Client in ['clientA','clientA']) then
                        <TableName>.<Field>......
    -What do you mean be 40 columns? Do you mean 40 fields or you want to show 40 columns in report? Please elaborate.
    Regards,
    Amrita
    Edited by: Amrita Singh on May 21, 2009 7:54 AM

  • How to use a USER_DATASTORE to index multiple columns in different tables

    I would appreciate if somebody can give an example or point to links with examples on how to use USER_DATASTORE on multiple columns in different tables. THe Oracle Text documentation only shows multiple columns in the same table.
    Thanks in advance.

    I am not sure why your getting the wrong results but you should seriously reconsider the approach your are taking. Using functions like this is very ineffecient and should be avoided at all cost.

  • Radar chart with multiple KPIs with different scales in dashboard4.0

    Hi Experts,
    How to create a radar chart which is having multiple KPIs with different scales. ?
    Thanks in Advance
    Saidulu

    Hi Sai,
    Customizing the chart is not possible, example the data in you criteria is like the below.
    Take four row based chart to display the row based values, if the columns are having different values. Take column based chart if the difference in row based, hope you got it.
    Use the label in combo box and use the dynamic visiblity to call the chart from the back.
    Hope you got the idea.
    --SumanT

  • Single invoice for multiple orders with different divisions

    Dear All,
    while I am trying to do single invoice for muliple orders with different divisons invoice is gettting splitted..In copy control vbrk routine I  tried with 003 and 007 etc..but result is same..what configuration need to be done for getting the single invoice
    Thanks In advance
    Regards
    CNRNAIR

    Hello
    single invoice for multiple orders with "different divisions" invoice is getting split
    FYI - Different Division means different Sales Area.
    So, sales doc (whether sales order, Delivery & Billing) is applicable to EXACTLY one sales area.
    Thus, combining docs with different sales area is practically impossible.
    Provided, you are using common division.
    Hope this assist you,
    Thanks & REgards
    JP

  • How can I edit multiple clips with different frame rates on the same timeline

    how can I edit multiple clips with different frame rates on the same timeline

    You do not want to edit material from different frame rates on one timeline. You CAN do this, but it is a very bad idea - and this is why.
    Once you establish the sequence frame rate - lets say it is PAL material at 25fps, any material that you drop into the sequence other than 25 fps will have to be changed to play at 25 fps. If the material you add is NTSC (29.97), FCP will DROP 5 frames per sec to bring the frame rate down to 25 fps. Which 5 get thrown away? Every 6th one. This yields a funky cadence that becomes even more complex as as there are also interlaced fields (DV/NTSC is an interlaced format). Oh, and by the way, the image sizes are different as well. DV/PAL has 576 lines of resolution and DV/NTSC has 480. FCP has to scale up the NTSC to fit the PAL frame.
    You do not want FCP adjusting these things on the fly. You want to do a thoughtful (and time consuming) conversion so that you end up with all your material in one format with the best possible image from the conversion process. Compressor can do an adequate job with Frame Controls turned on. The Natress Standards Conversion FCP plugin is another way to go. A third option is to find a post house that can do the conversion for you using a hardware based process.
    The good news is, once everything is in the same format, editing it will be painless and the output process very quick.
    Whatever frame rate/ image size you select, I'd suggest using ProRes for the codec. It is 4:2:2 color and will withstand color correction and composting with much more grace than any variant of DV based codecs.
    Have fun.
    x

  • One Key FIgure in more than one column with different restrictions

    Hi,
      I am using a key figure in more than one column with different restrictions, but restriction in one column is affecting the result in other column. What shall i do to make it independent from one another??

    Hi Pravender Chauhan,
        If you want in Single column different value for different Rows based on same Key Figure, you can create Structure where you can define different logic for each row but using same key figure.
    If you want to use different Key figures then you should have to Restricted Key Figure and for any calculation you can use calculated Key figure.
    Assign points if Useful.
    Regards,
    Rajdeep.

  • Can I Turn off iMessage in a group text with multiple people with different devices? There's 1 person in the group text that doesn't use iPhone anymore and they can't see any messages that are sent unless we send as regular text individually.

    Is there a way to turn off iMessage for a group text that includes multiple people with different non-apple devices? When a message is sent, only the iPhone users can see the iMessage. Those without them cannot see the texts unless we send individual Text Messages or turn off iMessage completely.

    now I have this and it still doesn't work.
    Section "ServerLayout"
    Identifier "Simple Layout"
    Screen "Screen 1" 0 0
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Touchpad" "SendCoreEvents"
    InputDevice "Keyboard1" "CoreKeyboard"
    Option "OffTime" "1"
    EndSection
    Section "ServerFlags"
    Option "AutoAddDevices" "False"
    Option "DontZap" "false"
    EndSection

  • Multiple Orders with Different reasons on a Single day

    Hi,
    I am recently learning Device Management of IS-U Electricity. Now I have a problem with meter reading orders generated at the time of periodic meter reading with reason 01 and different system generated orders with reasons like 22, 21 , 16 and 11 which are the orders get created internally based on device replacement and modification.
    If the scheduled meter reading date lies on the day or the day before of device replacement or modification, the meter reading for the periodic order is getting prorated based on the meter reading entered at the time of replacement or modification. This is what I dont want.
    Is it possible to have multiple orders with different reasons on the same date? Any configuration changes are welcome.
    - Arghya

    Hi,
    You can acheive this using following config changes.
    SAP Utilities --> Device Managment -->Meter Reading --> Meter Reading Order -->Order Creation --> Define Automatic Interpolation for Meter Reading Reason.
    Uncheck  the 'Auto Interpolation' flag for Meter Reading reason 01.
    This will not use the Replacement or Modifiaction read.
    Let me know if anything more is reuiqred.
    Thanks and Regards,
    Ranjit Thakur.

  • Define Multiple Taxes with different Accounts

    Dear Members
    I have defined tax in Oracle R12 . and defined multiple rates. these all tax deducted in a single Tax account. but my requirement is, there should be multiple taxes with different acccounts. when I define multiple taxes the system gives error unable to Calculate the tax. when I only enable one tax it works.
    Current sanario tax rates
    2% Account # 666461
    3% Account # 666461
    3.5% Account # 666461
    Required Sanario
    2% Account # 666461
    3% Account # 666462
    3.5% Account # 666463
    Should be different
    Do you have any Idea How I configure it.

    Hmmm, thought I did that but ran into issues...Will give it a harder look.
    Thank you for your reply, tt2...BTW, I've been reading these forums for awhile now and your replies in other posts have helped me so thanks for all of them, too...

  • How can I setup an .indd with two columns with different threads so that I can export to epub?

    Hi all. Sorry, english is not my native language. I´ve made an .indd: each page has two columns with different threads (is a bilingual text). When I export this .indd to .epub only appears one column from a thread following the next thread. What can i do to fix this? My indesign is CS6
    Thank you

    There are fixed format EPUB files as can be used for children's books, etc. where there are a lot of illustrations. However, those are very work-intensive to produce. I've never worked on one.
    Anne-Marie Concepcion did a Lynda.com video on producing one.
    Rorohiko produces a product called ePubCrawler which can help in produced fixed format EPUB files:
    Fixed Layout EPUB Assistant In InDesign: ePubCrawler | Rorohiko ...

  • Printing multiple PR with different line items in smartform

    Hello all,
    I have an requirement to print multiple PR with different line items on different pages.
    So,suppose two PR are there,PR1 and PR2 with n no of line items,then i should get each PR on different page with its line items.
    Note: One loop processing is already there on line items.
    Best Regards,
    Anurodh

    Hi,
    Fetch all the PRs and its corresponding items into 2 different table. Then Loop at the internal whihc contains the PRs and  call the 2nd internal table for its items and call the FM for smartforms and pass them.
    LOOP AT it_PR.
      fetch all the items into it_PR_item
      Call Function Fnam
      Passign the it_PR_item
    ENDLOOP.
    Regards,
    Aditya

  • How to go about multiple inclination with different data selection in Delta

    We have to copy large amount of data ( more than 42lak of recodes) selectivly from on ODS to other ODS. in delata load ( BW 3.5 enverioment)
    I thought of loading data in slices through delta loading with selection condition.
    step 1> Do The initialization with selection condition as for calyear =2001 ( Init without data transfer )
    step 2> Take the delta load .. it will take all delta record with same selection
    step 3> Now I want to do Initialization with selection condition as for calyear =2002
    step 4> take the delta now it will take delta for year 2001 and 2002 both Right ?
    Here what problem I am facing.. while doing 2nd time initialization it prompt me to delete the last  initialization request form scheduler menu.
    if i delete the last request .. will it take the delta  for previous initialization selection  and new initialization selection. ?
    Please advice how to go about multiple inclination with different data selection in delta loading.
    Looking forward your reply.

    Hi,
    step 1> Do The initialization with selection condition as for calyear =2001 ( Init without data transfer )
    step 2> Take the delta load .. it will take all delta record with same selection
    step 3> Now I want to do Initialization with selection condition as for calyear =2002
    step 4> take the delta now it will take delta for year 2001 and 2002 both Right ?
    You are correct with this scenario normally. The message you mentioned normally comes up when you open a infopackage and don't change the selection first or in case you have overlapping selections with an already done init.
    regards
    Siggi

Maybe you are looking for

  • My ipod touch 4th gen don't show up on itunes.

    Hi! I really need help! After I updated my ipod touch 4th gen from 4.3.3 to 5.0.1, it doesn't show up on itunes even if i already connected it to my PC. ( i use windows XP). On my ipod's screen there's a figure which I think it probably says to conne

  • Fxstruts and xml example needed

    Hello, I'm using fxstruts to bridge to a new flex app. I am using secure http and am using the HTTPService request on the client. The request goes through successfully (i.e. a logon). Once that succeeds on the server I forward to a page which returns

  • Adding mail users from Portal 'sign me up' facility

    When users access the Portal for the first time, they have the opportunity to sign up as new users. This will create their user id and they can then access IM or Calendar quite happily. They can't, however, access mail. Adding mail users appears only

  • Library/Caches Backup or not ?

    Hi, I currently use RsyncX for doing a weekly backup to an external USB drive and by default i backup my home dir. I am wondering if there are certain directories in my home dir that i can exclude from backing up ? i.e library/caches etc ? Also i not

  • Could no reserve record [2 tries], Keep trying?

    Hi, Once I retrieve a specific record from Receivables Transaction, I receive an error  Could no reserve record [2 tries], Keep trying?, Record successfully retrieve but with this error which prevent for further action such as Apply etc. Please advis