Can you  please tell what is wrong, and what should be correct action.

Dears,
I am facing a problem. I am preparing a business report. I have generate the report for customer orders that will expire in certain duration as well as the last Payment Method used by the customer.
For this I have to use to tables which are as follows:
ORDER_DETAIL
ONETMPRD_CHRG
ORDER_DETAIL Contains the order Id, Order Date, Payment Method.
ONETMPRD_CHRG contains the customerid, orderid, item, duration and service expiry date and other detail
ORDER_DETAIL is the master table
ONETMPRD_CHRG is the detail table.
I have write the following query to achieve this-
SELECT A.GF_USER_CUSTID , b.gf_payment_method, MAX(b.gf_order_date) --COUNT(DISTINCT a.gf_user_custid) Customer
FROM CIQDE.GT_ONETMPRD_CHRG A, CIQDE.GT_ORDER_DETAIL B , ciqops.ops_item_280106 c, ciqde.gt_customer_address_phone d, gt_customer e
WHERE B.GF_ORDER_ID = A.GF_ORDER_ID
AND c.gf_item_code=a.gf_item_code
AND a.gf_user_custid=d.gf_cust_id
AND d.gf_cust_id=e.gf_customer_id
AND a.GF_ACTUAL_END_DATE BETWEEN '23-JAN-2006' AND '01-AUG-2006'
AND a.GF_COUNTRY_CODE = 'AT'
AND a.gf_charge_type IN ('C')
AND NVL(a.gf_u_duration,0)=0
AND a.gf_price_plan_code='PPSCU'
GROUP BY A.GF_USER_CUSTID , b.gf_payment_method
ORDER BY A.GF_USER_CUSTID
Problem : I am not getting the expected Reult, some extra records are coming in the result output

Problem : I am not getting the expected Reult, some extra records are coming in the result output So you are getting all the records you want, just with extra ones? Then you need to work at the works you don't want and figure out what distinguishes them from the records you do want. Then amend your WHERE clause accordingly.
This is really a business issue: you understand your application and its data, we don't.
Cheers, APC

Similar Messages

  • I have downloaded Photoshop Elements and all went well.  When I went to open, it opens fine but is unreadable.  I have a Mac and my flash player is up to date.  Can you please tell me what I am missing?

    I have downloaded Photoshop Elements and all went well.  When I went to open, it opens but the content is unreadable.  I have a Mac and my flash player is up to date.  Can you please tell me what I am missing?
    Thanks,
    Nikki

    I did try to uninstall and reinstall.  It messed up my computer.  I had to "RESTORE" from the prior days backup.  This was not helpful at all.  I'm used to losing all my stuff when I connect to iTunes, that's a whole other issue, but now I'm completely banned from any updates to my phone at all.  Geeze.......

  • HT4718 Upgrade to OS X Mountain Lion and my computer keeps restarting! Can you please tell me what I need to do to fix it so I can use it.  The only way I can get in is by using Safe Mode :( Please help

    Help
    I upgrated my computer to OS X Mountain Lion last night and since then my computer keeps restarting over and over again.  The only way I can use it is by being in Safe Mode.  Can  you please tell me what I need to do so my computer works perfectly again.
    Thank you

    If you have more than one user account, you must be logged in as an administrator to carry out these instructions.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select the most recent panic log under the heading System Diagnostic Reports on the left. If you don't see that heading, select  
    View ▹ Show Log List   from the menu bar. Post the entire contents of the panic report — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • My xtreme tong-its seems corrupted...before it was working very well, but for several games played it stop working, i tried remove and re-install it but nothing happens. Can you please tell me what to do in fixing this particular game.

    my xtreme tong-its seems corrupted...before it was working very well, but for several games played it stop working, i tried remove and re-install it but nothing happens. Can you please tell me what to do in fixing this particular game.

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Can you please tell the difference between FSCM 8.8 and 9.0

    Hi,
    Can you please tell me the difference b/n PeopleSoft FSCM 8.8 and 9.0.
    What are major changes took place in application from 8.8 to 9.0 and also in tools 8.46 and 8.49.
    Thanks

    Well There is lots of Stuff but hey I will take a crack at it
    First off you will have to go to PeopleTool 8.49 : you get new stuff for IB, XML publisher, Archive Mangers, and too much to cover here....Financials adds:
    Credit Card Encryption
    Workflow Enhancements
    Expenses:
    Save and Hold functionality
    enable approvers to add transaction lines during the approval process.
    Compare Totals
    Payabales
    Financial Santion Validations
    Digital Sig on Electronic Invoices
    Tons of Voucher enhancements : sales Use Tax, ssesion defualts, related documents page
    Streamlined withholding process
    Payment Processing Enhancements: mass payment cancellations
    AM
    Fair Market Value tracking
    Depr. Write-off Reval. Method
    Multiple Deprecation Enchnacements:
    General Assets;
    Operational attributes and creation of non-financial assets
    Asset component hierarchy enhancements
    Configurable attributes for asset definition
    Other enhancements to the asset repository
    General Ledger
    Enhanced spreadsheet import.
    Enhanced combination editing.
    Enhanced audits of VAT report amounts.
    XML Publisher for ChartField reporting

  • I added Panorama Group Tabs and I don't like the way it works. I want to remove it but can't find or figure out a way to. Can you please tell me how it can be removed permanently? Thanks!

    I added Panorama Group Tabs and I don't like the way it works. I want to remove it but can't find or figure out a way to. Can you please tell me how it can be removed permanently? Thanks!

    That link doesn't tell you how to remove the Panoroma Tab Groups!! My main issue with it is that along my tabs at the top I no longer have the tab to open a new tab. Instead I have to click on the tab groups and then open them and click on an open area in the tab to get a new tab opened!! Is there a way to add that? I don't see that when I go to customize the tool bar as there's no icon to add it, just one to open a new window, which I don't want to do!! Thanks!!

  • I am not accessing flash programs on mozilla3.5 like youtube videos although I have the flash software 10 installed it can play on ie explorer and other websites can you please tell me the cause of that problem and how it can be retified?

    Also I am getting javascript error error on certain sites like ehow and facebook photo section can you please tell me the cause of that problem and how it can be retified?Finally I cant update ADobe reader to 10 at all its simply not downloading.Can you please tell me the cause of that too and how it can be retified so full flash services can be restored?

    Oh no... NOT THE 99-PAGER!!! Anything but THAT!!!

  • HT1390 Hi, I rented 4 movies last night which I have been charged for however seem to have disappeared from my iTunes. I have not watched any of them or opened them. Can you please tell me whats happened?

    Hi, I rented 4 movies last night which I have been charged for however seem to have disappeared from my iTunes. I have not watched any of them or opened them. Can you please tell me whats happened?

    While we all have MacBooks in this forum most of us don’t have Lion. There's a Lion Support Community where everybody has Lion.You should also post this question there.  https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion

  • HT5312 Hi I can't remember the answer to my security questions and I don't think I set up a rescue email adders when opening my account can you please tell me how I can gain access to my account

    Hi I can't remember the answer to my security questions and I don't think I set up a rescue email adders when opening my account can you please tell me how I can gain access to my account

    Didn't the link to contact the iTunes Store staff in the 'Additional Information' section of that article work for you? If you don't already have a valid rescue email address, only Apple itself can reset the questions.
    (90530)

  • Hi, i had backed up my data and then when i restored my phone with the restore backup option, all the photos, music where there but no apps. Al my apps are disappeared. Can you please tell me where are my apps backed up?

    Hi, i had backed up my data and then when i restored my phone with the restore backup option, all the photos, music where there but no apps. Al my apps are disappeared. Can you please tell me where are my apps backed up?

    Apps (like other synced media like music) are not included in the backup that iTunes makes. Thus, restoring from backup if the apps are not in the iTunes library there are no apps to restore to the iPod.
    Redownload the apps into your iTunes library.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    And then restore from backup.
    Make sure that in iTunes>Preferences>Devices the box that say "Prevent iPods..." is checked otherwise when you connect the iPod to the computer the previous backup (with your app data) might be overwritten.

  • Can you please tell me how can i change the parameter of Applet using Aspec

    Respect Members
    Can we apply Aspectwerkz on Applet? In our project we have to
    change the method parameters before its execution(Around Advice) , can we do this in applet using Aspectwerkz?
    Can you please tell me how can i change the parameter of Applet using Aspectwerkz or AspectJ ?
    I did it by for Java Application using the AspectJ And Aspectwerkz But not able to do for Applet.
    For Applet I Am setting the parameter in JAVA plug in for Aspectwerkz e.g. -Xdebug -Xrunaspectwerkz -Xbootclasspath & path for xml file in which pointcut is defined.
    If you any Friend working on it or any author who might be helpfull for me please Forward this mail to him/her
    THANKs in Advance
    [email protected]

    hello rodale, what you're seeing is probably a side effect of firefox not being able to save certain preferences into its profile folder.
    go to ''firefox > help > troubleshooting information'', click on ''profile folder/show folder'' and close all firefox windows afterwards. a windows explorer window should open up - in there delete the file named '''user.js'''.
    in case this didn't solve the issue yet please also refer to [[How to fix preferences that won't save]].

  • Can you please tell me how to find top 10 wait events

    Hi
    Can you please tell me how to find top 10 wait events and what actions need to be taken when there is a wait?
    Thanks
    Regards,
    RJ.

    hi,
    suggest you to use statspack !!!!!!! for the all tuning..else use the views
    * v$session_event
    * v$session_wait
    * v$system_event
    go through this for tuning tips
    http://www.dba-oracle.com/art_dbazine_waits.htm
    Thanks
    --Raman                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can you please tell mejdk 1.6 has new method getHardwareAddress()

    can you please tell mejdk 1.6 has new method getHardwareAddress() i write this code in jdeveloper 10.1.3 and occure an error ( this method not found in NetworkInterface ) and jdeveloper highlight it with redline. i just uninstall jdk1.5 and then install jdk1.6u2 then still this error .
    pleaze help me what can i do .
    try {       
    InetAddress address = InetAddress.getLocalHost();
    NetworkInterface ni = NetworkInterface.getByInetAddress(address);
    byte[] mac = ni.getHardwareAddress();
    for (int i = 0; i < mac.length; i++) {             
    System.out.format("%02X%s", mac, (i < mac.length - 1) ? "-" : "");
    System.out.print("GetDisplayName ="+ni.getDisplayName());
    System.out.print("Ni.toString ="+ni.toString());
    System.out.print("Network interfaces ="+address.getHostName());
    } catch (UnknownHostException e) {        
    e.printStackTrace();
    } catch (SocketException e) {        
    e.printStackTrace();

    Hello Sir
    actually i am new to java.
    currently i am using jdeveloper 10.1.3 and jboss in window. i want to get the macAddress through java api NetworkInterface it has getHardwareAddress method in jdk 1.6 but it does not work in jdeveloper pleaze tell me the solution what can i do it is working fine.
    try {       
    InetAddress address = InetAddress.getLocalHost();
    NetworkInterface ni = NetworkInterface.getByInetAddress(address);
    // here is error jedeveloper underline with redline getHardwareAddress()
    byte[] mac = ni.getHardwareAddress();
    for (int i = 0; i < mac.length; i++) {             
    System.out.format("%02X%s", mac, (i < mac.length - 1) ? "-" : "");
    System.out.print("GetDisplayName ="+ni.getDisplayName());
    System.out.print("Ni.toString ="+ni.toString());
    System.out.print("Network interfaces ="+address.getHostName());
    } catch (UnknownHostException e) {        
    e.printStackTrace();
    } catch (SocketException e) {        
    e.printStackTrace();

  • How to set the Health app on my iPod touch(5th gen.)? Can you please tell me how to set it step by step ? Thank you ️

    I've been trying to set my health app since it came out with IOS 8. But every time I selected my data and everything , nothing happened.
    Can you please tell me exactly how to set it ?  

    Maybe:
    Use Health on your iPhone or iPod touch with iOS 8 - Apple Support
    http://www.cnet.com/how-to/apple-health-app-how-to-set-up-import/
    http://blog.human.co/posts/human-ios-health.html
    Not that all feature re not available on an iPod.
    If you have problem please provide more details of your problem. Like what you did, what you tap and what happened or did not happen

  • Can u please tell me events trigaring and first event in report

    hi experts,
    can u please tell me events trigaring and first event in report

    actually first event triggering in a report is intialization
    but before that there is one more event get triggered that is load of program.....This is the very first event which is trigger in a report program. Really I have never needed a reason to use this. But I would assume that it can be used when you want to do something before the INITIALIZATION event.
    Classical Reports can have these events, in the given order :
    initialization
    at selection-screen
    start-of-selection
    end-of-selection
    top-of-page
    end-of-page
    In addition o the above, the following events are possible in case of Interactive Reports -
    at line-selection
    at user-command
    at PFnn.

  • Can you Please Tell Me the Process for service/operation  provide by one plant to other plant.

    Can you Please Tell Me the Process for service/operation  provide by one plant to other plant.
    In My Company No Of Plants Like 1000,2000,3000,4000
    Plant 1000 Provide the service/operation  like (welding ,cutting, painting ) to other plants (eg 2000,3000,4000)
    We want to give the profit for plant 1000 and book the service or operation charge in plant 2000 or 3000.
    We don’t want  to use material code in this process.
    Can you help me it is possible or not through SAP PP.

    Krishnendu,
                   Actually in my company we have one plant 1000 that plant provide the service like (CUTTING (SHAFT),WELDING,MACHINING,PAINTING)
    actually plant already made one material xyz and supply 2000 plant .
    we  can use STO in this scenario and set special procurement key  80.
    But my requirement is after some time plant 1000 provide few operation in xyz material that material already supply to 2000 plant.
    in this case we dont  use to produce any material.

Maybe you are looking for

  • Address Book GROUPS not working w/multiple addresses ?

    I made a small group w/ 3 people in it, each with 2-4 emails, but I can't choose which email it sends to, only the first one. I selected the group but EDIT DISTRIBUTION LIST is grayed out. Any ideas ??

  • How to advance through pictures in a folder ?

    Hello, Don't know whether this is the right forum or not but hopefully question is simple enough that everyone but me knows the answer. I would like to able to click on a photo in a folder - and then once it opens ( in Preview on my computer ) be abl

  • Keystroke return and ASCII character 13 and 10 not working in

    I have the following script to opens a web page of my internal telephone switch (all in the local network) and fill in the two fields that come up and needs filled out in order to log in. tell application "Safari" activate open location "http://192.1

  • New Action features

    There are some very nice additions to the functionality of Actions in Keynote '09. One extremely useful improvement that I have yet to see mentioned here is the ability to leave a ghosted image of the final position of an Action on the slide while on

  • Re-download Video's With Higher Resolution?

    Is there any way to re-download all my old videos from iTunes with the new, higher resolution? Or am I going to be stuck with the crappy quality? Any help would be great, thanks.