Not able to read the values in group by, when no records in the table

Hi all, I have this query

Select p.header_id,

Type "some_constant."

sum (nvl (p.total_amount, 0)) sum_of

from table_name p

P.header_id group

When there is record in the table, it works fine, but I want to if there is no any folder that it returns as below,

header_id type sum_of

some_constant 0 0

How to...?

Help, please.

Kind regards

SELECT * FROM (select p.header_id,

Type "some_constant."

sum (nvl (p.total_amount, 0)) sum_of

from table_name p

P.header_id group

UNION ALL

SELECT 0,

BOX WHEN (SELECT COUNT (*) FROM table_name) = 0 THEN type of 'some_constant',

ANOTHER NULL

END type as,

0

THE DOUBLE)

WHERE type IS NOT NULL;

Post edited by: 000000

Tags: Database

Similar Questions

  • PS is not able to read the files from my Olympus OM - D E - M1 camera

    I have an old Version of Photoshop, CS3, Version 10.0. Now, I bought a new camera, an Olympus OM - D E - M1, and the PS is not able to read the files. Can I download a few extend camera raw?

    Per-Erik Pedersen

    Hi Peders,

    Thanks for posting on the Adobe forums.

    This camera is supported by Camera Raw 8.2, which is available in Photoshop CS 6. Please check the following KB Articles:

    Camera Raw plugin | Supported devices

    Applications of camera Raw compatible Adobe

    Kind regards

    Sandeep

  • Not able to read the WSDL on the server meets premature EOF

    Hi all

    I am facing problem while accessing a web server Service. Here is the clear view on this subject.

    I created a simple process of SyncBpel in a composite and deployed on the server and it works fine. Later, I created an asynchronous bpel process in a composite and in external reference I dragged a web Service and imported from the url of the wsdl for the SyncBpel server and wired the process of Asynbpel to webserive.
    Now here I am faced with a particular behavior that I'm not able to trace it.
    (1) for the first time when I import the url of the syncBpel from the server I am not faced with an error and it works well as expected, but when I close the Jdeveloper and open it I am not able to use the web Service, and it is said that "not being able to read the WSDL of the EOF Server premature encounter."
    (2) when I close and open the Jdeveloper, I can see the url for the WSDL imported into the Web server is changing http://stcfmw03.satyam.com:8021 / soa-infra/services/Tarak/synchronousBpel/bpelsync_client_ep? WSDL to http://stcfmw03.satyam.com:8021/soa-infra/services/Tarak/synchronousBpel/BPELsync.wsdl
    (3) when I open and see the url http://stcfmw03.satyam.com:8021 / soa-infra/services/Tarak/synchronousBpel/bpelsync_client_ep? WSDL I can see the soap as address * < soap: address location = ":8021/soa-infra/services/Tarak/synchronousBpel!1.0*soa_5cfb8416-c106-40a2-a53b-9054bbe04b9c/bpelsync_client_ep"/ http://stcfmw03.satyam.com > * "

    I do not understand why the end of SOAP contains "* soa_5cfb8416-c106 - 40 has 2-a53b-9054bbe04b9c" and this kind of url for soap address happens to the bpel process which I am on the server deployment.

    I checked the in Jdeveloper where webproxy is uncheck and the server is also up, but still I am experiencing because of the mistake of reading.

    Can someone please help to resolve the issue.

    I am using SOA 11 g 11.1.1.5 and Jdeveloper 11.1.1.5


    Thank you very much.
    Tarak

    Published by: user11896572 on January 17, 2012 17:22

    Hello

    When a service is not deployed as a 'default' on soa-infra, we see characters such as-* soa_5cfb8416-c106 - 40a 2 - a53b - 9054bbe04b9c appended to the end.  It is better for the service references that will be deployed as default of all time.

    A service can be defined as a default value either during deployment, or by setting it manually on the em console.

    Thank you

  • Not able to read the wsdl file while initiating the process

    I was able to deploy BPEL processes in the Production environment without any error. At the moment that I clicked on "Start" in Console of BPEL, he threw under the exception:


    I tried to access http://servername:9000/orabpel/default/XX_BPEL_INTF_MON/1.0/_XX_BPEL_INTF_MON.wsdl directly and I was able to access the wsdl page.
    I looked in my code given namespaces (http://schemas.xmlsoap.org/wsdl/ "namespace or the namespace" http://www.w3.org/2004/08/wsdl"), but he was not present.
    I did redeploying several times without a bit of luck.

    There are other BPEL process installed on the server. Here are the differences:
    1. I am start my process BPEL using the BPEL Console, others do so with some clients in java.
    2 exception watch URL wsdl to be http://servername:9000/orabpel/default/XX_BPEL_INTF_MON/1.0/_XX_BPEL_INTF_MON.wsdl containing "_". ("_XX_BPEL_INTF_MON.wsdl") Although it is without "_" (XX_BPEL_INTF_MON.wsdl) under the section of the WSDL location. However, I can access both using the browser.

    While everything works well in the DEV environment.

    Rescue me.


    Complete cycle of Oracle BPEL Process Manager
    An unexpected error occurred during the execution of your request. This is probably related to a defect in the product, Oracle BPEL Process Manager. We apologize you can post the error on the OTN forum and we will respond as soon as possible.

    Attachments:

    Update information:
    Oracle BPEL Server version 10.1.2.0.2 Build: 2196 construction time: kill Jan 10 12:31:53 UTC 2006 Build type: release the tag Source: BPEL_10.1.2.0.2_GENERIC_060110.1200


    Exception message:
    [javax.servlet.ServletException] α wsdl reading failure. Cannot read the wsdl to 'http://servername:9000/orabpel/default/XX_BPEL_INTF_MON/1.0/_XX_BPEL_INTF_MON.wsdl', because ' WSDLException: faultCode = INVALID_WSDL: document: http://servername:9000/orabpel/default/XX_BPEL_INTF_MON/1.0/_XX_BPEL_INTF_MON.wsdl is not a wsdl file or does not have an element root "definitions" namespace "http://schemas.xmlsoap.org/wsdl/" or the "http://www.w3.org/2004/08/wsdl" namespace. " Make sure that wsdl is valid. You must start the server of OraBPEL, or ensure that the related bpel process is deployed correctly.


    Trace of the exception:
    javax.servlet.ServletException: cannot read the wsdl. Cannot read the wsdl to 'http://servername:9000/orabpel/default/XX_BPEL_INTF_MON/1.0/_XX_BPEL_INTF_MON.wsdl', because ' WSDLException: faultCode = INVALID_WSDL: document: http://servername:9000/orabpel/default/XX_BPEL_INTF_MON/1.0/_XX_BPEL_INTF_MON.wsdl is not a wsdl file or does not have an element root "definitions" namespace "http://schemas.xmlsoap.org/wsdl/" or the "http://www.w3.org/2004/08/wsdl" namespace. " Make sure that wsdl is valid. You must start the server of OraBPEL, or ensure that the related bpel process is deployed correctly. at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:595) at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:537) at _ngDoInitiate._jspService(_ngDoInitiate.java:438) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121) at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267) at _displayProcess._jspService(_displayProcess.java:792) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222) at com.collaxa.cube.fe.DomainFilter.doFilter) DomainFilter.java:152) to com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663) to com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) to com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) to com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224) to com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) to com.evermind.util.ReleasableResourcePooledExecutor$ (ReleasableResourcePooledExecutor.java:192) MyWorker.run at java.lang.Thread.run(Thread.java:534)

    Thank you
    Nawnit

    Published by: user649251 on December 9, 2008 08:53

    Think something is stuck in the cache. I would cancel the deployment of the process of the console, then I bounce off the application server, and then redeploy.

    If this does not work, perform the same steps but after you cancel the deployment of remove the code from the file server bpel deployment. I forgot when this is in the 10.1.2.0.2 version but it will be in the House of bpel. If you do an ls - a it's a file hidden under unix. The file name will have lost garbage with the process name in the name. This should eliminate any past existence.

    see you soon
    James

  • Not able to read the text file several times - Bug?

    I open the Refnum to a text file by starting my software and I'll keep the file open until the software works. I read a text file when an event occurs. The problem that I'm facing here is when I read that the file 1st time Lily can't read the text of the file but when I read it to get even empty string only. Could someone help me understand why this happens.

    A race condition?  What's with the two readings at the same time?  Keep the opened file is not a problem, but remember that there is a file pointer.  If you read empty strings, it's probably because you're at the end of the file.  Use Set leader VI to set Position is for the beginning of the file.

  • Error message says that my system doesn't have the ability to read (.) Not able to read the incoming faxes and outgoing of the TIF files).

    Original title: MS Fax.

    I try to read the incoming or outgoing faxes. A message says that my system doesn't have the ability to read (.) TIF files).

    How to solve the problem?

    Thank you

    Alex

    The 'Support' engineer's response is the dumbest answer I've seen in a long time.

    At least as much as I understand your problem, you have no problems, send or receive faxes, but rather, you can not view the faxes that have been sent or received.

    You need to get Windows Picture and Fax Viewer works again (or get a new app to view TIF files).

    Click Start, then click Run, and then type the following in the "Open" box and click OK

    regsvr32 shimgvw.dll

    Don't forget the space after the 32

    A dialog box should include the following:

    "DllRegisterServer in SHIMGVW. DLL succeeded.

    If it does not, type the following in the box 'open '.
           
    regsvr32 %windir%\system32\shimgvw.dll

    And if that fails, go to C:\Windows\system32 and check that there is a file called shimgvw.dll (or does not).

  • not able to pass the table name as parameter in the function

    Hello

    I am not able to move from tablename as parameter. I use the below function.
    -------------------------------------------------------------------------------------------------

    function count_test (tabname varchar2) return number is
    l_count number;
    Start

    Select count (*) IN the tabname FROM l_count;

    RETURN l_count;
    END;

    You can not do with static SQL.

    The only way is to do it with dynamic SQL:

    EXECUTE IMMEDIATE ' select count (*) FROM ' | tabname INTO l_count;

    Kind regards.
    Al

    Published by: Alberto Faenza 10 may 2012 01:44
    Misspelling

  • Not able to find the tables of IOM

    Hi xperts.
    I use OIM9101 and sql developer to access the db. I created a connection, but when I'm looking the IOM tables, I'm not able to find a... just the tables précréé

    Any help...

    Mahi

    Then its fairly simple. Connect with username = oimuser and password = everything you used during installation

    But if its still throw an error, then you need either by putting the wrong password. It confirms once more

    Thank you

    Sunny

  • Not able to view the tables.

    Hi all

    I've created a few tables with a user id in oracle and I give all subsidies on this table to another user id

    GRANT ALTER, DELETE, INSERT, SELECT, UPDATE, WHEN UPDATING OF COMMIT, QUERY REWRITE, DEBUG, FLASHBACK ON THE TABLE ANOTHER_USER;

    When I login into oracle with a different user name, I am able to do all the operations on the table, but I don't see the table in the list of the table which shows the connection. I also see that when I ask my user_tables table, this table is empty.

    Is there a way I can make it visible to the user of another.

    Thank you
    Lee

    You should be able to see your table under the node of other users, or by using the new schema browser feature if you use SQL Developer 3.0

  • Windows viewer not able to read the DNG format generated by camera Fujifilm X 30 of the RAF

    Hello. Since September, I have a problem. Until then, it had not occurred to me, but since then, when converting to DNG RAF files generated by my camera Fujifilm X 30, trying to visualize the viewer in Windows, it closes automatically.

    I also have a Nikon D7100 and generated the NAVE of Nikon, there is no problem. I have neither the conversion of the Fujifilm RAF generated through August 2015.

    The problem I've had so far with the Viewer Windows 7, and I have yet to upgrade to Windows 10.

    Please pray Adobe LR some techniques help me find a solution.

    Thank you.

    Hello

    I was able to view your DNG using the Windows on Windows 7 photo viewer. The first thing I did was to install the free DNG for Windows codec. A Setup program is located at the following link:

    Adobe DNG Codec: For Windows: Adobe DNG Codec 2.0

    Hope that helps,

    -Chris

  • Not able to read the BB10 Dev Alpha contacts (door Android app)

    Hi friends,

    I wore my Android app that exports the contacts into a CSV file that is stored on the SD card.

    When I run this app on my device BB10 Dev Alpha B, it creates an empty file.

    I guess that the BB10 Android runtime does not support the access contacts in BB10.

    Is someone can shine some light on this issue?

    Thank you

    Hemant

    Hello world

    I hope I can clarify what is supported in the BlackBerry Runtime for BlackBerry 10 Android applications when it comes to support of Contacts.

    Currently, support is in place to add an entry in the Contacts list to either contact existing, or by adding a new contact to the list. This can be understood as write-only access. We do not query the list of contacts or save existing contacts. There was some security issues behind the decision to only allow this access level, but as always, we are open to discussion of different use cases.

  • Tecra A3 - 152 - not able to read CD - R (or CD - RW), burned by itself or another PC

    Hello

    My TECRA A3-152 offers the CARPET * a DVD-RAM UJ - 831S player (1.40 firmware version) with the Microsoft (dated the 1.07.2001) 5.1.2535.0 driver
    The laptop is not able to read the CD - R or CD - RW engraved with any other PC (or alone). The CD is reported as empty.

    However, the reader is able to read commercial CD - R with SW or sounds or other stuff.
    After several hypotheses about the SW problems or compatibility issues, I intend to replace the drive with another.

    Any suggestion?

    Thanks - regards
    Antonio Giarrusso

    Hello

    Maybe it s only a problem of compatibility. In my experience not on each CD or DVD is compatible. I mean that not every CD manufacturing is supported by the firmware and so this question might appear.

    But let's try some common tips.
    First of all, I would recommend delete Sonic record now and the DLA.
    Then restart the computer and enter the registry.

    1. in the registry editor, expand my computer, and then expand HKEY_LOCAL_MACHINE.
    2. expand SYSTEM, and then expand CurrentControlSet.
    3. expand Control and class.
    4. under category, click on {4D36E965-E325-11CE-BFC1-08002BE10318}.
    5. in the right pane (topic area), click UpperFilters and delete. Click then click LowerFilters and delete is also.
    6. click on Yes to confirm the deletion.

    After this procedure, restart the laptop and try to read the CD

  • Not able to see the value of the item description-&gt; main classification

    Hello group,

    I configured the responsibility of China. From now on, I'm not able to see the lov primary classification in the item Description screen.

    China HRMS Manager-> Total Compensation-> Description-> primary Classification (column) element the only value that is gathering is "initialization of balance."

    Where we, the responsibility, I am able to see more options. Can someone suggest me the reason for the same.

    Thank you

    It's 11.5.10 version

    Hi please refer to the below metalink note...
    566421.1 setting form element has a single value in the primary Classification balance initialization
    See you soon
    Ganesh

  • I'm not able to see the file in the facebook using Windows Phone group.

    I'm not able to see the file in facebook groups. Using Facebook for windows phone v5. Someone please help me

    Hello

    It seems that your problem is specifically related to Facebook.

    I suggest you contact the Support of Facebook for support on this.

    Please do not hesitate to answer, in the case where you are facing in the future other problems with Windows.

  • Windows computer not able to find the software adobe reader XI? I have tried repairing, did not

    Windows computer not able to find the software adobe reader XI? I have tried repairing, did not

    Hi Kenneth,

    Please try & download Adobe Reader using this link Adobe - Adobe Acrobat Reader DC Distribution.

    Let me know if the problem persists.

    Kind regards

    Nicos

Maybe you are looking for