OSLC Query to get requirements from a RequirementCollection on DOORS NG

Hi,
I'm using DOORS NG (V5.0.2) and I'm trying to get requirements referenced by a RequirementCollection using OSLC.
I tried the query given on:
https://jazz.net/library/article/1197
which is:
&oslc.prefix=rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns%23>,dcterms=<http://purl.org/dc/terms/>&oslc.select=*&oslc.where=rdf:type=<http://open-services.net/ns/rm%23Requirement>
But this query only returns the RequirementCollection itself.
So, is the query correct?

Hello Jim,
In fact, as you say, that query returns all requirements on a project. I was wrong with the query that I posted and the correct one is the query that you posted, i.e.:
&oslc.prefix=oslc_rm=<http://open-services.net/ns/rm%23>,dcterms=<http://purl.org/dc/terms/>&oslc.select=oslc_rm:uses&oslc.where=dcterms:identifier=1
However, this query only returns the RequirementCollection whose identifier is 1 and it does not return its requirements.
The solution that I found and it was supported by Jazz forum (https://jazz.net/forum/questions/200343/oslc-query-for-getting-requirements-from-a-requirement-collection) is to get the RequirementCollection and using the "uses" attributes (links to the associated requirements), which contain the requirement URL, we access to requirement info. by using REST commands.
I do not have better answer than this one. If someone has a better idea, I would appreciate.
Cordially,
Carlos

Similar Messages

  • Sql query to get numbers from 0 to 99

    How can we write an sql query to get values from 0 to 99 ... this shouldn't be coming from any table

    Bawer wrote:
    Result: (quickly replied by oracle)
    SQL-Error: ORA-30009 (Not enough memory for connect by - 1GB reserved for oracle on VirtualBox)Oracle version? Takes about 8 seconds on my:
    SQL> select * from v$version
      2  /
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for 32-bit Windows: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    Elapsed: 00:00:00.14
    SQL> select count(*) from (
      2  SELECT LEVEL - 1
      3  FROM DUAL
      4  CONNECT BY LEVEL <= 10000000
      5  )
      6  /
      COUNT(*)
      10000000
    Elapsed: 00:00:07.76
    SQL> SY.

  • Single query to get data from different databases

    i need to capture certain fields from certain tables in database 1 and certain fields from certain tables in database 2 into one file using a single SQL statement.
    i tried searching on the net
    i found that dblinks can help
    but iam not sure if ill be able to create dblinks in my situation which is:
    i need to get data from oracle to be copied to mysql
    this is not a replication acitivity, but i need certain fields from one database and certain from the other
    so what iwas thinking is, if i use an sql query to get all the fields (i need around 40) from the different oracle databases and create a singlefile with one insert per select, i can then read that file into mysql
    instead of creating multiple sql queries for each table and creating separate files and eventually separate tables in mysql.
    can anyone help me here?
    or maybe suggest another approach.
    thanks

    Hi,
    I think dblink is the only option available to get data from different databases. It will work for your case too.
    CREATE DATABASE LINK db_link CONNECT TO user_name IDENTIFIED BY  password USING 'instance_name'you must have the system privilege 'create database link' to create db links. This way you can get the required data and put it in a table in oracle. But i dont know how to put this data from oracle table to Mysql.
    HTH
    Muneer

  • Query to get details from Maintenance plans

    Hi All,
    Could some one please let me know, if there is any way to check whether
    all  databases option is selected under the maintenance plan other than using GUI. Below is the print screen for reference.
    Maintenance plan includes rebuild Index, checkdb and  update statistics steps, I have to check whether the All databases option is selected for each individual task.
    I have a requirement wherein, I have to check this thing on around 5000 servers.
    It would be great if someone lets me know the script to check this setting, so that it will save my time.
    I have used below queries and tables to get the data, but they don't have the information which i'm looking for
     sysdbmaintplan_databases
    Contains one row for each database that has an associated upgraded database maintenance plan.
    sysdbmaintplan_history
        Contains one row for each upgraded database maintenance plan action performed.
    sysdbmaintplan_jobs
        Contains one row for each upgraded database maintenance plan job.
    sysdbmaintplans
        Contains one row for each upgraded database maintenance plan
        select * from sysdbmaintplan_jobs
        SELECT name,subplan_name,subplan_description
        FROM msdb.dbo.sysmaintplan_plans AS s
        INNER JOIN msdb.dbo.sysmaintplan_subplans AS sp ON sp.plan_id=s.id
        Order by name,subplan_name
     SELECT s.name AS MaintenancePlanName,
    sp.subplan_name AS SubplanName,
    subplan_description AS SubplanDescription,
    sj.name AS JobName,
    sj.enabled AS JobStatus,
    ss.name AS ScheduleName
    FROM msdb.dbo.sysmaintplan_plans AS s
    LEFT JOIN msdb.dbo.sysmaintplan_subplans AS sp ON sp.plan_id = s.id
    LEFT JOIN msdb.dbo.sysjobs AS sj ON sj.job_id = sp.job_id
    LEFT JOIN msdb.dbo.sysschedules AS ss ON sp.schedule_id = ss.schedule_id
    ORDER BY s.name,
    sp.subplan_name
    Thanks in Advance.
    Regards, Kranthi

    On a different note,  i think you can script the maintenance plan - ssis package and then insert into sysssiscatalog table and i think this will create the ssis - maintenance plan on the server. not sure ..this is just thought.... they can be compatibility
    issue.
    also, you can use the history - maintenance plans to get the data you need. but the caveat is the maintenance plan should have and history should exist and 'extended log  information' must be checked on the plan. this can be done - checking a text box
     in the plan properties.
    try this query.. i used top 1 ..so, you can try... if all databases are used in the plan..it will just show all  but if only some are used, i split that into multiple rows,(you might not need this)..there are some many other combinations possible,,
    such selecting on some tables etc...  you can query all that information from history tables, 
    try this query 
    use msdb
    go
    select top 1 @@SERVERNAME [servername],case when d.Succeeded=1 then 'Success' when d.succeeded=0 then 'Failed' End as Result,
    name,b.subplan_name,D.line1,D.line2,replace(D.line3,'Databases: ','') as [DBs],D.line4,D.line5,D.start_time,D.end_time,D.command,d.Succeeded
    into #test
    from sysmaintplan_plans a inner join sysmaintplan_subplans b on a.id=b.plan_id
    inner join sysmaintplan_log c on c.plan_id=b.plan_id and c.Subplan_id=b.subplan_id
    inner join sysmaintplan_logdetail d on d.task_detail_id=c.task_detail_id
    ORDER BY D.start_time DESC
    GO
    SELECT [ServerName],name,subplan_name,line2,
    Split.a.value('.', 'VARCHAR(100)') AS String
    FROM (SELECT [ServerName],name,subplan_name,line2,
    CAST ('<M>' + REPLACE([DBs], ',', '</M><M>') + '</M>' AS XML) AS Dbs
    FROM #test) AS A CROSS APPLY Dbs.nodes ('/M') AS Split(a);
    drop table #test
    anyways, on a side note, if you really have 5000 sql servers, you should looking at some tool or scripts to do this maintanence tasks than the builtin maintenance tasks as they provide better managebility. also, it is highly likely that you have multiple version,
    which makes it even harder to script out....
    Hope it Helps!!

  • Query for getting address from RA_CUSTOMER_TRX_ALL.REMIT_TO_ADDRESS_ID

    Some one please provide query for getting REMIT TO ADDRESS details by using the column RA_CUSTOMER_TRX_ALL.REMIT_TO_ADDRESS_ID

    try
    select ct.remit_to_address_id,
           raa_remit_ps.party_site_number,
           raa_remit_loc.state,
           ft_remit.territory_short_name,
           ct.*
      from ra_customer_trx_all    ct,
           hz_cust_acct_sites_all raa_remit,
           hz_party_sites         raa_remit_ps,
           hz_locations           raa_remit_loc,
           fnd_territories_vl     ft_remit
    where 1 = 1
       and ct.remit_to_address_id = raa_remit.cust_acct_site_id(+)
       and raa_remit.party_site_id = raa_remit_ps.party_site_id(+)
       and raa_remit_loc.location_id(+) = raa_remit_ps.location_id
       and raa_remit_loc.country = ft_remit.territory_code(+)

  • Help to write query to get records from specified time TO specified time?

    I have a table which has large data and the table is updated every min,
    Suppose the Table comp(timeid date,sessions varchar2,sid varchar2)
    Here time needs to be checked
    So now i have to write a query which displays records that have been in the table
    for every 5 mins
    default timeframe is sysdate-5 then the lower and upper bound is multiple of 5 i.e
    Suppose now Time and sysdate: 12-sep-2007 1:22:00pm
    From sysdate: 12-sep-2007 1:15:01pm TO sysdate: 12-sep-2007 1:20:00pm
    So i need a query to get the records from 1:15:01pm to 1:20pm.
    Message was edited by:
    user594721

    Explanation is not clear.Please give sample data and expected o/p.
    If you need the data of previous five minutes, do like this...
    SQL> select id, to_char(time,'dd/mm/yyyy hh:mi:ss') time
      2  from test;
            ID TIME
             1 13/09/2007 10:29:55
             1 13/09/2007 10:29:22
             1 13/09/2007 10:20:28
    SQL> select id, to_char(time,'dd/mm/yyyy hh:mi:ss') time,
      2             to_char(sysdate,'dd/mm/yyyy hh:mi:ss') current_time
      3  from test
      4  where time between (sysdate - (5/24/60)) and sysdate;
            ID TIME                CURRENT_TIME
             1 13/09/2007 10:29:55 13/09/2007 10:32:45
             1 13/09/2007 10:29:22 13/09/2007 10:32:45                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • CAML query to get itemcount from sharepoint list based on Month/Year

    Hi,
     I have a SharePoint list with date field. Now I wan't to get item count for each month in Fiscal Year using SP Services. Hence, need a CAML query to get item count . Any suggestions will be appreciated.
    Thanks in Advance.

    When you have your month, you'll need to calculate the first day and last day of the month and convert them to the ISO using to ISOString.
    startDate.toISOString();
    endDate.toISOString();
    function searchList(startDate, endDate) {
        var nURL = "/_vti_bin/lists.asmx";
        var soapEnv = "<?xml version=\"1.0\" encoding=\"utf-8\"?> \
                                 <soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
                                  xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
                                  xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">
                                  <soap:Body> \
                                  <GetListItems xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\">
                                  <listName>{YourList}</listName> \
                                  <viewFields></viewFields> \
                                  <query><Query><Where><And><Geq><FieldRef Name='DateField'
    /><Value Type='DateTime'>" + startDate +"</Value></Geq><Leq><FieldRef Name='DateField'><Value Type='Datetime'>"+endDate+"</Leq></And></Where></Query></query> \
                                  <queryOptions><QueryOptions><ViewAttributes Scope='Recursive'/></QueryOptions></queryOptions>
                                  </GetListItems> \
                                      </soap:Body> \
                                  </soap:Envelope>";
        $.ajax({
            url: nURL,
            beforeSend: function(xhr) {
                xhr.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/sharepoint/soap/GetListItems");
            type: "POST",
            dataType: "xml",
            data: soapEnv,
            complete: processResults,
            contentType: "text/xml; charset=utf-8"
    function processResults(xData, status)
      var i;
       result = $(xData.responseText).find("z\\:row, row");
        if (result == undefined) {
            result = $(xData.responseXML).find("z\\:row, row");
        $(result).each(function(i, data) {
        //Magic   
          i++; 
        return i;
    Brandon James SharePoint Developer/Administrator

  • Need a Query for getting ItemCost from PO Vendor wise

    Hi,Experts We are not maintain different price list for  some particular items , We raised the PO for Multiple vendors with differnt price for the same material. We need a query to find the Item cost with Various Vendor .
    I need the query in the following format
    Po Number, Vendor Name,Item Name, Item Description,Qty, Price,Tax.
    Thanks
    Kamal

    Hi,
    Check this query which looks for the Item doctype Purchase Order and brings the data accordingly :
    select t0.docnum as 'PO Number', t0.CardName as 'Vendor name', t1.itemcode as 'Item Name',
    t1.Dscription as 'Item Description', t1.quantity as 'QTY', t1.Price as 'Price',
    t1.vatsum as 'Tax Amount'
    from OPOR t0 inner join POR1 t1 on t0.docentry = t1.docentry
    where t0.doctype ='I'
    Group by t1.itemcode, t1.Dscription, t0.docnum,
    t0.cardname, t1.quantity, t1.Price, t1.vatsum
    Order by t1.Itemcode
    Check if it helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Join query not getting data from tables

    I have total 4 tables, zemployee, zemp_comm,zemp_adress, zemp_edu1 all  of this tables are connected through emp_id , but when I write left outer join it returns all rows but emp_id is retrunign null ,  when I insert all of the entries in respective table  it show the respective emp_id, when  i left some of the entries in table it will not show  emp_id in records,
    I am using this select statment........
    Select * from   zemployee as a left outer join zemp_comm as b on b~emp_id = a~emp_id left outer join zemp_adress
    as c on c~emp_id =  a~emp_id left outer  join zemp_education1 as d on d~emp_id = a~emp_id into corresponding fields of table
    emp_itb
    where  a~emp_name = zemployee-emp_name.
    I want  to show show records with emp_id whether i put entry in all tables or missed some of the entries.
    please help me in this regard.

    Hi Amir,
                You can use Inner join . please refer below code.
    Select * from   zemployee  as a inner join zemp_comm as b on b~emp_id = a~emp_id inner join zemp_adress
    as c on c~emp_id =  a~emp_id inner  join zemp_education1 as d on d~emp_id = a~emp_id into corresponding fields of table
    emp_itb
    where  a~emp_name = zemployee-emp_name.
    Regards,
    Thangam.P

  • Best query to get customer name

    Hi all,
    I am writing query to get some from ra_customer_trx_all in oracle receivables. I found here customer_id
    Which query can give me customer name against customer id?
    Thanks

    Hi.
    Link BILL_TO_CUSTOMER_ID in table RA_CUSTOMER_TRX_ALL to column CUSTOMER_ID in view RA_CUSTOMERS and take CUSTOMER_NAME from RA_CUSTOMERS.
    Octavio

  • Need help in writing a select query to pull required data from 3 tables.

    Hi,
    I have three tables EmpIDs,EmpRoles and LatestRoles. I need to write a select Query to get roles of all employees present in EmpIDs table by referring EmpRoles and LatestRoles.
    The condition is first look into table EmpRoles and if it has more than one entry for a particular Employee ID than only need to get the Role from LatestRoles other wise consider
    the role from EmpRoles .
    Sample Script:
    Create Table #EmpIDs
    (EmplID int )
    Create Table #EmpRoles
    (EMPID int,Designation varchar(50))
    Create Table #LatestRoles
    EmpID int,
    Designation varchar(50)
    Insert into #EmpIDs values (1),(2),(3)
    Insert into #EmpRoles values (1,'Role1'),(2,'Role1'),(2,'Role2'),(3,'Role1')
    Insert into #LatestRoles values (2,'Role2')
    Employee ID 2 is having two roles defined in EmpRoles so for EmpID 2 need to fetch Role from LatestRoles table and for
    remaining ID's need to fetch from EmpRoles .
    My Final Output of select query should be like below.
    EmpID Role
    1 Role1
    2 Role2
    3 Role1
    Please help.
    Mohan

    Mohan,
    Can you check if this answers your requirement:
    Create Table #EmpIDs
    (EmplID int )
    Create Table #EmpRoles
    (EMPID int,Designation varchar(50))
    Create Table #LatestRoles
    EmpID int,
    Designation varchar(50)
    Insert into #EmpIDs values (1)
    Insert into #EmpIDs values (2)
    Insert into #EmpIDs values (3)
    Insert into #EmpRoles values (1,'Role1')
    Insert into #EmpRoles values (2,'Role2')
    Insert into #EmpRoles values (2,'Role1')
    Insert into #EmpRoles values (3,'Role1')
    Insert into #LatestRoles values (2,'Role2')
    --Method 1
    select e.EmplID,MIN(ISNULL(l.Designation,r.Designation)) as Designation
    from #empids e
    left join #emproles r on e.emplID=r.EmpID
    left join #latestRoles l on e.emplID=l.EmpID
    group by e.EmplID
    --Method 2
    ;with cte
    as
    select distinct e.EmplID,r.Designation,count(*) over(partition by e.emplID) cnt
    from #empids e
    left join #emproles r on e.emplID=r.EmpID
    select emplID,Designation
    from cte
    where cnt=1
    UNION ALL
    select a.EmplID,l.Designation
    from
    (select distinct EmplID from cte where cnt>1) a
    join #Latestroles l on a.EmplID=l.EmpID
    order by emplID
    Thanks,
    Jay
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

  • CAML Query to get Items based on Year and Month From Date Column

    Hi All,
           * As we knew that there are default columns in calendar like Stattdate,Title,Location..etc.
            * I required the CAML Query to get the list items of calender of particular Month and Year,So that I can get number of items or evetns are in Calendar
    Can any one help me how can I do this using caml query
    Samar

    Hi Stuart,
                 Thanks for your response,I had chosen 2nd option of our above mention suggestion.But when I try to fetech the data from a calendar it is showing below error .I
    had checked the below code with oter lists by changing Type to text and it worked fine.Can you please help me how can I fetech for the calulated columns
    Error
    "One or more field
    types are not installed properly. Go to the list settings page to delete these
    fields. "
    Code:
     string year="2014";
                string month="February";
                SPSite mysite = SPContext.Current.Site;
                SPWeb myweb = mysite.OpenWeb();
                try
                    SPList mylist = myweb.Lists["Calendar"];
                    SPQuery myquery = new SPQuery();
                    myquery.Query = @"<Where>
                                          <And>
                                           <Eq>
                                             <FieldRef Name='Year'/>
                                             <Value Type='Calculated'>"
    + year + @"</Value>
                                          </Eq>
                                          <Eq>
                                             <FieldRef Name='Month'
    />
                                             <Value Type='Calculated'>"
    + month + @"</Value>
                                          </Eq>
                                         </And>
                                      </Where>";
                    SPListItemCollection totaltiems = mylist.GetItems(myquery);
                   Label1.Text= "Total Number of Items is "+" "+totaltiems.Count.ToString();
                catch (Exception ee)
                    Label1.Text = ee.Message;
                finally
                    myweb.Dispose();
    Calculated Columns
    Samar

  • Extract query to get ISOs confirmed from 1 org to another

    Hi All,
    I have been tasked to write a query to get the following details extract for all the ISOs from V1 to M1.
    I made the following query
    SELECT wnd.waybill tracking_number,
                  wdd.container_name lpn,
                  msib.segment1      sku,
                  wdd.shipped_quantity quantity,
                  oeh.order_number,
                  porh.segment1
      FROM apps.oe_order_lines_all         oel,
           apps.oe_order_headers_all       oeh,
           apps.po_requisition_headers_all porh,
           apps.po_requisition_lines_all   porl,
           apps.wsh_delivery_details       wdd,
           apps.wsh_new_deliveries         wnd,
           apps.wsh_delivery_assignments   wda,
           apps.mtl_system_items_b         msib
    WHERE 1 = 1
       AND oeh.header_id = oel.header_id
       AND oel.source_document_id = porh.requisition_header_id
       AND oel.source_document_line_id = porl.requisition_line_id
       AND porh.requisition_header_id = porl.requisition_header_id
       AND oel.order_source_id = 10 --order_source_id for 'Internal'
       AND oeh.orig_sys_document_ref = porh.segment1
       AND oel.org_id = porh.org_id
       AND wdd.source_header_id = oeh.header_id
       AND wdd.source_line_id = oel.line_id
       AND (porl.source_organization_id = 204 AND
            porl.destination_organization_id = 207)
       AND wdd.organization_id = 204    
       AND porh.type_lookup_code = 'INTERNAL'
       --AND porh.segment1 = '2009011'
       AND wda.delivery_detail_id = wdd.delivery_detail_id
       AND wnd.delivery_id = wda.delivery_id
       AND msib.inventory_item_id = wdd.inventory_item_id
       and msib.organization_id = wdd.organization_id
       AND wnd.waybill IS NOT NULL
       AND wdd.container_name IS NOT NULL
       AND wdd.released_status = 'C'
    Now the query is not giving the exact result. It is showing NULL value for both container and waybill number even though there are a couple of IRs and ISOs created which
    have container and waybill number created and have been ship confirmed.
    Could someone help me as to where I might be going wrong??
    Thanks in advance.

    Hi
    Check if this works by making some tweaks. I wrote this long back for some requirement.
    SELECT porh.segment1,
               porl.line_num,
               pord.distribution_num,
               ooh.order_number
               sales_order,
               ool.line_number so_line_num,
               rsh.receipt_num,
               rcv.transaction_type
      FROM oe_order_headers_all ooh,
              po_requisition_headers_all porh,
              po_requisition_lines_all porl,
              po_req_distributions_all pord,
              oe_order_lines_all ool,
              po_system_parameters_all posp,
              rcv_shipment_headers rsh,
              rcv_transactions rcv
    WHERE ool.order_source_id = posp.order_source_id
       AND porh.org_id = posp.org_id
       AND porh.requisition_header_id = ool.source_document_id
       AND porl.requisition_line_id = ool.source_document_line_id
       AND porh.requisition_header_id = porl.requisition_header_id
       AND porl.requisition_line_id = pord.requisition_line_id
       AND porl.requisition_line_id = rcv.requisition_line_id
       AND pord.distribution_id = rcv.req_distribution_id
       AND rcv.shipment_header_id = rsh.shipment_header_id;

  • Query OR Stored Proc to get data from Tables from All Schemas in the d/base

    Hello Experts, (I appologize if i am not using the right way to ask questions)
    I have a database, and it has around 400 schemas in it. I have designed a query which will fetch the data from three different table's from Schema1.
    But it will be a tedious process of entering the 400 schemas names and pulling the information.
    I would like to know as to what would be the best possible way to;
    1) Look for all the schemas in the database
    2) Look for those specific tables in the schema, which has the data in the tables.
    3) If the tables are not present, than Ignore that schema and proceed further.
    4) Load the data into a table
    Any help, would appreciate it.
    Thanks!
    The query that i am using is as follows;
    -- Query to select all the Schemas from the database
    select username from all_users
    order by username;
    -- Sample Query to see if Tables exsist in the schema
    SELECT DISTINCT OWNER, OBJECT_NAME
    FROM ALL_OBJECTS
    WHERE OBJECT_TYPE = 'TABLE'
    AND OBJECT_NAME IN ('ENROLLMENT', 'PRDCT', 'L_P_L')
    AND OWNER in ('Schema_1', 'Schema_2', Schema_3', Schema_4',Schema_5', Schema_6')
    ORDER BY OWNER;
    --Query to get the data from the tables in a Schema
    select 'Schema_1@DATABASE_NAME' AS SCHEMA,
    (SELECT MAX(LOAD_DT) FROM Schema_1.LOAD_STATUS) AS MAX_LOAD,
    L_PROD_LINE.PROD_LINE,
    COUNT(DISTINCT ENROLLMENT.MEM_NBR) AS MEMBERSHIP
    FROM
    Schema_1.ENROLLMENT,
    Schema_1.PRDCT,
    Schema_1.L_P_L
    WHERE
    ENROLLMENT.PRODUCT_ID = PRDCT.PRODUCT_ID AND
    PRODUCT.PROD_LINE_ID = L_P_L.ID
    GROUP BY
    L_P_L.PROD_LINE;

    Hi,
    999355 wrote:
    Hello Experts, (I appologize if i am not using the right way to ask questions)See the froum FAQ {message:id=9360002}
    I have a database, and it has around 400 schemas in it. I have designed a query which will fetch the data from three different table's from Schema1.
    But it will be a tedious process of entering the 400 schemas names and pulling the information.
    I would like to know as to what would be the best possible way to;
    1) Look for all the schemas in the database
    2) Look for those specific tables in the schema, which has the data in the tables.
    3) If the tables are not present, than Ignore that schema and proceed further.
    4) Load the data into a table
    Any help, would appreciate it.
    Thanks!
    The query that i am using is as follows;
    -- Query to select all the Schemas from the database
    select username from all_users
    order by username;
    -- Sample Query to see if Tables exsist in the schema
    SELECT DISTINCT OWNER, OBJECT_NAME
    FROM ALL_OBJECTS
    WHERE OBJECT_TYPE = 'TABLE'
    AND OBJECT_NAME IN ('ENROLLMENT', 'PRDCT', 'L_P_L')
    AND OWNER in ('Schema_1', 'Schema_2', Schema_3', Schema_4',Schema_5', Schema_6')
    ORDER BY OWNER; Do you want to give a list of possible schemas (like the 6 above), or do you want to consider all schemas, however many and whatever they are called?
    You can get the right information for ALL_OBJECTS, but, since you known all the objects of interest are tables, ALL_TABLES will be faster and simpler.
    --Query to get the data from the tables in a Schema
    select 'Schema_1@DATABASE_NAME' AS SCHEMA,
    (SELECT MAX(LOAD_DT) FROM Schema_1.LOAD_STATUS) AS MAX_LOAD,
    L_PROD_LINE.PROD_LINE,
    COUNT(DISTINCT ENROLLMENT.MEM_NBR) AS MEMBERSHIP
    FROM
    Schema_1.ENROLLMENT,
    Schema_1.PRDCT,
    Schema_1.L_P_L
    WHERE
    ENROLLMENT.PRODUCT_ID = PRDCT.PRODUCT_ID AND
    PRODUCT.PROD_LINE_ID = L_P_L.ID
    GROUP BY
    L_P_L.PROD_LINE;I take it that the tables in question are ENROLLMENT, PRDCT and L_P_L; they won't have different names in different schemas.
    You can start this way:
    BEGIN
        FOR  c  IN  (
                          SELECT    owner
                  FROM      all_tables
                  WHERE     table_name  IN ( 'ENROLLMENT'
                                            , 'PRDCT'
                                  , 'L_P_L'
                  GROUP BY  owner
                  HAVING    COUNT (*) = 3
        LOOP
            ...  -- Now get the results for tables in the c.owner schema
        END LOOP;
    END;
    /This will find the schemas that have all 3 of those tables.
    Inside the loop, write another dynamic query. All that will change is the value of c.owner
    Sorry, I'm running out of time now. I hope this helps.

  • Error in abap query sq03,02,01(to get data from structure) it is possible?

    hi
    experts,
    i am developing a report using abap query .(stand t code is s_alr_87012277 it contain more fields but i want only 4 fields , i found 2 but remaining 2 are from structure)
    my problem is that debit and credit amount is in structure
    how  i can get data from structure(FAGL_S_RFSSLD00_LIST )
    solbm = debit.
    habbm  = credit.
    report is like
    op.
    gl acc no, discription, credit amount,debit amount.

    Hi ajay,
    try to use with  logical database  SDF.
    assign the logical database name in info set.
    gl acc no    -               SKA1-SAKNR
    debit.         -     Field: um02h
    credit.        -     field:  um02s 
    discription  -               SKAT-TXT20
    regards,
    sateesh.

Maybe you are looking for

  • Can I make PDF from xlsx file with Acrobat 8.0 professional?

    I'm using Windows 7 Professional (32-bit OS) with Microsoft Office 2007 Basic and have Acrobat 8.0 Professional. Newly installed on replacement computer (deactivated and reactivated license). Don't see PDF icon in any Microsoft Office software. Got g

  • How to make individual tabs on a JTabbedPane, a different colour?

    Hi, Is there a way to set the background colour to INDIVIDUAL tabs on a tabbed pane so that I can have a nice range of colours across my tabs? DLawton.

  • Sorting field from subordinate context node

    Hi everybody, I have a quite tricky problem: I like to create a table view which displays attributes from BuilHeader and from BuilAddress. I created therefore a context node BuildHeader in my view and BuilAddress as subordinate context node, linked t

  • Download Integration Option for Microsoft SharePoint

    From where can I download Integration Option for Microsoft SharePoinnt for SAP BI 4.1? Or is it the same as for BI 4.0? Thanks.

  • Photoshop transparent background??

    I am working with Photoshop eps files that have been supplied to me by my client that were designed for them by an agency. They were supplied as Photoshop eps's with a solid black background. I asked them to request they be supplied with a transparen