Query on wwsbr_all_items ...

I am trying to query the view wwsbr_all_items as portal30, but
regardless of what columns I query on, it always returns the
following:
SQL> select author from wwsbr_all_items;
select author from wwsbr_all_items
ERROR at line 1:
ORA-01722: invalid number
I have no problems if I try a select on the component tables in
the view such as wwv_things.
Any ideas what I might be missing here.
Thanks in advance,
Javeed

I can't reproduce the problem with iAS 1.0.2.3 (Portal 3.0.9).
You have a couple of options:
1. Look at the view definition and see if you can figure out
what the problem is. It's possible there was a problem with the
view definition in that release, but I don't remember one.
2. Upgrade to Portal 3.0.9.
Regards,
Jerry

Similar Messages

  • Urls to the  documents in the categories urgent please!!!!

    Can anyone provide me the sql query to display all the urls for the documents stored in the categories.
    Is there anyway to programatically constructs the urls and display in a report.
    I appreciate your help
    Thanks in Advance

    I'm not sure I entirely follow what you are looking for when you say "the documents stored in the categories"
    If you are looking for a way to display URLs for documents in a specific category, you could query the WWSBR_ALL_ITEMS view for all items that are of the desired type, are from the appropriate page group(s), and are in that category. If you want to query by the category name, you may need to retrieve that from the WWSBR_ALL_CATEGORIES view since the all_items view only stores the category_id.
    As for programmatically constructing the uRL, there are a couple of ways of forming direct access URLs. If you look in portal's on-line help, they have a topic specifically on that.
    I recently used the 2nd of the two approaches they list when I wrote a package that retrieve the NAME and DISPLAY_NAME values from the WWSBR_ALL_ITEMS view and constructed the URL for the item as:
    htp.p('<a href="[portal base address:port]/pls/portal/url/ITEM/'||name||'">'||DISPLAY_NAME||'</a>');
    where [portal base address:port] is the appropriate value for your system.
    Hope that helps,
    Mark M.
    Portal 9.0.2.6

  • Render text item with procedure call

    I have made several custom item types with custom attributes, and I use a procedure calls to render them in my region.
    For example, the pl/sql call from the item can look like: portal.write_text and I use p_id and p_text as attribute parameters.
    When I render the Text attribute it shows with no new lines (no <p>) although it is written with it in the item wizard.
    How can I render the text attribute exactly as it supposed to be? (with <p>'s)
    /Malin

    Even simpler:
    procedure showTextItem (p_itemid IN INTEGER, p_siteid IN INTEGER, p_language IN VARCHAR2) is
       theText varchar2(32767);
       begin
          select i.text
             into theText
             from portal.wwsbr_all_items i
             where i.id = p_itemid
             and   i.caid = p_siteid
             and   i.is_current_version = 1
             and   i.active = 1
             and    (i.language = p_language
                        or ( exists -- a row for the item in the page group default language            
                              (select pg.id             
                               from  wwsbr_all_content_areas pg             
                               where pg.id = i.caid             
                               and   pg.default_language = i.language             
                             and not exists -- a row for the item in the current language            
                              (select i2.id             
                               from  wwsbr_all_items i2             
                               where i2.id = i.id             
                               and   i2.language = p_language
                               and   i2.is_current_version = 1
                               and   i2.active = 1             
          htp.p(theText);
       exception
          when others then htp.p(sqlerrm);
       end;Note the conditions on language, active status, and current version - you should include these conditions
    whenever you query from wwsbr_all_items.
    Please refer to the content repository view documentation in the PDK.
    Regards,
    Jerry
    PortalPM

  • Distinguish template using wwsbr_all_folders

    Hi am using wwsbr_all_folders to generate a dynamic menu based on tabs... I have added the tabs to the template and then added the templates to the root page.... now when i get my result from my pl/sql item menu... i get a list of menu items that are the tabs on the top of the page as well as the tabs within the template is there a way to distinguish and not show tabs that are in the template and only the ones on page... that is it duplicates the links in the menu...
    i was wondering if the wwsbr_all_folders had a field that checked if it was from template or not...

    this view doesn't distinguish if the page is from template or not.
    But you can query the wwsbr_all_items view and teh collumn 'type' will let you know if the item is a page or a tab.

  • How to get Page link target with pl/sql

    I am using Oracle Portal Version: 9.0.4.0.99.
    I have a portal page that contains several different item types.
    I am able to display the majority of the portal items using pl/sql except for the page link item type.
    I can use pl/sql to get the display name and other attributes from the WWSBR_ALL_ITEMS table for the page link, but unable to determine the target of the page link.
    Is there an api to determine the target and where is the page link target stored.
    Thank you

    Christain
    I am using your suggestion.
    I have obtained a list of the portal pages the customer wants links to and have built the urls to the portal pages as a temporary work around.
    The customer does not have enough knowlegde to duplicate the work around.
    This is why I need to allow the customer to be able to use the page link item type to build links to other portal pages.
    Let me try to explain what I am doing.
    I have a portal page that the customer has manage content privileges.
    The customer can add file items, url items and page link items.
    I am using the content on this page to build a dynamic javascript menu.
    I run pl/sql querys on several tables to get enough information to build links to these items on the portal page.
    The problem is with the item type, page link.
    This page link is selected by the customer by going through the add item icon on the portal page.
    The target of the selected page link is another portal page.
    I can get some information on the page link by querying the WWSBR_ALL_ITEMS view, but can not determine the actual target of the page link.
    If I can get the target id or name then I can accomplish what I need.
    I hope this explains my situation.
    Thanks

  • How to create a report based on the portal30.wwsbr_all_items?

    Hi,
    I created items in a folder in a content area. I would like to create a portal report and display the items of the folder of the content area.
    I logged in the database as portala30 and issued the following statement:
    SELECT ID,NAME FROM WWSBR_ALL_ITEMS WHERE CAID = 331
    AND FOLDER_ID = 49959;
    (I found out the caid for content area and folder_id for folders
    from the portal30.wwsbr_all_content_areas, and portal30.wwsbr_all_folders.)
    I have a row returned from my query in sqlplus (which is correct).
    Then I go into portal as portal30-> application(based on portal30 schema) -> create a report,
    use the same sql statement that I used above, and I got the following error message at run time:
    Error: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-11230)
    Failed to parse as PORTAL30_PUBLIC - SELECT ID,NAME FROM PORTAL30.WWSBR_ALL_ITEMS order by rowid (WWV-08300)
    Note: I did run the sbrapi.sql to grant access to the content area api to portal30_public.
    What else I am missing?
    Thanks;
    Kelly.

    Hi,
    I created items in a folder in a content area. I would like to create a portal report and display the items of the folder of the content area.
    I logged in the database as portala30 and issued the following statement:
    SELECT ID,NAME FROM WWSBR_ALL_ITEMS WHERE CAID = 331
    AND FOLDER_ID = 49959;Hy i've done the same thing on my Portal and it works.
    The things i've seen is that you must remove the ';' character because you don't need it with the report component.
    Error: ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-11230)
    Failed to parse as PORTAL30_PUBLIC - SELECT ID,NAME FROM PORTAL30.WWSBR_ALL_ITEMS order by rowid (WWV-08300)The second thing is that i've got the same error on other report and the solution is to simply add and order by at the end of the statement like this :
    SELECT ID,NAME
    FROM WWSBR_ALL_ITEMS
    WHERE CAID = 331
    AND FOLDER_ID = 49959
    ORDER BY 2
    I've done this when i've got this error and it solve the problem.
    Best regards
    Arnaud Bontemps
    mail : [email protected]
    web : http://www.labo-oracle.com

  • Why URL column in WWSBR_ALL_ITEMS is empty for url item type??

    I tried to query url of the url item from WWSBR_ALL_ITEMS, but url doesn't return anything. Did I queried wrong table? Can someone please let me know how to find the actual url(such as http://www...) for the url item type. Thanks!

    I don't remember exactly where I got this solution -- I think it was from a TAR -- but I have the following comment on the copy of WWSBR_ALL_ITEMS that we use to replace the one that ships with Portal 3.0.9.8:
    "The join between WWV_THINGS(t) and WWSBR_URL$(u) is defined as t.url = u.url(+). The join should be t.id = u.object_id(+)"
    I haven't looked at the type stuff in a while, but I remember that we used the subtype to identify things when we were working with that view.

  • Selecting from wwsbr_all_items for Custom Item Display

    I'm trying to call a procedure that will create custom HTML for an item I created. In that procedure I'm trying to get the name of the object I'm passing from the wwsbr_all_items view. However, when I try to select from the view I get the following error
    (p_url is a VARCHAR2 with a valid ID number)
    SELECT name
    FROM wwsbr_all_items
    WHERE id = p_url
    ERROR:
    ORA-14551: cannot perform a DML operation inside a query
    ORA-06512: at "Portal.WWCTX_SSO", line 2954
    ORA-06512: at "Portal.WWCTX_SSO", line 3483
    ORA-06512: at "Portal.WWCTX_SSO", line 1735
    ORA-06510: PL/SQl: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSo", line 1578
    ORA-06502: PL/SQl: numeric or value error
    ORA-06512: at "Portal.WWCTX_SSO", line 1820
    ORA-06512: at "Portal.WWCTX_API", line 199
    I also get a similar error if I try to select * from the view. Any ideas??
    Thanks!

    I believe you need to set your context up. Try the following. You will need to substitute with your own parameters.
    portal.wwctx_api_private.set_context(p_user_name => 'PORTAL',
    p_password => 'password', p_update_flat => true);
    You may have to wrap your code, so the password is not visible.

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Logical database in adhoc query

    Hello All,
    Can anyone tell me what is the logical database in adhoc query?

    Hi
    When you create a query , you have to select an infoset. Infoset can be considered as a source from which data is populated in the Query Fields.
    Infosets are created from Transaction SQ02.
    There can be four methods through which an Infoset can become a source of data:
    1.  Table join ( By joining two or more tables from Data dictionary)
         example: Joining tables PA0001 and PA0006 on Pernr to get a one resultant dataset
    2. Direct read of Basis Table ( Like PA0001 as a source for data in Infoset )
    3. Logical Database ( A Pre-written Program by SAP that extract data from clusters, tables taking care of authorizations and validity periods)
    Example : Logical database PNP, PNPCE (Concurrent Employement),PCH ( LDB for Personnel Development Data)
    Custom Logical DBs can be created in T_Code SE-36.
    4. Data Retrieval by a Program ( Custom code written by ABAP developers which will collect and process data) . This program has a corresponding Structure in data dictionary and the fields of this structure will be used in query)
    Reward Points, if helpful.
    Regards
    Waseem Imran

  • Query help on Goods Receipt Query with AP Invoice

    Looking for a little help on a query.  I would like to list all the goods receipts for a given date range and then display the AP Invoice information (if its been copied to an AP Invoice).  I think my problem is in my where clause, I plagerized an SAP query to show GR and AP from a PO as a start.  SBO 2005 SP01.  Any help would be great appreciated.  Thanks
    SELECT distinct 'GR',
    D0.DocStatus,
    D0.DocNum ,
    D0.DocDate,
    D0.DocDueDate,
    D0.DocTotal,
    'AP',
    I0.DocStatus,
    I0.DocNum ,
    I0.DocDate,
    I0.DocDueDate,
    I0.DocTotal,
    I0.PaidToDate
    FROM
    ((OPDN  D0 inner Join PDN1 D1 on D0.DocEntry = D1.DocEntry)
    full outer join
    (OPCH I0 inner join PCH1 I1 on I0.DocEntry = I1.DocEntry)
    on (I1.BaseType=20 AND D1.DocEntry = I1.BaseEntry AND D1.LineNum=I1.BaseLine))
    WHERE
    (D1.BaseType=22 AND D1.DocDate>='[%0]' AND D1.DocDate<='[%1]')
    OR (I1.BaseType=20 AND I1.BaseEntry IN
    (SELECT Distinct DocEntry
    FROM PDN1 WHERE BaseType=22 AND DocDate>='[%0]' AND DocDate<='[%1]'))

    Hi Dalen ,
    I  believe it is because of the condition
    (D1.BaseType=22 AND D1.DocDate>='%0' AND D1.DocDate<='%1')
    OR (I1.BaseType=20 AND I1.BaseEntry IN
    (SELECT Distinct DocEntry FROM PDN1 WHERE PDN1.BaseType=22 AND DocDate>='%0' AND DocDate<='%1'))
    Try changing
    D1.BaseType=22 OR D1.DocDate>='%0' AND D1.DocDate<='%1
    PDN1.BaseType=22 OR DocDate>='%0' AND DocDate<='%1'))
    Lets see what would be the result . Lets have some fun with troubleshooting
    See what would be the difference in the result .
    Thank you
    Bishal

  • Can you check for data in one table or another but not both in one query?

    I have a situation where I need to link two tables together but the data may be in another (archive) table or different records are in both but I want the latest record from either table:
    ACCOUNT
    AccountID     Name   
    123               John Doe
    124               Jane Donaldson           
    125               Harold Douglas    
    MARKETER_ACCOUNT
    Key     AccountID     Marketer    StartDate     EndDate
    1001     123               10526          8/3/2008     9/27/2009
    1017     123               10987          9/28/2009     12/31/4712    (high date ~ which means currently with this marketer)
    1023     124               10541          12/03/2010     12/31/4712
    ARCHIVE
    Key     AccountID     Marketer    StartDate     EndDate
    1015     124               10526          8/3/2008     12/02/2010
    1033     125               10987         01/01/2011     01/31/2012  
    So my query needs to return the following:
    123     John Doe                        10526     8/3/2008     9/27/2009
    124     Jane Donaldson             10541     12/03/2010     12/31/4712     (this is the later of the two records for this account between archive and marketer_account tables)
    125     Harold Douglas               10987          01/01/2011     01/31/2012     (he is only in archive, so get this record)
    I'm unsure how to proceed in one query.  Note that I am reading in possibly multiple accounts at a time and returning a collection back to .net
    open CURSOR_ACCT
              select AccountID
              from
                     ACCOUNT A,
                     MARKETER_ACCOUNT M,
                     ARCHIVE R
               where A.AccountID = nvl((select max(M.EndDate) from Marketer_account M2
                                                    where M2.AccountID = A.AccountID),
                                                      (select max(R.EndDate) from Archive R2
                                                    where R2.AccountID = A.AccountID)
                   and upper(A.Name) like parameter || '%'
    <can you do a NVL like this?   probably not...   I want to be able to get the MAX record for that account off the MarketerACcount table OR the max record for that account off the Archive table, but not both>
    (parameter could be "DO", so I return all names starting with DO...)

    if I understand your description I would assume that for John Dow we would expect the second row from marketer_account  ("high date ~ which means currently with this marketer"). Here is a solution with analytic functions:
    drop table account;
    drop table marketer_account;
    drop table marketer_account_archive;
    create table account (
        id number
      , name varchar2(20)
    insert into account values (123, 'John Doe');
    insert into account values (124, 'Jane Donaldson');
    insert into account values (125, 'Harold Douglas');
    create table marketer_account (
        key number
      , AccountId number
      , MktKey number
      , FromDt date
      , ToDate date
    insert into marketer_account values (1001, 123, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('27.09.2009', 'dd.mm.yyyy'));
    insert into marketer_account values (1017, 123, 10987, to_date('28.09.2009', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
    insert into marketer_account values (1023, 124, 10541, to_date('03.12.2010', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
    create table marketer_account_archive (
        key number
      , AccountId number
      , MktKey number
      , FromDt date
      , ToDate date
    insert into marketer_account_archive values (1015, 124, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('02.12.2010', 'dd.mm.yyyy'));
    insert into marketer_account_archive values (1033, 125, 10987, to_date('01.01.2011', 'dd.mm.yyyy'), to_date('31.01.2012', 'dd.mm.yyyy'));
    select key, AccountId, MktKey, FromDt, ToDate
         , max(FromDt) over(partition by AccountId) max_FromDt
      from marketer_account
    union all
    select key, AccountId, MktKey, FromDt, ToDate
         , max(FromDt) over(partition by AccountId) max_FromDt
      from marketer_account_archive;
    with
    basedata as (
    select key, AccountId, MktKey, FromDt, ToDate
      from marketer_account
    union all
    select key, AccountId, MktKey, FromDt, ToDate
      from marketer_account_archive
    basedata_with_max_intervals as (
    select key, AccountId, MktKey, FromDt, ToDate
         , row_number() over(partition by AccountId order by FromDt desc) FromDt_Rank
      from basedata
    filtered_basedata as (
    select key, AccountId, MktKey, FromDt, ToDate from basedata_with_max_intervals where FromDt_Rank = 1
    select a.id
         , a.name
         , b.MktKey
         , b.FromDt
         , b.ToDate
      from account a
      join filtered_basedata b
        on (a.id = b.AccountId)
    ID NAME                     MKTKEY FROMDT     TODATE
    123 John Doe                  10987 28.09.2009 31.12.4712
    124 Jane Donaldson            10541 03.12.2010 31.12.4712
    125 Harold Douglas            10987 01.01.2011 31.01.2012
    If your tables are big it could be necessary to do the filtering (according to your condition) in an early step (the first CTE).
    Regards
    Martin

  • Query help : Query to get values SYSDATE-1 18:00 hrs to SYSDATE 08:00 hrs

    Hi Team
    I want the SQl query to get the data for the following comparison : -
    Order Created is a Date Column , and i want to find out all the values from (SYSDATE-1) 18:00 hours to SYSDATE 08:00 hours
    i.e.
    (SYSDATE-1) 18:00:00 < Order.Created < SYSDATE 08:00:00.
    Regards

    Hi, Rohit,
    942281 wrote:
    If i want the data in the below way i.e.
    from (SYSDATE-1) 18:00 hours to SYSDATE 17:59 hours ---> (SYSDATE-1) 18:00:00 < Order.Created < SYSDATE 07:59:00.If you want to include rows from exactly 18:00:00 yesterday (but no earlier), and exclude rows from exatly 08:00:00 today (or later), then use:
    WHERE   ord_dtl.submit_dt  >= TRUNC (SYSDATE) - (6 / 24)
    AND     ord_dtl.submit_dt  <  TRUNC (SYSDATE) + (8 / 24)
    So can i use the below format : -
    ord_dtl.submit_dt BETWEEN trunc(sysdate)-(6/24) and trunc(sysdate)+(7.59/24) . Please suggest . .59 hours is .59 * 60 * 60 = 2124 seconds (or .59 * 60 = 35.4 minutes), so the last time included in the range above is 07:35:24, not 07:59:59.
    If you really, really want to use BETWEEN (which includes both end points), then you could do it with date arithmentic:
    WHERE   ord_dtl.submit_dt  BETWEEN  TRUNC (SYSDATE) - (6 / 24)
                      AND         TRUNC (SYSDATE) + (8 / 24)
                                               - (1 / (24 * 60 * 60))but it would be simpler and less error prone to use INTERVALs, as Karthick suggested earlier:
    WHERE   ord_dtl.submit_dt  BETWEEN  TRUNC (SYSDATE) - INTERVAL '6' HOUR
                      AND         TRUNC (SYSDATE) + INTERVAL '8' HOUR
                                               - INTERVAL '1' SECONDEdited by: Frank Kulash on Apr 17, 2013 9:36 AM
    Edited by: Frank Kulash on Apr 17, 2013 11:56 AM
    Changed "- (8 /24)" to "+ (8 /24)" in first code fragment (after Blushadown, below)

  • Query help, subtract two query parts

    Hi,
    I am beginner of PL/SQL and have a problem I couldn’t solve:
    Table (op_list):
    Item     -     Amount -     Status
    Item1     -     10     -     in
    Item2     -     12     -     in
    Item3     -     7     -     in
    Item1     -     2     -     out
    Item2     -     3     -     out
    Item1     -     1     -     dmg
    Item3     -     3     -     out
    Item1     -     2     -     out
    Item2     -     5     -     out
    Item2     -     2     -     in
    Item3     -     1     -     exp
    Would like to get result of query (subtract amount of 'out/dmg/exp' from 'in' ):
    Item - Amount left
    Item1     -     5
    Item2     -     6
    Item3 -     3
    I wrote code that returns sum of all incoming items and sum all out/dmg/exp items, but couldn’t solve how to subtract one part of querry from another. Or maybe there is a better way. Also worried what happens if there is no 'out/dmg/exp' only 'in'
    select item.name, sum(op_list.item_amount)
    from op_list
    inner join item
    on op_list.item = item.item_id
    where op_list.status = 'in'
    group by item.name
    union
    select item.name, sum(op_list.item_amount)
    from op_list
    inner join item
    on op_list.item = item.item_id
    where op_list.status = 'out'
    or op_list.status = 'dmg'
    or op_list.status = 'exp'
    group by item.name
    Return:
    Item1     -     10      [10 in]
    Item1     -     5     [2+1+2]
    Item2     -     14     [12+2]
    Item3     -     7
    Item3     -     4     [3+1]
    Thanks in advance

    Hi,
    We can also use simple inline views to get what we need.
    select a.item,a.amount-b.amount Balance from
    (select item,sum(amount) Amount from op_list
    where status = 'in'
    group by item) a,
    (select item,sum(amount) Amount from op_list
    where status in ('out','dmg','exp')
    group by item) b
    where
    a.item=b.item
    order by item;
    ITEM       BALANCE
    Item1                      5
    Item2                      6
    Item3                      3Regards,
    Prazy

  • Query help: query to return column that represents multiple rows

    I have a table with a name and location column. The same name can occur multiple times with any arbitrary location, i.e. duplicates are allowed.
    I need a query to find all names that occur in both of two separate locations.
    For example,
    bob usa
    bob mexico
    dot mexico
    dot europe
    hal usa
    hal europe
    sal usa
    sal mexico
    The query in question, if given the locations usa and mexico, would return bob and sal.
    Thanks for any help or advice,
    -=beeky

    How about this?
    SELECT  NAME
    FROM    <LOCATIONS_TABLE>
    WHERE   LOCATION IN ('usa','mexico')
    GROUP BY NAME
    HAVING COUNT(DISTINCT LOCATION) >= 2Results:
    SQL> WITH person_locations AS
      2  (
      3          SELECT 'bob' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
      4          SELECT 'bob' AS NAME, 'Mexico' AS LOCATION FROM DUAL UNION ALL
      5          SELECT 'dot' AS NAME, 'Mexico' AS LOCATION FROM DUAL UNION ALL
      6          SELECT 'dot' AS NAME, 'Europe' AS LOCATION FROM DUAL UNION ALL
      7          SELECT 'hal' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
      8          SELECT 'hal' AS NAME, 'Europe' AS LOCATION FROM DUAL UNION ALL
      9          SELECT 'sal' AS NAME, 'USA' AS LOCATION FROM DUAL UNION ALL
    10          SELECT 'sal' AS NAME, 'Mexico' AS LOCATION FROM DUAL
    11  )
    12  SELECT  NAME
    13  FROM    person_locations
    14  WHERE   LOCATION IN ('USA','Mexico')
    15  GROUP BY NAME
    16  HAVING COUNT(DISTINCT LOCATION) >= 2
    17  /
    NAM
    bob
    salHTH!
    Edited by: Centinul on Oct 15, 2009 2:25 PM
    Added sample results.

Maybe you are looking for

  • Moved library to new hard drive, iPod no longer communicates

    Ok, I am computer savy but know next to nothing about iTunes as I don't use it, but my wife does use it. However, my wife is not computer savy. My wife's old hard drive started dying (on a Dell laptop), so we bought a new one and moved all her files

  • Replacing a MacBook HD- some questions

    I'm having a few small problems with my MacBook's hard drive , and I'm also running out of space. I plan to replace it soon. How can I replace a hard drive myself? What compartments should I open? What hard drives will be good in a MacBook? After I r

  • What can I connect to the cinema display´s firewire port?

    What do you think of connecting an external hard drive to the cinema display´s firewire port? My other firewire ports on my G5 are already occupied.

  • Automatic antivirus install in NAC

    can i make requirement to automatically install the antivirus software on the client machine , if the  machine doesn't have antivirus installed ? and if tis will need the user to have admin privilege or not ?

  • Can webgui Iviews use ITS Themes generated by ITS Theme generator

    Hi, Can only IAC Components such as ESS etc be modified using ITS Theme genrator. I selected sap_preview service in the ITS Theme Generator wizard, and generated the theme.If I select webgui as the service, then it does not reflect any changes. I hav