How can i achieve Outerjoin type of results using Reports Datalink option

Hi,
i am developing a Oracle Report. i am using Datalink to maintain parent-child relationship between 2 queries. If no matching value found then i want to return 0 Records. how to achieve this.
Ex: I have 2 tables like Dept & EMP
DEPT has 2 rows HR and FINANCE
I have only one employee in HR and no employee in FINANCE.
I am using the below datalink properties:
SQL clause : WHERE
CONDITION ; =
PARENT GROUP: DEPT
PARENT Column : DEPTID
CHILD QUERY : EMP
CHILD Column : DEPTID.
In the report it is showing matching columns without any issues> i want non matching columns also with Zero employess like
HR     1
FINANCE 0
I need OUTER JOIN kind of thing. How can i achieve this. Just i have written one example. I have very complex query to implement this and datalink is absolutely necessry for me. Any help please.

Following can be checked in order to return column value from child Group to Parent Group at data modal.
a. create a PlaceHolder column ( say CP_1 and CP_2) at parent Group.
b. create one Formula column at each Child group ( say cf_1 and cf_2 )
c. write code at formula to return reg_emp as ( say for cf_1)
srw.reference(:cp_1);
:cp_1 := :rep_emp;
for unreg_emp as
srw.reference(:cp_2);
:cp_2 := :unreg_emp;
.. this way now reg_emp and unreg_emp counts can be made available to parent Group.
To get a difference and return "Yes" or "No" write formula column at Parent Group ..
Create a Formula column ( say cf_3) at parent group
write following
begin
if :cp_1 = :cp_2 >0 then
return 'Yes';
else
return 'No';
end if;
end;
Now use this formula as source to show value at layout under Parent Repeating Frame.
Hope this helps..

Similar Messages

  • How can we Achieve  these type of scenarios  using Oracle dataIntegrator

    Hi Experts,
    Can any one help me for solving this scenario in ODI
    " By using a single reusable interface to read files one after the other  and  populate data to the  same target (file columns + file name) "
    Thanks in Advance.....

    Hi,
    Please have a look at these two blog articles :
    John Goodwin : http://john-goodwin.blogspot.be/2009/06/odi-series-processing-all-files-in.html
    Gurcan Orhan : http://gurcanorhan.wordpress.com/2010/11/13/loading-multiple-files-with-odi/
    This should help you.
    Regards,
    JeromeFr

  • How can I access the Edit preferences performance use Graphics Processor option through the jsx scri

    I want to runa a script with and without GPU options. I made an actionto click on the Edit>Preferences>Performace>use graphics processor checkbox. But now I want to check wether the checkbox is ticked or not to determine i should use it for a with GPU run or without GPU run. I cant seem to find the prefernce/property/object name to access this selection in the photoshop scripting library. Can someone help me here?

    I did not see anything in the Object Viewer for preference open GL, performance or GPU  so I do not think there is a DOM method available to retrieve or set it.  You can set it using the action manager using scriptlistener code.
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
        var desc29 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref19 = new ActionReference();
            var idPrpr = charIDToTypeID( "Prpr" );
            var idCchP = charIDToTypeID( "CchP" );
            ref19.putProperty( idPrpr, idCchP );
            var idcapp = charIDToTypeID( "capp" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref19.putEnumerated( idcapp, idOrdn, idTrgt );
        desc29.putReference( idnull, ref19 );
        var idT = charIDToTypeID( "T   " );
            var desc30 = new ActionDescriptor();
            var idMmrU = charIDToTypeID( "MmrU" );
            var idPrc = charIDToTypeID( "#Prc" );
            desc30.putUnitDouble( idMmrU, idPrc, 90.000000 );
            var idopenglEnabled = stringIDToTypeID( "openglEnabled" );
            desc30.putBoolean( idopenglEnabled, true );
        var idCchP = charIDToTypeID( "CchP" );
        desc29.putObject( idT, idCchP, desc30 );
    executeAction( idsetd, desc29, DialogModes.NO );

  • How can i achieve tis in Bex Query Designer

    Hi Experts,
    Please advise on how can i achieve this in Query.
    I got Location,Material_ID,Price and Change_Date.
    (Change_Date is defined as both CHAR & KF in cube)
    (Change date is on monthly basis they execute a programe in non sap source system to update the prices of material)
    The Price of material tends to change or may not change ...
    Every month we get a record from source system on material price
    My requirment is to bulid a report that show
    LocationMaterial_IDCurrent Price  and Previous Price
    Please advise how can i develop this report

    While loading into cube, normally you map  price field coming from datasaource to
    infobject  ZPRICE_CURRENT   in your infocube.
    So in transformation you map like this
    price  -
    > ZPRICE_CURRENT
    Now, Maintain another keyfigure in cube  ZPRICE_PREVIOUS.
    That is not mapped with anything.But is assigned a value in the Start routine
    which just runs before, the transformation.
    In the start routine write code something like this :
    Read current value of price from cube for that Material.
    (Select  ZPRICE_CURRENT into price_curr  from cube where material = DATA-PACKAGE- Material   )
    if  DATA_PACKAGE-price <> price_curr   ( if new_price <> old_price)
    ZPRICE_PREVIOUS = price_curr. (storign present value of price in the cube )
    endif.
    Now save the Start routine. When mapping the fields in the transformation
    dont map anythign to  ZPRICE_PREVIOUS as it is already filled in teh start routine from the above  code.Leave it unmapped.
    The below mapping is normally maintained without change..
    price  -
    > ZPRICE_CURRENT
    If you find this to be useful ..please do the needful (points)

  • How can I determine the type of video out connector I need?

    Howdy,
    I have a white macbook purchased Jun/2008. I want to connect to a TV but don't know what adapter I need. How can I determine the type of video out jack my macbook has?
    System Profiler says the model identifier is "MacBook 4,1". Under Graphics/Displays the only thing it says about the "Display Connector" is that no display is connected. Too bad it doesn't tell me what type of connector it is. If I knew the name of the connector I'd probably be home free. But it seems like every macbook model has a different video connector (since the state of the art has advanced over the years) and I haven't been able to keep up with the names.
    Now, I have a 6" long adapter that will convert this connector to VGA. And searching the Apple store for VGA adapters, the existence of mine says my connector is might be one of "Mini DisplayPort", "Apple Mini DVI", "Apple DVI", or "Apple Micro-DVI". But then there is also the connector at
    http://store.apple.com/us/product/M8639G/A?mco=MTY3ODQ5OTY
    and that looks like the one I have. But unlike the other adapters, this one is just called a "VGA Display Adapter". Does the connector have a name? How can I find adapters that have that same connector?
    I know I could use the adapter I have, plus a VGA to VGA cable, to hook up to a TV. But the quality of the VGA signal is poor in the digital world. My goal is to hook up to the TV via HDMI. Is this even possible? By which I mean, will my macbook generate the signals necessary to be able to be converted to HDMI?
    Thanks for any help,
    Zebulon T

    Thanks, Ded,
    You're right, the cable that I have won't work. I't from my previous, 2004 iBook. This is pretty embarrassing... I looked at the cable but didn't bother to try plugging it in.
    Looking at the close-up picture of the Mini-DVI to VGA adapter, that does look like the right connector. So I have Mini-DVI, and the other apter you pointed to can convert this to DVI. I'll take a look to see what makes the most sense, connector wise, downstream from that.
    Thanks very much.
    Zeb T

  • How can I view more than one result on the screen when I search for apps? eg I search for my hobby and there are over 1500 results - one result per screen - do I have to swipe 1500 times to see them all?

    I search for apps about my hobby. There are over 1500 results. Each single result takes up the whole screen. I will have to swipe the screen 1500 times to see all the results. How can I see 8 or 10 results and scroll through fast? Thanks very much for any suggestions!

    Bump:)
    But I've found some online reviews of this and I think we
    are stuck with this amazingly awful search system until
    they realize people like me won't bother searching for or buying
    Apps.
    Does a novel display one sentence per page?
    Do you listen to a radio documentary that transmits one word a minute?
    Or how about a song that is broken into four parts because the singers ran out of breath?
    Searching app products has never been easy or a pleasure, and now it's tougher than ever. Who has the time to swipe 1,600 times? It HURTS - and hurts my brain just thinking about it.
    Woe is me!
    Woe are we!

  • How Can I View Only The Search Results

    I'm very frustrated trying to display only my 5 star rated images so that I can export them.  WhenI search I get all the five star images plus all the other images in stacks with them.  How can I just ge the search result images?

    For that you would need to unstack your images from the stack. If your image is a part of the stack and it meets the desired search criteria ( in your case 5 star), then complete stack is shown in the search results.
    If you want to bypass complete stack out of your search , you can use Find by Details (Metadata) search as -
    Rating is 5
    And
    Stack is not in a stack

  • I want to delete my current exchange account. How can I achieve this and not lose stored information such as contacts, photos etc. please help. Thank you.

    I want to delete my current exchange account and replace it with my new one. How can I achieve this and not lose my contacts, photos, etc associated with this account? Please help..
    Thank you,

    Bad idea.
    What information do you want to share, exactly?  You can share contacts, reminders, and calendars with other iCloud users without the need for both of you to use the same iCloud account.  You can authorize both phones to use apps purchased under the same Apple ID without sharing an iCloud account.
    Sharing an iCloud account is a bad idea in general. There is too much opportunity for someone to damage or delete data that will affect both.

  • TS3694 How can I fix this type of error in iphone 4?"The iphone could not be restored. An unknown error occurred (3194) "please help me.

    Hi everybody !
    AT&T company is unlocked (factory)my iphone4 before 3 days ago so i want to restore to unlock iphone 4 with itunes but it is not restore.
    How can I fix this type of error in iphone 4?- "The iphone could not be restored. An unknown error occurred (3194) "
    please help me in nepali language(if posible) or english. thank you.

    http://support.apple.com/kb/TS3694#error3194
    This means that either your firewall/antivirus is blocking access to Apple's servers, or you have used your computer to jailbreak an iDevice in the past. The link above tells you how to resolve this issue.

  • When importing a CD, the CD Lookup Results dialogue box came up and I choose the wrong CD title.  Now iTunes is importing a different song list than the one on my CD.  How can I retrieve the CD Lookup Results to choose the correct title?

    When importing a CD, the "CD Lookup Results" dialogue box came up and I choose the wrong CD title.  Now iTunes is wanting to import a different song list than the one on my CD.  I've shut down my computer and opened iTunes from the hard drive Program Files and tried to import the CD again with the same problem.  How can I retrieve the "CD Looup Results" diaglogue box to choose the correct CD title to fit the song list on my original CD?

    You might also be able to do it without importing the songs again I think. Just highlight the tracks, right click them and choose "Get Track Names". This feature only works on CDs that were imported via iTunes.

  • I was login a website ,and i have opened cookies , i want to open another window to login the same website use another account , and in the same windows can use the same account , how can i achieve it ? thinks

    i want to use firefox to login a website ,in the same window and different tags can user the same session
    but when i open other window and login the same website use different account .
    how can i achieve it ? thinks

    Your problem has nothing to do with the faults or limitations of a web browser.
    ''There can be only ONE active user logged in on a specific website during a whole Browsing Session. Even if you try to log-in using a new window it will sign-out the earlier User ID from that website. It will keep the most recent logged-in User ID active.''
    This is the general policy on which all websites are built. Even if you try to login the same website from another web browser, you won't be able to login from the second platform either. I just check it. Tried on Mozilla and Internet Explorer.

  • How can i update external type of flashplayer

    i'm using JSON with my photoshop script(jsx) UI
    it keeps make Error 1065 when running script in photoshop
    but it works fine at chrome or flash player
    so i find what was the problem
    my plugin type of flash player version is 11.4.402.287
    photoshop uses external type of flash player version is 10.3.230.53
    how can i update external type of flashplayer?

    Is it missing or damaged? Go to an Apple Store or see other vendors like this http://www.dvwarehouse.com/Apple-Power-Cord-US/Canada-for-iMac-Intel-Late-2009-- -Mid-2011-922-9267---NEW-p-38209.html.

  • How can i produce this type of line chart (yield curve) by using flex2 charting?

    help! I am a flex newcomer, how can i produce this type of
    line chart (yield curve) by using flex2 charting? Anybody can teach
    me how can i customize the width of each scales as below of line
    chart? anybody know this?
    Click
    Here To See

    I need to show the X and Y Co-ordinate in a message when I click on the graphic's point.
    thanks for the tips, I´ll try to understand the sample program.
    Noguti

  • How can i get the time and result together show in one Array or in Cluster?

    hello everyone i am a new user .I want to get the time and voltge form a Generater. How can i get the time and result together show in one Array or in Cluster?When i selecte the first(or third...) result then in the front panel display the time and the voltge.Thank you!
    I post the time and voltge NOT together photo
    Attachments:
    12345.GIF ‏54 KB

    You can create an array of clusters with one element being the time and the other being the voltage, like so (using the "Get Waveform Components" function):
    Message Edited by smercurio_fc on 10-17-2007 03:15 PM
    Attachments:
    pic.PNG ‏11 KB

  • How can you tell what type of Iphone I have from the model number or serial number from the settings menu

    how can you tell what type of Iphone I have from the model number or serial number from the settings menu?

    Type Serial Number from Settings App here https://selfsolve.apple.com/agreementWarrantyDynamic.do it will tell you the type of iPhone.

Maybe you are looking for

  • Hyperlinks from Excel to PDF

    Hi, I'm using Excel 2003 Pro. In a spreadsheet, I have a list that is distributed to a domain on a weekly basis as a PDF file. The Spreadsheet contains Hyperlinks linking to URL's. I'm using Acrobat 7.0 Standard. When I create the PDF-file from my Ex

  • IC Webclient Startup

    I'm setting up IC Webclient on CRM 5.0. I've activated all the necessary services but I am running into a problem when launching the webclient. The page opens but displays only the scratchpad, channel selector and reject icons. I would appreciate any

  • Payment term day limit change

    Hi friends, Can any one tell me how to change the day limit for a payment term. I have tryed to change it in transaction OBB8 and in the table T052 but that particular field is grayed out. Can someone help me in this regard. Thanks in advance Srikant

  • Board Size in Ultiboard

    This is probably going to ne one of the most stupid questions ever asked, but I'm going to ask anyway. This is an Ultiboard question. How do I know what board size I am going to need in advance of placing components?  The way I have been doing this i

  • Itunes uses half cpu on xp

    iTunes 10.5.0.142 is using 1/2 of the memory on my dual core HP using XP Media Edition.  Read some forums and found relief by using command "netsh winsock reset".   This removed the AppleMobileDeviceService.exe temporarily but had the side effect of