Include zeros in count of groups

The issue I am having is with Oracle, and I think that it applies to ANSI SQL too. Please excuse me for not taking the time to do that research.
I have a table as follows
Field1 Field2
A______1
A______4
B______[null]
B______[null]
C______[null]
I am writing a query on this table as follows
SELECT field1, COUNT(field2)
FROM table
WHERE field2 BETWEEN 1 AND 3
GROUP BY field1
which gives the result
Field1 Count(Field2)
A______1
The problem is that I would like the result to look like
Field1 Count(Field2)
A______1
B______0
C______0
but I can't figure it out. I have tried the various functions you can do with count (ALL, *, DISTINCT), as well as NVL on both fields, but I either get errors or the same result. I also tried a really wacky idea of an outer self join, but that didn't work either.
Any suggestions?

Perhaps I'm missing something, but wouldn't you just want
SELECT field1, COUNT(field2)
  FROM table
WHERE field2 BETWEEN 1 AND 3
    OR field2 IS NULL
GROUP BY field1Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • How to include the timeline counter in the sequence

    PPCS4
    This sounds asif it ought to be simple, yet I can't find a way to do it!
    How do I show the timeline counter in the  sequence?
    I want to create a DVD of project and include the time count on screen.
    Can anyone help?
    Cheers

    Place the sequence containing your editing timeline into a new sequence.
    In the Effects panel, type "timec" into the search box.
    Apply the Timecode effect to your sequence clip.
    Export via Encore to DVD.  You may need to render first to see the timecode overlay depending on the format of your source footage.
    Remember that F1 is your friend and that Google is pretty helpful, too.

  • Count(*) with group by max(date)

    SQL> select xdesc,xcust,xdate from coba1 order by xdesc,xcust,xdate;
    XDESC XCUST XDATE
    RUB-A 11026 01-JAN-06
    RUB-A 11026 05-JAN-06
    RUB-A 11026 08-JAN-06
    RUB-A 11027 10-JAN-06
    RUB-B 11026 02-JAN-06
    RUB-B 11026 08-JAN-06
    RUB-B 11026 09-JAN-06
    RUB-C 11027 08-JAN-06
    I want to make sql that result :
    XDESC     COUNT(*)
    RUB-A     2
    RUB-B 1
    RUB-C 1
    Criteria : GROUPING: XDESC XCUST AND MAX(DATE)
    bellow mark *** that was selected in count.
    XDESC XCUST XDATE
    RUB-A 11026 01-JAN-06
    RUB-A 11026 05-JAN-06
    RUB-A 11026 08-JAN-06 ***
    RUB-A 11027 10-JAN-06 ***
    ---------------------------------------------------------COUNT RUB-A = 2
    RUB-B 11026 02-JAN-06
    RUB-B 11026 08-JAN-06
    RUB-B 11026 09-JAN-06 ***
    ---------------------------------------------------------COUNT RUB-B = 1
    RUB-C 11027 08-JAN-06 ***
    --------------------------------------------------------COUNT RUB-C = 1
    Can Anybody help ?
    I tried :
    select xdesc,max(xdate),count(max(xdate)) from coba1 group by xdesc
    ERROR at line 1:
    ORA-00937: not a single-group group function
    Thank

    This one is duplicate. see the following link
    Count(*) with group by max(date)
    Thanks

  • How to get count of group of current login user if AD Group is added in SharePoint Group?

    My Client has 2 SharePoint Application. For the AD Users they have created AD Group and added users in that AD Group as per requirement. Later AD Group is added in SharePoint Group. When I'm trying to fetch Current User Group count, I can able to get the
    count of Groups using below statement.
    int groupCount = SPContext.Current.Web.CurrentUser.Groups.Count;
    Above Statement, returns always 0 value if I tried with User who are added in AD Group and if I add AD User and then it will return the exact count.
    Please suggest solution to get Count of Group of Current User. My Application contains more than 60 SharePoint group.

    Hello,
    I believe your code doesn't count those AD group users until they login at least once. If this is the case then try to use "SPUtility.GetPrincipalsInGroup" as suggested in below post:
    http://stackoverflow.com/questions/4314767/getting-members-of-an-ad-domain-group-using-sharepoint-api
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Couldn't include CNTN01 in z function group created at SE80

    Dear All,
             I am involved in workflow development for determining agent for a step.
             But I couldn't include <CNTN01> in z function group created at SE80?
             How to do so?I will be grateful for your help.
    Thanks,
    S.Suresh

    Hi Samson,
                   Thanks for your reply.
                   As you stated, <CNTN01> is found at the include file LSWEATOP under the function group SWEA.
                   It implies that I need not include ,<CNTN01> in my z function group?
    Thanks,
    S.Suresh

  • ORA-24333: zero iteration count  Cause: An iteration count of zero was specified for the statement Action: Specify the number of times this statement must be executed

    Get the following error from Oracle 
    ORA-24333: zero iteration count
    Cause: An iteration count of zero was specified for the statement
    Action: Specify the number of times this statement must be executed
    Any suggestions on whether is this a Oracle bug or if not what should be set to avoid this failure.

    Hello get this from executing the following.
    Occurs intermitently.
    select MAX(LENGTH(lxVal)) from lxString_74501fb6 where lxType=910231053
    Find the MaxLenght(LxVal) returned is null for this query.
    Did google it but says the iterator not initialized. But not the case here
    Thanks

  • Report Builder ORA 24333 Zero iteration count

    The following query works fine in SQL environment
    Break on team_name;
    select substr(st.team_name, 1, 20) team_name, sst.team_id, sst.staff_sso
    from
    ssa_staff_team sst, ssa_teams st
    where st.team_id = sst.team_id(+)
    order by team_name;
    But when I cut and paste it into "SQL Query Statement" of Oracle Report it does not work. the error message is ORA-24333 - zero iteration count ==> Break on TEAM_Name
    What did I do wrong"
    How do I fix this?

    Just follow the report wizard and it will ask you on which column(s) to break.
    Don't try to do it afterwards, because that is a pain in the .... You will have to modify your data and layout model yourself if you don't use the wizard.

  • New iTunes zeroing Play counts?

    Immediately after I installed the new iTunes, I noticed that the play counts on about 3% of my music library had been reset to zero. There was apparently no rhyme nor reason - new songs, old songs, different genres. I informed Apple through the `feedback on iTunes' menu item, and studiously set about trying to adust those play counts manually, to better reflect how often I had listened to the 700+ songs involved. 
    Imagine my dismay when I realized in the last day or two that this was not a one time occurrence! That is, the number of songs with a zero play count has increased by 50 per cent in three or four days, to over 1000 songs. Needless to say, I will quit trying to recreate play counts, as it is clearly a losing battle. Count me as another dissatisfied customer of this iTunes update.
    If this is also a problem for you, would you please notify Apple officially? That way, maybe they will fix this problem in the hoped-for fixed version of iTunes. Thank you.

    I have the same problem like you. iMac with Yosemite and iPhone 6. A song, added 2 months ago has 205 counts. Other songs I have for years ago have only 80 counts. And there are other songs, where the same thing is happening. And its starts mixing up everything at my library -.-
    Today I talked to Apple Care at the phone. He never heard of that problem. And talked with a colleague. Result: Nothing. He can not promise, that a future update either of Yosemite (e.g.10.10.1) or iTunes will solve the problem.
    He talked about editing the itunes library.xml document. However, I have to do this on my own because Apple doesn't provide this solution. And if that helps: Nobody knows. Since I am not an expert, i can't do that.
    Other options: A new library or reseting al counters.
    All in all: No solution that helps.
    I may start reseting some of the counters that are most crazy, and hope for an effective update. (Sorry for potential english mistakes )

  • Is their any way to include your play count on a song, when copying?

    I have a POS computer right now. It's a Dell Dimension 3000, with the Stock 40GB HDD. But I bought a 250GB HDD which I plan to take with me to my new computer that I plan to get, and i'm not having any trouble with copying the songs their, but is thier any way to include the Play Count of the song, so that I will have it on my new PC?
    Thanks

    There is nothing within DW that can do this for you. You also cannot go straight from HTML to an emailed XML file, which is likely why you couldn't find anything online about it.
    You will need to find out what server scripting language(s) your hosting company supports (php is a common one).
    Once you know that, you'll need to create/purchase/download a script in that language that you attach your html form to in order for it to be converted by your server and sent to your email as an XML file, again php is a very common choice for this.
    As Murray suggests, there are a lot of sources online once you know which language you can use.

  • Get the select count(*)including Zero '0'

    Hi Gurus,
    I gotta problem here, I have this query:
    SELECT COUNT(t.column1) AS mycount,
    TO_CHAR(t.creation_date,'MONTH') AS themonth
    FROM table1 t
    WHERE t.creation_date BETWEEN TO_DATE('01/01/2011') AND TO_DATE('09/07/2011') AND t.column1 > 0
    GROUP BY TO_CHAR(t.creation_date,'MONTH')
    ORDER BY TO_DATE(TO_CHAR(t.creation_date,'MONTH'),'MONTH')
    then I get this result from query
    MYCOUNT | THEMONTH
    JANUARY | 3
    MARCH | 6
    APRIL | 5
    MAY | 9
    JULY | 2
    and what I need its kind of this
    MYCOUNT | THEMONTH
    JANUARY | 3
    FEBRAURY | 0
    MARCH | 6
    APRIL | 5
    MAY | 9
    JUNE | 0
    JULY | 2
    what I'm doing wrong ? or what can I add to the code? please I hope you can help with this one.
    Best Regards,
    Mentor

    mentor wrote:
    Hey and when I dont have a range of dates, and only have many id's how can I get the result ?
    SELECT  NVL(COUNT(column1),0) mycount,
            TO_CHAR(TRUNC(creation_date,'MM'),'MONTH') themonth
      FROM  (
              SELECT  column1,
                      creation_date
                FROM  table1
                WHERE column_id IN (2,3,12,67,49,182)
                  AND column1 > 0
             UNION ALL
              SELECT  NULL column1,
                      ADD_MONTHS(min_creation_date,LEVEL - 1) creation_date
                FROM  (
                       SELECT  TRUNC(MIN(creation_date),'MM') min_creation_date,
                               TRUNC(MAX(creation_date),'MM') max_creation_date
                         FROM  table1
                         WHERE column_id IN (2,3,12,67,49,182)
                           AND column1 > 0
                CONNECT BY ADD_MONTHS(min_creation_date,LEVEL - 1) <= LAST_DAY(max_creation_date)
      GROUP BY TRUNC(creation_date,'MM')
      ORDER BY TRUNC(creation_date,'MM')
    / >
    and another question, how can I get two counts of the same column where the condition its diferent ?
    SELECT  NVL(COUNT(CASE column2 WHEN 'JOHN' THEN 1 END),0) count_a,
            NVL(COUNT(CASE column2 WHEN 'MICHAEL' THEN 1 END),0) count_b,
            TO_CHAR(TRUNC(creation_date,'MM'),'MONTH') themonth
      FROM  (
              SELECT  column2,
                      creation_date
                FROM  table1
                WHERE column2 IN ('JOHN','MICHAEL')
             UNION ALL
              SELECT  NULL column2,
                      ADD_MONTHS(min_creation_date,LEVEL - 1) creation_date
                FROM  (
                       SELECT  TRUNC(MIN(creation_date),'MM') min_creation_date,
                               TRUNC(MAX(creation_date),'MM') max_creation_date
                         FROM  table1
                         WHERE column2 IN ('JOHN','MICHAEL')
                CONNECT BY ADD_MONTHS(min_creation_date,LEVEL - 1) <= LAST_DAY(max_creation_date)
      GROUP BY TRUNC(creation_date,'MM')
      ORDER BY TRUNC(creation_date,'MM')
    / SY.

  • Is there a way to not include zero values in sums and an average?

    I'm working on a new performace evaluation & would like to sum the score of each line, then get an average of the total scores.
    example:  stength (1 value), Solid Performer (2 value), Performer (3 value), Recommend Development (4 value), N/A (zero value)  then a total score of all the values, not including the zero value. 
    Then an average score of all the scores given.
    Hope this makes sense! 
    Thanks in advance for the input!!!

    If you use the calculation option "The field is the ____ of the following fields:", nulll values and zero values are included as zero and the number of number of items use is the number of fields selected.
    If you want a different calculation, then you will have to write a custom script to sum and count the fields you want to include in the calculation.

  • Function count() meets group by

    Hi guys,
    I got an application error, and the root cause is like below, not sure if anyone have same experience:
    We will validate the return row count, and it's tricky that the old code was LIKE:
    SELECT COUNT(1) FROM table_name WHERE 1 != 1;
    0
    the output is only one row.
    BUT, when we add a "GROUP BY", why it doesn't return any record:
    SELECT COUNT(1) FROM table_name WHERE 1 != 1 GROUP BY col_name;
    output is nothing.
    Why the result is different with "GROUP BY"?
    Edited by: Wang, Chen on Jul 4, 2012 7:31 PM
    Edited by: Wang, Chen on Jul 4, 2012 7:44 PM

    Hi,
    The COUNT() function (and other aggregate functions) works exactly as described in Oracle documentation. It is not commonly known behaviour however it is well documented in standard Oracle documentation. Yes, there is a very slight difference how aggregate functions are evaluated with and without GROUP BY clause.
    Oracle® Database SQL Language Reference 11g Release 2 (11.2)
    Aggregate Functions
    Aggregate functions return a single result row based on groups of rows, rather than on single rows. Aggregate functions can appear in select lists and in ORDER BY and HAVING clauses. They are commonly used with the GROUP BY clause in a SELECT statement, where Oracle Database divides the rows of a queried table or view into groups. In a query containing a GROUP BY clause, the elements of the select list can be aggregate functions, GROUP BY expressions, constants, or expressions involving one of these. Oracle applies the aggregate functions to each group of rows and returns a single result row for each group.
    If you omit the GROUP BY clause, then Oracle applies aggregate functions in the select list to all the rows in the queried table or view. You use aggregate functions in the HAVING clause to eliminate groups from the output based on the results of the aggregate functions, rather than on the values of the individual rows of the queried table or view.So if you have the GROUP BY clause then Oracle will first apply the WHERE clause to filter out records, then it will form groups, i.e. look for each distinct value of col_name and finally it will apply the aggregate function to each group of rows and return a single result row for each group. Because after evaluation of WHERE 1 != 1 there is nothing left (zero records) then there will zero groups formed and there will be one row returned for each of zero groups -> no rows returned.
    It works differently when you omit the GROUP BY clause. Oracle applies aggregate functions to all the rows in the queried table or view. If there is no GROUP BY then it is known upfront that Oracle will have exactly one group of rows. So there is already one group of rows before WHERE clause is evaluated. And you will always get this one row returned for aggregate functions.
    This is not a bug. This is by design. It works as it should and as it is documented. It is a nuance of SQL language that is not commonly known or frequently forgotten, but it is not a problem of Oracle or SQL language.

  • Count(field) group by having changed to an analytic function

    Goal: Be able to show columns with data not in the group by clause.
    I couldn't find this on the 'net either by looking here or by googling for it (unless I'm looking for the wrong thing). I'm doing a regular:
    select fielda, count(fielda)
    from some_table
    group by fielda1
    having count(field1) > 1;
    to find out where I have duplicates in a table (fielda). I get fielda and the count of those records back (ie X, 2). However, I want to add several more fields that may or may not be different for each of those records.
    For example:
    1 record has fielda = X, field2 = Test, field3 = Oracle, field4 = Unix
    1 record has fielda = X, field2 = Testa, field3 = Sybase, field4 = Windows.
    I want to be able to have the following output:
    X, 2 (count of records with fieldA = X), Test, Oracle, Unix
    X, 2 (count of records with fieldA = X), Testa, Sybase, Windows
    I'm not sure if this is one of those where I have to do a subquery on or not. Any ideas?
    Thanks as always!
    Vic

    Sorry, I misread your statement - it is poorly formatted. Besides incorrect use of aliases you are referencing columns that are not in inline view, therefore you must include it there:
    select  nsn,
            item_type_name,
            item_type_id,
            date_time_added,
            function_name
      from  (
             select  it.nsn,
                     it.item_type_name,
                     it.item_type_id,
                     it.date_time_added,
                     fn.function_name,
                     count(*) over (partition by it.nsn) cnt,
                     it.item_type_cat_id,
                     ic.item_category_id,
                     ic.function_id ic_function_id,
                     fn.function_id fn_function_id
               from  item_types it,
                     item_categories ic, functions fn
               where it.nsn is not null
                 and it.item_type_cat_id = ic.item_category_id
                 and ic.function_id = fn.function_id
      where cnt > 1
        and nsn is not null
        and item_type_cat_id = item_category_id
        and ic_function_id = fn_function_id
    order by nsn;SY.

  • TSQL query to calculate Count / Sum grouping by date on a Pivot Table

    Hi All
    I need help to group the pivot table output to group by dates and sum/count the values. I have a table like shown below.
    Date
    Student 
    Subject
    Hunt
    Marks
    18/02/2014
    Sam 
    Maths
    1
    20
    18/02/2014
    Sam 
    Maths
    1
    10
    18/02/2014
    Sam 
    Maths
    2
    30
    18/02/2014
    Luke
    Science
    1
    50
    17/02/2014
    Sam 
    Maths
    2
    50
    17/02/2014
    Luke
    Science
    2
    60
    16/02/2014
    Luke
    Science
    2
    20
    16/02/2014
    Luke
    Science
    3
    20
    I want to Group by dates and move the Hunt to columns calculating their counts and sum their marks too. Like given below.
    I wrote a pivot query like below but If i group it with dates and calculate the total marks it throws aggregate errors.
    Create Table Student_Log ([Date] datetime ,Student varchar (20), Subject varchar (20) ,Hunt int ,Marks int )
    Go
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','1','20')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','1','10')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','2','30')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Luke','Science','1','50')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-17 15:00:00.000','Sam ','Maths','2','50')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-17 15:00:00.000','Luke','Science','2','60')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-16 15:00:00.000','Luke','Science','2','20')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-16 15:00:00.000','Luke','Science','3','20')
    Go
    select * from Student_Log
    select [DATE] , [Student], [Subject] ,[1],[2],[3],[4],Total =([1]+[2]+[3]+[4])
    from
    ( select [Date], [Student], [Subject],[Hunt],[Marks] from Student_Log
    )x
    pivot
    count ( [Hunt]) for [Hunt]
    in ([1],[2],[3],[4])
    )p
    order by [Date] desc
    I have done this far only. More than this I need to enhance it with the Percentage of Hunts for each Student.
    ie like below table.
    On 18th Sam in Maths he had 2 rows on 1st hunt  and 1 row on 2nd hunt. So On the Pivot table is it possible to represent it on percentage using the Total Attempts column.
    Thanks a lot in advance.
    Its runnung in SQL 2000 Server.

    Create Table Student_Log ([Date] datetime ,Student varchar (20), Subject varchar (20) ,Hunt int ,Marks int )
    Go
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','1','20')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','1','10')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','2','30')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Luke','Science','1','50')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-17 15:00:00.000','Sam ','Maths','2','50')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-17 15:00:00.000','Luke','Science','2','60')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-16 15:00:00.000','Luke','Science','2','20')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-16 15:00:00.000','Luke','Science','3','20')
    Go
    select * from Student_Log
    ;with mycte as
    Select [Date], [Student], [Subject] ,
    Count(CASE WHEN [Hunt]=1 Then Hunt End) as Hunt1,
    Count(CASE WHEN [Hunt]=2 Then Hunt End) as Hunt2,
    Count(CASE WHEN [Hunt]=3 Then Hunt End) as Hunt3,
    Count(CASE WHEN [Hunt]=4 Then Hunt End) as Hunt4,
    Count(CASE WHEN [Hunt]=1 Then Hunt End)
    +Count(CASE WHEN [Hunt]=2 Then Hunt End)
    +Count(CASE WHEN [Hunt]=3 Then Hunt End)+
    +Count(CASE WHEN [Hunt]=4 Then Hunt End) as Total,
    ISNULL(SUM(CASE WHEN [Hunt]=1 Then Marks End),0) as Mark1,
    ISNULL(SUM(CASE WHEN [Hunt]=2 Then Marks End),0) as Mark2,
    ISNULL(SUM(CASE WHEN [Hunt]=3 Then Marks End),0) as Mark3,
    ISNULL(SUM(CASE WHEN [Hunt]=4 Then Marks End),0) as Mark4
    from Student_Log
    Group By [Date], [Student], [Subject]
    Select [Date], [Student], [Subject]
    , Cast(Hunt1*1./Total*100 as int) as [1]
    , Cast(Hunt2*1./Total*100 as int) as [2]
    ,Cast(Hunt3*1./Total*100 as int) as [3]
    ,Cast(Hunt4*1./Total*100 as int) as [4]
    ,Total,Marks=( Mark1+Mark2+Mark3+Mark4)
    from mycte
    order by [Date] DESC, Student desc
    drop table Student_Log

  • Hi can anyone please help me! My I phone is in recovery mode i lost it and it was returned to me fully working. I ran an update and it shut down. I have loads of pics and vids of my little girls including my youngest counting to ten for the first time.

    Hi can anyone please help. My I Phone is in recovery mode. I have loads of pics and vids including my little girl counting to ten for the first time.
    Can I recover these files or have I lost them? I lost the phone last week and it was returned working but with an update to install I did this and it shut down.
    If anyone can please help I would be eternally in your debt I have loads of sentimental pctures in here but cant get to them.

    Sorry, but if it's in recovery mode, anything on the phone is already gone. If you had PhotoStream turned on, hopefully the photos will still be out there.
    You have no choice at this point but to restore from your last backup.

Maybe you are looking for

  • How do i add a gmail account to outlook for mac

    how do i add a gmail account to outlook for mac

  • Apps no longer working on Original iPhone...

    Acckk! As each new upgrade happens some of my apps no longer work and there is no access to older versions of these apps. Scanforlife, on this day, etc. now refuse to load on to the phone. Have had issues with AOL Radio which no longer works and was

  • How do i get all my songs back after itunes gets unistalled?

    I just recently unistalled Windows (iTunes and everything else got deleted) due to my computer issues. I have reinstalled it now but my library is cleared of songs.Is there any way that I can get the songs that are on my iPod back onto iTunes? Thanks

  • Customer statement email.

    Hi All,   I have requirement need to send customer statement as email. I am running it from f.27  and attached correspondense.   I would like send an email of customer statement. Any user exit to do the same? Can any one did the same please let me kn

  • ORA-12518 Tns: Listener could not hand off client conenction

    Sometimes I got ORA-12518 Tns: Listener could not hand off client conenction adding DIRECT_HANDOFF_TTC_LISTENER=OFF to listener.ora is suggested. Here is my listener.ora. Where should I add it? like this???????????????? SID_LIST_LISTENER = (SID_LIST