Can not use NVL with group by clause?

Hi All, I am using following sql query to fetch some records. select       nvl('RP5_dsc_dlk_MED_DEL_SBH_20130919_5799.out.bc','RP5_dsc_dlk_MED_DEL_SBH_20130919_5799.out.bc')||'|'||       nvl(tm_cdr_file_name,'NA')||'|'||       nvl(min(obj_id0),'0')||'|'||       nvl(max(obj_id0),'0')||'|'||       nvl(count(obj_id0),'0')||'|'||       nvl(trim(to_char(sum(VOLUME_RECEIVED)/100,'9999999999999990.99')),'0') from       EVENT_DLAY_SESS_TLCS_T where       obj_id0 between 1433833603724199101 and 1433833603724199109 group by       nvl(tm_cdr_file_name,'NA') The above query is perfect and returns data. In this case the returned data is as below:   RP5_dsc_dlk_MED_DEL_SBH_20130919_5799.out.bc|ICP_dsc_dlk_MED_DEL_SBH_20130919_5799.edr|1433833603724199101|1433833603724199109|9|2.00 However, when there is no matching obj_id0. My expected result will be as below:   RP5_dsc_dlk_MED_DEL_SBH_20130919_5799.out.bc|NA|0|0|0|0 I tried NVL and decode but it did not work. Any help on this is highly appreciated. Thanks Angsuman

Hi, Angsuman,
Angshuman wrote:
Hi All, I am using following sql query to fetch some records. select       nvl('RP5_dsc_dlk_MED_DEL_SBH_20130919_5799.out.bc','RP5_dsc_dlk_MED_DEL_SBH_20130919_5799.out.bc')||'|'||       nvl(tm_cdr_file_name,'NA')||'|'||       nvl(min(obj_id0),'0')||'|'||       nvl(max(obj_id0),'0')||'|'||       nvl(count(obj_id0),'0')||'|'||       nvl(trim(to_char(sum(VOLUME_RECEIVED)/100,'9999999999999990.99')),'0') from       EVENT_DLAY_SESS_TLCS_T where       obj_id0 between 1433833603724199101 and 1433833603724199109 group by       nvl(tm_cdr_file_name,'NA') The above query is perfect ...
Is the query really perfect, or does it have some problem?
Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data, so that the people who want to help you can re-create the problem and test their ideas.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002
Do you think the message you posted is easy to read?  Do you think people would be able to understand what you're doing, and be more likely to help you, if it were formatted differently?
I know this this site can take something that looks nice when you post it, and turn it into something hard to read.  Look at your message after you post it.  If it has become hard to read, fix it, even if the site, not you, caused the problem.

Similar Messages

  • I am using iPhoto '09 Version 8.1.2 but can not use iCloud with it. I've looked for updates in iPhoto and iLife'11 but no luck. Suggestions very welcome.

    I am using iPhoto '09 Version 8.1.2 but can not use iCloud with it. I've looked for updates in iPhoto and iLife'11 but no luck. Suggestions very welcome.

    No you won't necessarily lose your photos when upgrading but it's very very unwise not to back up first. Backing up is like using a seat belt in a car. You can drive without one for years and have no issues, but if you do have a problem the outcome will be a lot worse. So, too, with back ups. And upgrading is one of those times when the risks of a problem are higher.
    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store

  • I have a Discover Card site that gives me a one time charge number and I can not use it with Firefox as it says I do not have a browser open or available

    On Internet Explorer I can use my Discover thing to fill in any form needed but Firefox won't allow it as it keeps saying there is no available browser. How can I change that and what does that mean? I am not a computer person

    -> click '''Firefox''' button and click '''Options''' -> Content panel -> place Checkmark on '''Block Pop-up windows''' -> click '''Exceptions...''' button and click '''Remove All''' button -> click Close -> click OK on Options window -> Restart Firefox
    Check and tell if its working. IF it still doesn't work, do this:
    * Go to your concerned website
    * Right-click empty space within the page and click '''View Page Info'''
    * In the '''Page Info''' window, select the '''Permissions''' panel
    * Under '''Open Pop-up windows''', place/remove Checkmark on '''Use Default''' and change the setting to '''Block'''
    * Close the Page Info window
    * click OK on Options window -> Restart Firefox
    For more support, you can also use these extensions together:
    -> '''Adblock Plus 1.3.9'''
    * https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/
    * Subscribe to Filter lists
    ** http://adblockplus.org/en/subscriptions
    ** http://adblockplus.org/en/getting_started
    -> '''Adblock Plus Pop-up Addon 0.2.8'''
    * https://addons.mozilla.org/en-US/firefox/addon/adblock-plus-pop-up-addon/

  • HT2105 I have an itunes gift card, then found out that I can not use it with my KOBO Ereader.  I was wondering if I could let someone else in my family use the balance of my gift card?  They have an IPad and they often use Itune Gift Cards to purchase mov

    I was given an itunes gift card, then found out that my KOBO Ereader will not accept the itunes gift card.  I now have this gift card with a balance on it and would like to give it to my brother (he has an IPAD and uses Itune gift cards all the time).  If he was to use my gift card (with my password) would the movie or book that he purchase show up on his devise or would it show up on mine.  Thanks for all the help

    I'm not sure what you mean. Did you redeem the gift card to your iTunes Store account? If not, just give your brother the gift card and he can redeem it in his own iTunes Store account. If you did redeem the card, then there's no way to transfer the balance from your iTunes Store account to his. He'd have to use your iTunes Store account to make the purchases and sync to his devices.
    Regards.

  • I want to unistall the newer version of firefox. I liked my google toolbar and I can not use it with the newer version.

    I haven't installed the newer version because my Google add on would not work with it. Some how it installed itself today and I don't like it. I want my Google toolbar. I would like to uninstall this newer version and go back to the older version, Can I please get some help with this?

    Hello,
    Please see What userid & password do I need to install Flash Player?.
    Maria

  • UCS can not use etherchannel with cisco switch

    On catalyst switch 3560x
    interface Port-channel5
    description Uplink-UCS-VM1
    switchport mode acc
    switch access vlan 1
    interface range giga0/23-24
    switch access vlan 1
    channel-group 5 mode on
    ==============================
    On UCS
    via pic

    Hello ,
    I assume you are following KB articles for ESXi configuration.
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004048
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004088
    From 3560, " show etherchannel summary  "
    Can you please share the output of following commands from ESXi host ?
    esxcfg-nics -l
    esxcfg-vswitch -l
    Padma

  • I use LR3. I can not use it with my NAS. I can not open lightroom category in my NAS.

    I have called Adobe tech support. She told me they only answer questions of LR4 and LR5.  So LR3 users are abandoned ? can only ask questions here?
    What a ?????? 

    Connect your iPad, iTunes running, without syncing, right-click your iPad in the left device pane, select "Transfer Purchases". Verify this "Tone" is listed in your Library>Tones. If so, connect your phone & sync it to your phone.

  • I'm exhausted of trying to find a solution to a problem created by Apple. I have moved to iCloud, following your instructions and now I can not use my mobileme e-mail address. How can I contact directly with Apple, not just an automatic reply phone number

    I'm exhausted of trying to find a solution to a problem created by Apple. I have moved to icloud following all your instructions and now I can not use my mobile me e-mail address. I can not activate icloud because when I put my e-mail address it answers that somebody is already using my address. I have my old e-mails, but I can not receive any e-mail or send them.
    I have contacted Apple Technical Support in Spain and I was sent an e-mail saying that I have to call a phone number and when I call it is always an answering machine who answers that says that I have to pay 50€ for a consultation or wait for 10 minutes. When I have made the consultation it was never mentioned that I have to pay 50€ for a phone consultation. If I don't want to wait I have to pay for the Apple Tecnical Support which cost 250 €, this was not mentioned in the technical support page.
    Can somebody let me know how can I contact Apple in another way in order to talk with a human being or chat directly? I was very happy just using my mobileme e-mails, I didn't need any clouds and I was force by Apple to registered if I want to continue using my mobileme e-mail address.

    Sandra,
    See this Apple support document for information on reporting an issue with your iTunes purchase.
    http://support.apple.com/kb/HT1933
    B-rock

  • How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store.

    How can i update my old 2006 iMac Intel core 2 duo running 10.6.8 to OSX Lion so that I can sync using iCloud with my newer devices?  Mountain Lion is not an option for my older model and Lion is no longer available at App store. 

    Call Apple's online store's telesales agents: 1-800-MY-APPLE (1-800-692-7753) or Customer Service and Sales Support at 1-800-676-2775. For Lion you'll get a redemptions code via e-mail and need to DL from the Mac Apple Store (requires SL 10.6.6+).

  • My old appleID use email with domain already deactivate. So I changed my appleID and primary email and now I can not access iCloud with iOS7. ICloud shows my old appleID but I can't change it. How do I get iCloud to work with my updated ID?

    My old email that using register for apple ID cannot access/check any mail because that domain already deactivate.
    So I changed my appleID and primary email and now I can not access iCloud with iOS7. ICloud shows my old appleID but I can't change it. How do I get iCloud to work with my updated ID?

    Hi ccharat,
    Welcome to the Apple Support Communities! It sounds like you did a good job editing your Apple ID and primary email address, but you didn’t sign out of iCloud on your iOS device before hand. What you may need to do in this situation is go back to the Apple ID website and edit your Apple ID and primary email address back to the email address that is signed in with iCloud (there is no need to verify the account after editing it back to the old account, just changing it back is enough). Once your Apple ID is back to the original account, delete the iCloud account from the iOS device and be sure to keep all info on the device when prompted. After you delete the iCloud account, go back to the website and edit your Apple ID and primary email address back to the new address. Once it is back to the account you would like, you can sign into the iCloud on the iOS device with that new account and merge all of the data when prompted. Please use the following article as a reference.
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/ts5223
    Change your Apple ID temporarily
    If signing out and back in to iMessage or FaceTime didn't help, try these steps:
    Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
    Go to Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
    Scroll down and tap Delete Account, then tap Delete to confirm.
    Tap “Keep on My [Device]” or “Delete from My [Device].” In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
    Enter the password for your previous Apple ID.
    Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
    Return to Settings > iCloud and sign in with your new Apple ID.
    I hope this helps,  
    -Joe

  • I can no longer download and save files. They are now saved with a ".part" suffix that I can not use or open. What happened, I used to do this all the time?

    Downloads seem to be happening normally at first but the file shows up with a file extension of ".part" that I can not use or open. If I refresh the folder where it was downloaded to, it disappears as though it wasn't there at all.
    I used to do this and it just yesterday started to give me problems. It doesn't seem to matter what file type I do this with as PDF, MP3 and EXE files have all shown this problem.
    Please help!

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See also "Disable virus scanning in Firefox preferences - Windows"
    * http://kb.mozillazine.org/Unable_to_save_or_download_files

  • Have been having issues with firefox crashing & v e r r y s l o w also sluggish, I removed by the programs & features than redownloaded it, I can not use it.

    Had to remove it for the last & final time. I love & miss my Firefox, but can't take the chance of someone getting into my system. The upgrade had yahoo toolbar which is always easy to get rid of (thank God) but I have this yellow sign in my popup that says something about the system not being safe, & we can not go to any web sites. Why is it everything that is upgraded always turns out to be BULL. I can not use Firefox for anything, so once again had to remove it using the programs & features update/remove. Windows7 Home Premium 64-bit Operating System. HELP.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your bookmarks, history, passwords, cookies, and other essential information.
    '''''Note:''' After resetting Firefox, you will lose any extensions, toolbar customizations, and some preferences.'' See the [[Reset Firefox – easily fix most problems]] article for more information.
    To Reset Firefox:
    # Open the Troubleshooting Information page using one of these methods:
    #*Click the menu button [[Image:New Fx Menu]], click help [[Image:Help-29]] and select ''Troubleshooting Information''. A new tab containing your troubleshooting information should open.
    #*If you're unable to access the Help menu, type '''about:support''' in your address bar to bring up the Troubleshooting Information page.
    #At the top right corner of the page, you should see a button that says "Reset Firefox" that looks like this: [[Image:Button reset]]. Click on it.
    #Firefox will close and reset. After it is done, Firefox will show a window with the information that is imported.
    #Click Finish and Firefox will reopen.
    Did this fix the problem? Please report back to us!

  • I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same displa

    I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same display works fine as it is surprising. or maybe someone knows what is the reason for this? is there any way to solve this problem?

    More than likely its a hardware issue, I have never encountered such a problem and best bet is to just go get it replaced. If you have insurance on your device apple will replace it as long as there was no water damage, if you dont have insurance they will charge $200 more or less. Hope you get it fixed

  • I can not use CanoScan N670U with my Macbook pro. I download canoscan toolbox 4.1 from Cannon website. It keep saying "the scanner plug-in was not found". Please help

    I can not use CanaScan N670U with my Macbook Pro. I download Canoscan toolbox 4.1 from Cannon websit. It still keep saying "The scanner plug-in was not found". Please help

    There is a solution (I'm running Snow Leopard on a Core2Duo iMac, but this problem arose when I was running Leopard on a G4 PowerBook too).
    Problem:
    You download the OS X driver for the scanner from Canon's site. I already had the CanoScan Toolbox (4.1) stored on an external drive.
    You unzip the driver and run the VISE installer. After a search it finds your copy of Photoshop (and maybe even the CanoScan Toolbox), and you click to install on that/those location(s).
    You get a couple of error messages, which you click through.
    You restart your computer and try to run the scanner but you get an error that the driver is wrong or missing and the process will abort.
    Solution:
    BEFORE you restart, and with the installer package still open -
    1. Copy the Into_CFMSupport_Login & Into_CMPrefs folders to
    Applications : Canon Utilities
    Applications : Canoscan Toolbox
    and remove the prefix Into_ from each folder
    2. Check whether the installer placed N067U_Library.shlb into the top level (not User level)
    Library : CFMSupport
    and if it didn't, move it there yourself
    THEN restart, and try again. It worked for me (via Photoshop), but whether it will work for everyone, I don't know.

  • Can not take a screenshot with Maverick and track pad.  can not use apple chat to talk with a tech.  there are other issues also like I used to be able to go back a page with the delete button.  No Maverick PDF to instruct on how to use Maverick

    Can not take a screenshot with Maverick and track pad.  can not use apple chat to talk with a tech.  there are other issues also like I used to be able to go back a page with the delete button.  No Maverick PDF to instruct on how to use Maverick
    THE use of the apple support is a mess also.
    I want to be able to use my MAC fully and easily like I used to with Snow Leopard. 
    What is wrong with this maverick OS?

    The only people who can possibly assist you with this is Apple Customer Relations, call your local Apple contact number and ask for Customer Relations then explain your situation clearly and politely (be firm but don't rant).
    You might want to investiage what the local laws are regarding defective goods and 'fit for use' definitions on warranties etc. Consumer Protection can be a useful tool to use or bargain with if needed ...

Maybe you are looking for

  • I cant put a cd into drive.

    I just tried to install a new program, when I went to put the CD into drive it wouldnt go. It was like there was already one in there, but there wasnt. I hit the eject button several times but Im sure there wasnt a CD in there. Nothing popped out aft

  • Lightroom 2.6 and CS2

    Hello. I usually open my images taken with a Canon Eos 5D Mark II in LR 2.6, then develop and export them to CS2. The resoultion in CS2 is 240. How can I set it to 300 dpi? Thank you!

  • Maintain the status of a Visual Web JSF page

    Hello, I have a JSF page in which I display several images.And when the user click on one image it will be viewed on her real size. So the user will be redirected to another page. Then, if he go back to the previous page will be displayed containing

  • Unknown Addition to Calendar - what is it? how to remove?

    I just upgraded to Leopard after my hard drive crashed and had synced with my Blackberry to get all of my calendars back. In opening today though I noticed a line across this week with a small colored bubble on the end of it (?) but I can't adjust it

  • Contribute 3 & Flashpaper

    Hello. I have contribute 3 installed on XP pro. Each time i try to open a word doc (office 2003) contribute 3 pops a message up saying it's trying to install. I have read this is something to do with a problem with flashpaper 2. Please could someone