How do I put a label in a null field in the result set of a group-by query

I run the query:
select section, count(*) from nparcel group by section
and get the result
section1 100
section2 200
section3 300
400
I would like to modify the query to put a label, perhaps 'BLANK', in the last returned row. Is that possible and if so how.
Thanks in advance for helping.

Hi,
In SQL*Plus you have some additional options, that apply to all queries until you override them or end the session.
COLUMN section NULL BLANKapplies only to the column called "section".
SET NULL BLANKApplies to all columns.

Similar Messages

  • How to Colour the fields in the Result Set of the query

    Hi all,
    I am having a requirement wher the user want to view the queries results with some colour to the char in the result set.
    suppose customer is the row he want to view some customers with one color and some with different color.
    Is it possible in Bi.
    If so Plz let me know
    Regards

    Hi Priya,
    for the macro thing, you will have to create a workbook and store your query into it, because macros are attached to only workbooks and not queries.
    in the workbook screen (i.e. excel), go to tools --> Macro --> Visual Basic Editor. or simply press Alt + F11. this will take you to macro editor screen.
    you can use code that may look something like below to color the columns, you can also give constant column if they are fixed.
    sub ColorColumns(rngTarget As Range, _
        intColor As Integer)
    Dim c As Long
        With rngTarget
            .Interior.ColorIndex = intColour
            Next c
        End With
    End Sub
    You will find some easy and short snippets for this.
    Regards,
    Purvang

  • I have a 2008 macbook and i lost the start up disk and forgot the password. how can i put it back to factory mode and change the password

    i have a 2008 macbook and i lost the start up disk and forgot the password. how can i put it back to factory mode and change the password

    Check out this article http://gigaom.com/apple/reset-os-x-password-without-an-os-x-cd/

  • I am wanting to publish a website created in iweb via a third party web host. How do I put a password for anyone wishing to visit the mysite?

    I am wanting to publish a website created in iweb via a third party web host. How do I put a password for anyone wishing to visit the mysite?

    You create the usernames and passwords where you host your website. Made with or without iWeb.
    Usually it's done in the controlpanel where you manage your account.
    If you cannot do it there, you'll have to do it yourself. See this post :
    https://discussions.apple.com/message/16014940#16014940
    And what is the purpose of password protection for ANYONE who vistis your site?

  • How do I put a collection in a readonly report on the fly

    How do I put a collection in a readonly report on the fly??
    Thanks, examples if you can please.

    Doug,
    You can simply create a report region and use that to display the records in the collection:
    SELECT
      c001,
      c002,
      c003,
    FROM
      apex_collections
    WHERE
      collection_name = 'YOUR_COLLECTION_NAME'Thanks,
    – Scott –
    http://spendolini.blogspot.com/
    http://sumnertech.com/

  • I'd like to know how can u put letters on caps without holding all times the shift key?

    I'd like to know how can u put letters on caps without holding all times the shift key?

    Settings>General>Keyboard>Enable Caps Lock>On. Then just tap the shift key quickly.

  • How can I use ONE Text search iView to event/affect mutliple Result Sets?

    hello everyone,
    i have a special situation in which i have 6 flat tables in my repository which all have a common field called Location ID (which is a lookup flat to the Locations table).
    i am trying to build a page with a free-form text search iView on Table #1 (search field = Location ID).  when I execute the search, the result set for Table #1 is properly updated, but how do I also get Result Set iViews for Tables #2-6 to also react to the event from Text Search for Table #1 so that they are updated?
    i don't want to have to build 6 different text search iViews (one for each table).  i just want to use ONE text search iView for all the different result set tables.  but, in the documentation and iView properties, the text search iView doesn't have any eventing.
    if you have any suggestions, please help.
    many thanks in advance,
    mm

    hello Donna,
    that should not be a problem, since you are detailw with result sets and detail iviews because custom eventing can be defined for those iviews.
    Yes, it says "no records" found because an active search and record selection havent' been performed for it (only your main table does).
    So, yes, define a custom event, and pass the appropriate parameters and you should be fine.
    Creating a custom event between a Result Set iView and an Item Details iView is easy and works. I have done it.
    See page 35 of the Portal Content Development Guide for a step-by-step example, which is what I used.
    For my particular situation, the problem I'm having is that I want the Search Text iView's event (i.e., when the Submit button is pressed) to be published to multiple iViews, all with different tables.  Those tables all share some common fields, which is what the Search iView has, so I'd like to pass the search critera to all of the iViews.
    -mm

  • How can I connect my Mac Book Pro (year 2008) to the TV set through  HDMI? I've seen a DVI to HDMI iwire but I'm no sure that it is correct. Could anyone help me? Thank you very much.

    How can I connect my Mac Book Pro (year 2008) to the TV set through  HDMI? I've seen a DVI to HDMI iwire but I'm no sure that it is correct. Could anyone help me? Thank you very much.

    I do not know the iWire adapter, but I use an inexpensive ($3) DVI to HDMI adapter from Monoprice, along with a regular HDMI cable:
    http://www.monoprice.com/products/product.asp?c_id=104&cp_id=10419&cs_id=1041902 &p_id=2029&seq=1&format=2
    Be aware that this will only transfer video. You Macbook Pro cannot combine audio through DVI to HDMI. You will need to listen to the audio through the Mac speakers, or attach speakers or a sound system to the Mac earphone jack, or determine if your TV has the ability to accept external sound from the Mac while showing video through HDMI (few can).

  • How can I use a Lookup task to lookup from my SQL Result set and have a join

    So in my Control Flow, I have an Execute SQL Task which gets my Table result set. I then have a Foreach Loop Container that iterates through the result set and a Data Flow. The first task in the Data Flow is an OLE DB Source SQL Command that retrieves data
    columns associated with my result set. I then do a Derived Column so I can SUBSTRING from one of my data columns and now I want to perform a Lookup to my Application Database.
    How do I code my Lookup task to utilize my SQL Result set variable and match on it? I cannot use the GUI for the Lookup task as my Lookup has to have some JOINS in it.
    Thanks for your review and am hopeful for a reply.

    Can you expand on that? I'm sorry but I am new and a novice to the SSIS world and I want to do this as best I can and as efficiently as I can. Are you saying that Rajen's way suggested above is the way to go?
    A little background....external data from a 3rd party client. I'v staged that external data to a SQL Server staging table. I have to try and match that data up to our database using SSN, DOB, and Gender...and if I can't match that way then I have to try
    and match by Name. I need to make sure that there is only one and only one account for that match. If I cannot match and match one and only one, then I'll create rows on a DataAnomaly Table. If I do match, then I have to check and make sure that there is only
    one and only one Member span for that match. Similarly handle the data anomaly and then check and make sure there is a "Diabetes" claim and similarly handle the DataAnomaly accordingly.
    That's where I'm at. Sooooo are you saying to use Rajen's suggestion? I don't think I can do that because I need multiple SQL tasks and I cannot connect multiple OLE DB Source tasks.
    Any help and suggestions are greatly appreciated.
    Thanks.

  • How to add a Field to the Result List in Activity

    Hello Experts !
    We are on CRM 7.0. I want to add a field to the Result List of Activity (Component: BT126S_APPT / View: ApptSR). This field is the address of the "Employee Responsible".
    So, how can I add a field to the Result List? AET is not a relevant tool for us because we don't want to create an attribute it already exist in the BOL. We just have to enhance the result list with BOL existing attributes.
    Also, after I add the field, I will need to populate my field with Data via some method.
    Thanks in Advance to all !
    Mariano.-
    SAP.

    Hi Mariano,
    The component was missing some technical data. Implement sap notes 1226612, 1363752, and then follow the manual procedure shown below.
    u2022     Execute transaction SE11.
    u2022     Choose the Radio button "Data Type" and enter value
                  "CRMST_QUERY_R_ACT_BTIL" in the Data Type field.
    u2022     Click on "Change" button.
    u2022     Position the cursor before the Includes added to this structure. Click
                 On the "+" button to add a new attribute.
    u2022     Enter the following details in the newly added blank row.
         Component: PERSON_RESP_LIST
         Component Type: CRMT_PERSON_RESP_LIST.
    u2022     Save the changes and activate the structure.
    u2022     Add the "Employee Responsible" field to the View configuration.
    u2022     Open the BSP application BT126S_APPT.
    u2022     Double-click on the view BT126S_APPT/ApptSR in the left side panel.
    u2022     Choose tab "Configuration" in right side panel.
    u2022     Choose the right configuration by using the "Choose Configuration" button.
    u2022     Click on the Edit button.
    u2022     Add the "Employee Responsible" attribute from the "Available fields" list to "Displayed fields" list.
    u2022     Save the changes
    Regards
    Krishna

  • My iphone 4s is saying NO SERVICE.I tried to put it on airplane mode,tried to reset the network setting and also tried to restore my phone but none of the above things worked.Do you guys have any idea what should i do now?

    My iphone 4s is saying NO SERVICE.I tried to put it on airplane mode,tried to reset the network setting and also tried to restore my phone but none of the above things worked.Do you guys have any idea what should i do now?

    Hi sunnylordz,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you have no service on the iPhone. It looks like you have already done some troubleshooting. There is one step you did not mention trying that i think is worth trying. 
    If you see No Service in the status bar of your iPhone or iPad - Apple Support
    Remove the SIM card. If the SIM card is damaged, worn, or bent, or if it's too big or small for the SIM tray, contact your carrier for a new one. Then reinsert the SIM card.
    Cheers,
    Mario

  • How to return the result set of multiple select statements as one result set?

    Hi All,
    I have multiple select statements in my stored procedure that I want to return as one result set 
    for instance 
    select id from tableA
    union 
    select name from table b 
    but union will not work because the result sets datatypes are not identical so how to go about this ?
    Thanks

    You have to CAST or CONVERT (or implicitly convert) the columns to the same datatype.  You must find a datatype that both columns can be converted to without error.  In your example I'm guessing id is an int and name is a varchar or nvarchar. 
    Since you didn't convert the datatypes, SQL will use its data precedence rules and attempt to convert name to an int.  If any row contains a row that has a value in name that cannot be converted to an int, you will get an error.  The solution is
    to force SQL to convert the int to varchar.  So you want something like
    select cast(id as varchar(12)) from tableA
    union
    select name from tableb
    If the datatypes are something other that int or varchar, you must find a compatable datatype and then convert one (or both) of the columns to that datatype.
    Tom

  • How to hold the result set

         We have a GUI swing screen in which we have navigation buttons.
         when the user clicks the previous ,next, last,first buttons we have to show the records accordingly.
         The min. size of the database is around 1 million.and each row has 60 columns.
         Our approach is screen--->servlet-->ejb beans --->database.
         since the database is huge how to hold the values, and where, without affecting the performance.
         If we get the resultset it holds all the data.since the data size is huge,we are looking for a solution.The user may browse through the data ,edit the data and delete the data.
         we have to perform accordingly. Also, if, for example, user1 is seeing record no.1 & user 2 has modified record no.3 in the meanwhile, when user1 goes to record no.3, he should see the
         modified record. In short, the user should always see the latest values.
         please give us the best approach to solve this problem.
    Also this is in a multi user environment.

    It seems like you need to look at threads to update current values in the display and narrow the result set that you retrieve to match the criteria needed for display. You might consider making the method to change values a syncronized one.

  • TS1398 My Wi-fi on/off button in setting has stopped working and I can't even attempt to find anything does anyone know how I can fix it?? I've already reset the phone setting, network and factory settings

    My Wi-fi on/off button in setting has stopped working and I can't even attempt to find anything does anyone know how I can fix it?? I've already reset the phone setting, network and factory settings

    can you see the wi-fi address in the about? if it show N/A, your iphone needs to be repaired.
    if your ios is 5.1.1 or you can see the wi-fi address,you could try to  connect your iphone to the itunes to restore and update.

  • How to exclude the XML declaration from each row of the result set?

    Hi,
    I have a table with an XMLTYPE column and would like to SELECT a set of rows. How can I exclude the XML declaration from each row in the result set? My query currently looks like this, I'm executing it through Spring JDBC:
    SELECT XMLSerialize(CONTENT t1.xmltext) FROM myschema.event t1 WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e") ORDER BY t1.time DESC
    After selecting, in my application I convert each row into a String and concatenate all rows into one big string in order to parse it into a DOM model. I get a parser exception (org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed) because there are multiple XML declarations in my big string. Of course, I could manually check the String of each row whether it starts with the XML declaration, but it would be nicer if I could instruct the DB not to add it in the first place. Is there a way?
    Thanks!
    -- Daniela

    Hi,
    A couple of options I can think of :
    SELECT XMLSerialize(CONTENT
    XMLtransform(t1.xmltext,
      xmltype('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output omit-xml-declaration="yes"/> 
    <xsl:template match="/"><xsl:copy-of select="*"/></xsl:template>
    </xsl:stylesheet>')
    FROM myschema.event t1
    WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
    ORDER BY t1.time DESC
    ;or simply,
    SELECT XMLSerialize(CONTENT
      extract(t1.xmltext,'/')
    FROM myschema.event t1
    WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
    ORDER BY t1.time DESC
    ;

Maybe you are looking for

  • Contract Release strategy

    Dear Guru, We have three types of contracts like A type, B type, C type......with these three types of contracts we have release strategy with different conditions.                For A type of contract : Release Strategy should trigger on cost cente

  • OAM11g integration issue

    Dear All, I am trying to integrate OAM11g with OBIEE11g. The resource is https://host/analytics/saw.dll where <host> is load balancer here is the mapping within http.conf <VirtualHost *:7777> ServerName https://host:443 ServerAdmin [email protected]

  • Given IP and port number, Is there a way to find the service name?

    Hi, In the Java language, if I am given the IP and the Port number, is there way to lookup the corresponding service name? thanks, grace

  • Need Help on where clause condition

    Hello All, Thanks in advance:: I have below SQL query which is returning 1500 records when i dont use any condition in where clause(Please see the query below); SELECT POS_TYPE, POS_ID, SUB_ACNT_ID, CHRG, DOC, NULL, ACNT_RLN, ACCOUNT_FLODERS_VER, DM_

  • Want to display multiple rows of internal table on sap script

    hi friends,               i have created element in window.and in report i have called all functions as open_form,start_form,write_form,end_form,close_form. enclosing  write_form function in 'loop at itab' and 'endloop',,,,gives error start_form miss