SQL JOIN with BPM sql component

Hello friends.
How to use SQL JOIN with BPM sql component?
The tables objects are created but the joined tables belong to different sql components .
I tried something like that, but a error "table doesn't exist" occours.
Ex:
for each element in
SELECT imuImovelCd
FROM IMOVEIS_URBANOS,
Integracao.FGLP.IMOVEIS_PRE_EDITAIS
WHERE IMOVEIS_URBANOS.imuImovelCd = Integracao.FGLP.IMOVEIS_PRE_EDITAIS.ipeImuCd
AND Integracao.FGLP.IMOVEIS_PRE_EDITAIS.ipePedNr = 1
AND Integracao.FGLP.IMOVEIS_PRE_EDITAIS.ipePedAa = 2008
do
extend this.imoveis using cdImovel = element.imuimovelcd,
                              nrImovel = call(DEC_ENDERECO, codimovel : element.imuimovelcd, tipoimovel : 1)
end
Edited by: user9008295 on 26/01/2010 05:19

ok, ok you are right.
When I try use SQL Statement to make a JOIN with 2 tables on different sql objects, BPM returns "table dosn't exists".
So.... I change my code. I dont know if this is the best way to do, but... i hope u, or everyone, can help me to do a best work.
This code works fine.
for each element in
SELECT ipeImuCd
     FROM Integracao.FGLP.IMOVEIS_PRE_EDITAIS
     WHERE Integracao.FGLP.IMOVEIS_PRE_EDITAIS.ipePedNr = 1
     AND Integracao.FGLP.IMOVEIS_PRE_EDITAIS.ipePedAa = 2008
do
     for each element2 in
          SELECT imuImovelDv
          FROM IMOVEIS_URBANOS
          WHERE imuImovelCd = element.ipeImuCd
     do
          extend this.imoveis using cdDvImovel = String(element2.imuImovelDv),
                                        cdImovel = Decimal(element.ipeImuCd),
                                        endereco = call(DEC_ENDERECO, codimovel : element.ipeImuCd, tipoimovel : 1)
     end
end
Thx a lot!!!

Similar Messages

  • How do I join with native SQL?

    I'm just starting to dip my toes in Toplink/Eclipselink using jDeveloper 11g. I've got a database schema that looks like this:
    Organization > Site > Program / MhProgram
    Every program and MhProgram has a site_id, and every site has an organization_id.
    The POJO objects wizards seems to have set the relationships up correctly and I'm able to pull out Organization objects that have siteCollections and the sites have programCollections and MhProgramCollections. The part where I'm having trouble is pulling out organizations the way I'd like to.
    I'm querying them with this SQL:
    select o.*
    from organization o,
    site s,
    program p
    where o.organization_id = s.organization_id
    and s.site_id = p.site_id
    and s.site_number = 1
    and p.program_name = "Test Name"
    The problem seems to be that Toplink isn't actually recognizing that I want to do these joins. Its grabbing an organization and then doing SQL to separately get each site, then each program. During this process SQL like s.site_number = 1 is ignored. This leaves me with siteCollections and programCollections that are just raw unfiltered rows. I've tried the same with JPQL and I'm having no luck there either.
    Am I missing something with the Native SQL support?
    Edited by: user519677 on May 5, 2009 5:32 AM

    The code is below. Its just a test client until I can get it working. When I put the word FETCH beside the INNER JOIN in the JPQL I get the following exception:
    Exception Description: Syntax error parsing the query [select o from Organization o INNER JOIN FETCH o.siteCollection s where s.siteNumber = 1 ], line 1, column 63: syntax error at [s].
    Internal Exception: MismatchedTokenException(66!=-1)
    Code:
    Project project = XMLProjectReader.read("META-INF/tlMap.xml", Thread.currentThread().getContextClassLoader());
    DatabaseSession session = project.createDatabaseSession();
    session.shouldLogMessages();
    session.login();
    session.setLogLevel(org.eclipse.persistence.logging.SessionLog.FINE);
    ReadAllQuery query = new ReadAllQuery(Organization.class);
    String EJBQuery = "select o from Organization o " +
    "INNER JOIN o.siteCollection s " +
    "where s.siteNumber = 1 ";
    query.setEJBQLString(EJBQuery);
    Collection<Organization> results = (Collection<Organization>) session.executeQuery(query);
    Edited by: user519677 on May 5, 2009 6:31 AM

  • Help - Bean Binding an SQL join to a gui component(jtable) in Netbeans?

    Good afternoon. I'd like to ask if there is a way to data bind an SQL Join from 2 or more tables to a
    GUI component(Jtable) in Netbeans. All the tutorials show is how to bind all the fields of 1 database table
    to the component. Under the BIND/ELements option the IMPORT DATA TO FORM menu only allows
    you to choose 1 among the database tables from a selected database.
    Is there a way to configure an SQL query and attach it to the component?
    Thanks.

    This is not a Swing problem. Try a NetBeans forum.

  • Problems using SQL*Loader with Oracle SQL Developer

    I have been using TOAD and able to import large (milllions of rows of data) in various file formats into a table in an Oracle database. My company recently decided not to renew any more TOAD licenses and go with Oracle SQL Developer. The Oracle database is on a corporate server and I access the database via Oracle client locally on my machine. Oracle SQL Developer and TOAD are local on my desktop and connected through TNSnames using the Windows XP platform. I have no issues with using SQL*Loader via the import wizard in TOAD to import the data in these large files into an Oracle table and producing a log file. Loading the same files via SQL*Loader in SQL Developer, freezes up my machine and I cannot get it to produce a log file. Please help!

    I am using SQL Developer version 3.0.04. Yes, I have tried it with a smaller file with no success. What is odd is that the log file is not even created. What is created is a .bat file a control file and a .sh file but no log file. The steps that I take:
    1.Right click on the table I want to import to or go to actions
    2. Import Data
    3. Find file to import
    4. Data Preview - All fields entered according to file
    5. Import Method - SQL Loader utility
    6. Column Definitions - Mapped
    7. Options - Directory of files set
    8. Finish
    With the above steps I was not able to import 255 rows of data. No log file was produced so I don't know why it is failing.
    thanks.
    Edited by: user3261987 on Apr 16, 2012 1:23 PM

  • Fetch join with Native SQL Query?

    Hello all,
    I am using the J2EE 5.0 persistence api with the SUN appserver v9. As the java persistence api does not yet support spatial queries ("... where contains(polygon, point)") I have to use native SQL queries for that purpose.
    Now my question is how can I "join fetch" my ManyToOne-related entities when using a native SQL query? Is this somehow possible using the SqlResultSetMapping annotation?

    Never mind - the problem was to do with not specifying a class when creating the native query.

  • SQL Join with a MIN condition

    Hello,
    I have two tables with the following data:
    Table DESIGN
    DOC_NO  DOC_TITLE                         CLIENT_DOC_NO
       240     MT/a Process Plant Site Grading General Plan    300-10C-011Table TRACK
    FK_TRANS_NO     FK_DOC_NO     DUE_DATE     FK_CLIENT_REV_NO
            269           240     04/05/06                 A
            600           240                           B
            610           240                           B
            623           240     14/07/06                 C
            808           240                           C
            821           240                           C
            844           240                           C
           1036           240                           0
           1262           240                           1
           1341           240                           1
           1372           240                           1
           2567           240                           2
           2570           240                           2
           2576           240                           2The required result is just the lower trans_no for each revision, somethig like this:
    CLIENT_DOC_NO   DOC_TITLE                                            TRANS_NO REV  DUE_DATE
    300-10C-011       35 MT/a Process Plant Site Grading General Plan           269 A    04/05/06
    300-10C-011       35 MT/a Process Plant Site Grading General Plan           600 B
    300-10C-011       35 MT/a Process Plant Site Grading General Plan           623 C   
    300-10C-011       35 MT/a Process Plant Site Grading General Plan          1036 0    14/09/06
    300-10C-011       35 MT/a Process Plant Site Grading General Plan          1262 1
    300-10C-011       35 MT/a Process Plant Site Grading General Plan          2567 2So, I apply the MIN function to the TRACK.FK_TRANS_NO field and the result is:
    CLIENT_DOC_NO   DOC_TITLE                                            TRANS_NO REV  DUE_DATE
    300-10C-011       35 MT/a Process Plant Site Grading General Plan           269 A    04/05/06
    300-10C-011       35 MT/a Process Plant Site Grading General Plan           600 B
    300-10C-011       35 MT/a Process Plant Site Grading General Plan           623 C   
    300-10C-011       35 MT/a Process Plant Site Grading General Plan           808 C    14/07/06      *************
    300-10C-011       35 MT/a Process Plant Site Grading General Plan          1036 0    14/09/06
    300-10C-011       35 MT/a Process Plant Site Grading General Plan          1262 1
    300-10C-011       35 MT/a Process Plant Site Grading General Plan          2567 2 The ******* shows the row that I don't want but I can't remove from the result with any of the options tried right now, this has had me crazy for a couple days.
    The SQL used right now is:
    SELECT 
         DESIGN.CLIENT_DOC_NO,
            DESIGN.DOC_TITLE,
         TRACK.FK_TRANS_NO "TRANS_NO",
         TRACK.FK_CLIENT_REV_NO "REV",
         TRACK.DUE_DATE
    FROM    DESIGN, TRACK
    WHERE     (TRACK.FK_DOC_NO=DESIGN.DOC_NO)
         AND (TRACK.TRANS_DATE  IS NOT NULL)
    GROUP BY
         DESIGN.CLIENT_DOC_NO,
         DESIGN.DOC_TITLE,
         TRACK.FK_CLIENT_REV_NO,
         TRACK.DUE_DATE
    ORDER BY 4;Please if you can help to solve this, best regards.

    Yup, thanks for the reminder on the keep keyword... I ended up with
    CREATE TABLE design AS (
    SELECT 240  doc_no, 'MT/a Process Plant Site Grading General Plan' doc_title, '300-10C-011' client_doc_no FROM DUAL
    CREATE TABLE track AS (
    SELECT 269 fk_trans_no,   240 fk_doc_no, TO_DATE('04/05/06', 'dd/mm/yy')  due_date,  'A'  fk_client_rev_no FROM DUAL UNION ALL
    SELECT 600 fk_trans_no,  240  fk_doc_no,  NULL  due_date,   'B' fk_client_rev_no FROM DUAL UNION ALL
    SELECT 610 fk_trans_no,  240  fk_doc_no,  NULL due_date,   'B' fk_client_rev_no FROM DUAL UNION ALL
    SELECT 623 fk_trans_no,  240  fk_doc_no,  TO_DATE('14/07/06', 'dd/mm/yy') due_date,   'C' fk_client_rev_no FROM DUAL UNION ALL
    SELECT 808 fk_trans_no,   240 fk_doc_no,  NULL  due_date,   'C' fk_client_rev_no FROM DUAL UNION ALL
    SELECT 821 fk_trans_no,   240 fk_doc_no,  NULL  due_date,  'C'  fk_client_rev_no FROM DUAL UNION ALL
    SELECT 844 fk_trans_no,  240  fk_doc_no,  NULL  due_date,   'C' fk_client_rev_no FROM DUAL UNION ALL
    SELECT 1036 fk_trans_no,  240  fk_doc_no, NULL   due_date,   '0' fk_client_rev_no FROM DUAL UNION ALL
    SELECT 1262 fk_trans_no,  240  fk_doc_no, NULL  due_date,   '1' fk_client_rev_no FROM DUAL UNION ALL
    SELECT 1341 fk_trans_no,  240  fk_doc_no, NULL   due_date,   '1' fk_client_rev_no FROM DUAL UNION ALL
    SELECT 1372 fk_trans_no,  240  fk_doc_no, NULL  due_date,   '1' fk_client_rev_no FROM DUAL UNION ALL
    SELECT 2567 fk_trans_no,  240  fk_doc_no, NULL   due_date,  '2'  fk_client_rev_no FROM DUAL UNION ALL
    SELECT 2570 fk_trans_no,  240  fk_doc_no, NULL   due_date,  '2'  fk_client_rev_no FROM DUAL UNION ALL
    SELECT 2576 fk_trans_no,   240 fk_doc_no, NULL   due_date,   '2' fk_client_rev_no FROM DUAL )
    SELECT  design.client_doc_no, design.doc_title, track.fk_trans_no "trans_no", track.fk_client_rev_no "rev", track.due_date
       FROM design , (select track.* , rank() over (partition by fk_doc_no, fk_client_rev_no order by fk_trans_no) hmmm from track ) track
      WHERE track.fk_doc_no = design.doc_no and hmmm = 1
    ORDER BY 3;
    CLIENT_DOC_ DOC_TITLE                                      trans_no r DUE_DATE
    300-10C-011 MT/a Process Plant Site Grading General Plan        269 A 04-MAI-06
    300-10C-011 MT/a Process Plant Site Grading General Plan        600 B         
    300-10C-011 MT/a Process Plant Site Grading General Plan        623 C 14-JUL-06
    300-10C-011 MT/a Process Plant Site Grading General Plan       1036 0         
    300-10C-011 MT/a Process Plant Site Grading General Plan       1262 1         
    300-10C-011 MT/a Process Plant Site Grading General Plan       2567 2         
    6 rows selected.
    {code}which is of course not so cool  ...  :_|
    edit: yeah I just cut the group by stuff away...
    Edited by: Slow_moe on Jan 14, 2009 12:05 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • SQL join with Nested tables

    Please look at this tables and help me how i do get result in "Result tbl" tables ..

    try that !
    select a.*, case
    when a.item_type = 1 then b.inv_date
    when a.item_type = 3 then c.deb_date
    end as item_date
    from receipt_item a
    left join invoice b on a.item_id = b.invvi_id and a.item_type = 1
    left join Debit c on a.item_id = c.deb_id and a.item_type = 3

  • SQL Join with results in one line with multiple conditions

    First post, new to the forum!
    I have two tables which I am querying from, as an example
    select a.f_name || a.l_name, case when b.bodypart='Arm' then ='Arm' end, case when b.bodypart='Leg' then 'Leg' end
    from person a
    join bodyparts b on b.person_id=a.person_id
    where b.bodypart in ('Arm','Leg')
    What this gives is something like:
    BobNewhart Arm (null)
    BobNewhart (null) Leg
    I am trying to get the following results:
    BobNewhard Arm Leg
    This is just an example, but this should give a valid picture of the issue which i am having.
    Thank you for any help!
    Richie

    Hi,
    Like Whitehat said, use GROUP BY. You don't need a sub-query; just GROUP BY the name, and use MIN or MAX around the CASE expressions:
    SELECT        a.f_name || a.l_name
    ,        MAX ( CASE
                 WHEN b.bodypart='Arm'
                 THEN ='Arm'
                 END
               )          AS arm
    ,        MAX ( CASE
                 WHEN b.bodypart='Leg'
                 THEN ='Leg'
                 END
               )          AS leg
    FROM       person           a
    JOIN       bodyparts      b  ON      b.person_id     = a.person_id
    WHERE       b.bodypart      IN ('Arm','Leg')
    GROUP BY  a.f_name || a.l_name
    ;Since there will only be one value (at most) in the arm and leg columns, it doesn't matter if you use MIN or MAX.

  • Connect to SQL Server with Oracle SQL Developer

    Hi,
    I am unable to connect to a named instance (Enigma\Enigma) on my local machine using sql developer. Every time I try to connect it says Cannot connect to Microsoft SQL Server on Enigma.
    Somebody please assist.

    Have you tried it on Forum : SQL Developer
    SQL Developer

  • Create a report with PL/SQL

    Hi,
    I have two pages: the first page contains two text fields and a submit button. In the first text field you can enter a name and in the second field you can enter a number. That means you can search a record by name or by number.
    In the second page the report is generated depending on the used text field of the first page.
    I tried to to define a region source code with PL/SQL for the report, but nothing appears on the report page although the record I was looking for exists in the database.
    begin
    if :ENTERNAME IS NOT NULL then
    FOR item IN (select "TB_PERSON_INSTITUTION"."PI_ID" as "PI_ID",
    "TB_PERSON_INSTITUTION"."PI_NAME" as "PI_NAME",
    "TB_PERSON_INSTITUTION"."PI_VORNAME" as "PI_VORNAME",
    from     "TB_PERSON_INSTITUTION" "TB_PERSON_INSTITUTION"
    where      upper("TB_PERSON_INSTITUTION"."PI_NAME") like upper(:ENTERNAME||'%'))
    loop
    DBMS_OUTPUT.PUT_LINE('First name = ' || item.PI_NAME ||
    ', Last name = ' || item.PI_VORNAME);
    end loop;
    end if;
    end;
    Regards
    Mark

    Hi,
    ok thanks. I tried to use the SQL-Report with type "SQL Query (PL/SQL function body returning SQL-Query)" and made a few changes in the SQL-Statement so that a second table is also included:
    declare My_select varchar2(500);
    begin
    if :TEXTEINGABENAME IS NOT NULL then
    My_select:='SELECT
    "TB_ADRESSE"."A_PLZ" "A_PLZ",
    "TB_ADRESSE"."A_ORT" "A_ORT",
    "TB_ADRESSE"."A_ID" "A_ID",
    "TB_PERSON_INSTITUTION"."PI_MITGLIEDSNUMMER" "PI_MITGLIEDSNUMMER",
    "TB_PERSON_INSTITUTION"."PI_NAME" "PI_NAME",
    "TB_PERSON_INSTITUTION"."PI_VORNAME" "PI_VORNAME",
    "TB_PERSON_INSTITUTION"."PI_ERGAENZUNG" "PI_ERGAENZUNG",
    "TB_PERSON_INSTITUTION"."PI_ERGAENZUNG1" "PI_ERGAENZUNG1",
    "TB_PERSON_INSTITUTION"."PI_ID" "PI_ID"
    FROM
    "TB_ADRESSE" "TB_ADRESSE",
    "TB_PERSON_INSTITUTION" "TB_PERSON_INSTITUTION"
    WHERE "TB_PERSON_INSTITUTION"."PI_ID" = "TB_ADRESSE"."A_F_PERSON_INSTITUTION"
    AND upper("TB_PERSON_INSTITUTION"."PI_NAME") like upper(:TEXTEINGABENAME||"%")';
    else
    if :TEXTMITGLIEDSNUMMER is not null then
    My_select:='SELECT
    "TB_ADRESSE"."A_PLZ" "A_PLZ",
    "TB_ADRESSE"."A_ORT" "A_ORT",
    "TB_ADRESSE"."A_ID" "A_ID",
    "TB_PERSON_INSTITUTION"."PI_MITGLIEDSNUMMER" "PI_MITGLIEDSNUMMER",
    "TB_PERSON_INSTITUTION"."PI_NAME" "PI_NAME",
    "TB_PERSON_INSTITUTION"."PI_VORNAME" "PI_VORNAME",
    "TB_PERSON_INSTITUTION"."PI_ERGAENZUNG" "PI_ERGAENZUNG",
    "TB_PERSON_INSTITUTION"."PI_ERGAENZUNG1" "PI_ERGAENZUNG1",
    "TB_PERSON_INSTITUTION"."PI_ID" "PI_ID"
    FROM
    "TB_ADRESSE" "TB_ADRESSE",
    "TB_PERSON_INSTITUTION" "TB_PERSON_INSTITUTION"
    WHERE "TB_PERSON_INSTITUTION"."PI_ID" = "TB_ADRESSE"."A_F_PERSON_INSTITUTION"
    AND upper("TB_PERSON_INSTITUTION"."PI_MITGLIEDSNUMMER") like upper(:TEXTMITGLIEDSNUMMER||"%")';
    end if;
    end if;
    return My_select;
    end;
    When I try to apply changes an error message occurs:
    "Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. The query can not be parsed, the cursor is not yet open or a function returning a SQL query returned without a value."
    Regards,
    Mark

  • How to create a Web Application when SQL is running in SQL Authentication mode ?

    Hi,
    I a have the following config:
    SQL server 2012 with mixed authentication, running in the LAN
    IIS server with SharePoint 2013 SP1, running in a DMZ --> SharePoint contacts the SQL server with a SQL login (not a Windows login, the required port has been opened in the FW)
    SharePoint is working fine but when I want to create a new Web Application, I get an error: "Could not connect to MySQLServer\MySQLInstance,MyPortnumber using integrated security: Cannot
    connect to database master at SQL server. The database might not exist, or the current user does not have permission to connect to it."
    I think, since I use SQL authentification,  I have to use PowerShell. I found a script on the Internet but this script was not made to create a Web App which a SharePoint installed with SQL authentication.
    Can you help to adapt the script ?
    Thks
    THE SCRIPT Documentation:
    New-SPWebApplication -ApplicationPool <String> -Name <String> [-AdditionalClaimProvider <SPClaimProviderPipeBind[]>] [-AllowAnonymousAccess <SwitchParameter>] [-ApplicationPoolAccount <SPProcessAccountPipeBind>]
    [-AssignmentCollection <SPAssignmentCollection>] [-AuthenticationMethod <String>] [-AuthenticationProvider <SPAuthenticationProviderPipeBind[]>] [-Confirm [<SwitchParameter>]] [-DatabaseCredentials <PSCredential>] [-DatabaseName
    <String>] [-DatabaseServer <String>] [-HostHeader <String>] [-Path <String>] [-Port <UInt32>] [-SecureSocketsLayer <SwitchParameter>] [-ServiceApplicationProxyGroup <SPServiceApplicationProxyGroupPipeBind>] [-SignInRedirectProvider
    <SPTrustedIdentityTokenIssuerPipeBind>] [-SignInRedirectURL <String>] [-Url <String>] [-WhatIf [<SwitchParameter> ]] [<CommonParameters>]
    The Example:
    $siteName = “PowerShell for SharePoint”
    $port = 80
    $hostHeader = “lab.ps4sp.com”
    $url = “http://lab.ps4sp.com&#8221;
    $appPoolName = “PS4SPAppPool”
    $managedAccount = “PS4SPspservice”
    $dbServer = “PS-SQL”
    $dbName = “PS4SP_SP2010_LAB_ContentDB”
    $allowAnonymous = $true
    $authenticationMethod = “NTLM”
    $ssl = $false
    New-SPWebApplication -Name $siteName -Port $port -HostHeader $hostHeader -URL $url -ApplicationPool $appPoolName -ApplicationPoolAccount (Get-SPManagedAccount “$managedAccount”) -DatabaseName $dbName -DatabaseServer $dbServer -AllowAnonymousAccess: $allowAnonymous
    -AuthenticationMethod $authenticationMethod -SecureSocketsLayer:$ssl
    Charles

    Hi Scott,
    Based on your aticle, I changed my script by adding the credential, but I still have an error.
    Il also put the SQL specific port in the $dbServer variable.
    Any idea ?
    MY SCRIPT:
    $siteName = "TEST Site"
    $port = 80
    $hostHeader = "sharepoint.test.be"
    $url = "http://sharepoint.test.be"
    $appPoolName = "TestAppPool"
    $managedAccount = "DISNET\administrator"
    $authenticationMethod = "NTLM"
    $dbServer = "DSPORT-SQL02\DSPORTPRDEXT,50123"
    $dbName = "WSS_TEST_Content"
    $dbServer_secPassword = ConvertTo-SecureString "MySQLPassword" -AsPlaintext -Force
    $dbServer_Creds = New-Object System.Management.Automation.PsCredential "DMZSharePointLoginSQL", $dbServer_secPassword
    New-SPWebApplication -Name $siteName -Port $port -HostHeader $hostHeader -URL $url -ApplicationPool $appPoolName -ApplicationPoolAccount (Get-SPManagedAccount "$managedAccount") -AuthenticationMethod $authenticationMethod -DatabaseName
    $dbName -DatabaseServer $dbServer -DatabaseCredentials $dbServer_Creds
    Charles

  • Performance for join 9 custom table with native SQL ?

    Hi Expert,
    I need your opinion regarding performance to join 9 tables with native sql. Recently i have to tunning some customize extraction cost  report. This report extract about 10 million cost of material everyday.
    The current program actually, try to populate the condition data and insert into customize table and join all the table to get data using native sql.
    SELECT /*+ ordered use_hash(mst,pg,rg,ps,rs,dpg,drg,dps,drs) */
                mst.werks, ....................................
    FROM
                sapsr3.zab_info mst,
                sapsr3.zab_pc pg,
                sapsr3.zab_rc rg,
                sapsr3.zab_pc ps,
                sapsr3.zab_rc rs,
                sapsr3.zab_g_pc dpg,
                sapsr3.zab_g_rc drg,
                sapsr3.zab_s_pc dps,
                sapsr3.zab_s_rc drs
            WHERE mst.zseq_no = :p_rep_run_id
            AND mst.werks = :p_werks
            AND mst.mandt = rg.mandt(+)
            AND mst.ekorg = rg.ekorg(+)
            AND mst.lifnr = rg.lifnr(+)
            AND mst.matnr = rg.matnr(+)
            ...............................................   unitl all table (9 tables)
            AND ps.mandt = dps.mandt(+)
            AND ps.knumh = dps.knumh(+)
            AND ps.zseq_no = dps.zseq_no(+)
            AND COALESCE (dps.kbetr, drs.kbetr, dpg.kbetr, drg.kbetr) <> 0
    It seems the query ask for database to using hashed table. would that be it will burden the database ? and impacted to others sap process ?
    Please advise
    Thank You and Best Regards

    you can only argue coming from measurements and that is not the case.
    Coming from the code, I see only that you do not understand it at all, so better leave it as it is. It is not a hash table, but a hash join on these table.

  • Why can't i use "INNER JOIN" in a query for SQL Server with JDBC??????

    Hi,
    I'm trying to execute some SQL queries and I just don't understand what's wrong.
    I�m using Tomcat and SQL Server in order to do this, but when I�m try to execute a query with a INNER JOIN statements Tomcat raise a SQL exception... at the very first time I thought there was a problem with database connection but I realize that a simple query to a table works pretty well. then I found out some problems with JDBC:ODBC.... so I install JDBC for SQL Server 2000 and test with the same simple query and works..... so, I come to a conclusion.... INNER JOIN or JOIN statements can't be used in JDBC..... please... somebody tell I�m wrong and give me a hand...
    I'm using TOMCAT 4 and JDK 1.4 SQL Server 2000
    Error occurs when executeQuery() is called.... not prepareStatement().... ??????
    Driver DriverRecResult = (Driver)Class.forName(driver).newInstance();
    Connection ConnRecResult = DriverManager.getConnection(DSN,user,password);
    PreparedStatement StatementRecResult = ConnRecResult.prepareStatement(query);
    ResultSet RecResult = StatementRecResult.executeQuery(); <---- Exception raise here
    So much tahnks in advance,

    That's exactly what I think, driver it's raising the exception, but I don't know why.... i test the same query with INNER JOIN directly from SQL Query Analyser and it's works perfectly, my problem ain't SQL, but JSP and JDBC 'cause i'm a newbie about these issues.
    Common sense tell me possible problems lie in SQLServer drivers 'cause i run the same pages on JRUN through jdbc:odbc and do works well, but by now i just depend on Tomcat.....
    I've installed SQL Server drivers for JDBC but i just find it doesn't work fully... could be the version of JDK i've installed? what version do i need?
    ( I'm running Tomcat 4 with JDK 1.4 & SQL Server 2000 W2K )
    thanks for reply.

  • What component is included with Microsoft SQL Servers that can be used to perform a broad range of data migration tasks?

    What component is included with Microsoft SQL Servers that can be used to perform a broad range of data migration tasks?
    a. Full Text Search service
    b. SQL Notification Server
    c. SQL Reporting Server
    d. SQL Server Integration Services

    d.
    Are you having a test and trying to cheat?
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • VM with MS SQL will not longer join domain after a reboot

    I setup several VM's and a domain. Everything was working fine until I had to shut down the machine. Now only 2 out of the 3 can join the domain. The third is a VM with MS SQL. It claims to be joined to the domain, but logging on using a domain account no
    longer works and the VM cannot see DS.  The IP address is still local.

    Hello,
    When you said "The IP address is still local", did you means the IP address of the SQL Server VM is a static IP address of a virtual network? Or it use the dynamic IP address that assigned by default. If you had congifure a statice IP address, it will not
    change after restart.
    http://www.bhargavs.com/index.php/2014/03/13/how-to-assign-static-ip-to-azure-vm/
    What error message did you received when logon with the domian account? please verify domain account is vaild and the password is not expired . What's more, you can also check the system event log, it should post more details about the issue.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

Maybe you are looking for

  • How do i install Logic Studio on my new iMac without CDD?!

    Hi! I'm getting my new iMac 21,5" delivered tomorrow, and i want to install Logic Pro the first thing i do. But, the thing is i bought the Logic Studio a few years ago, and i got the software on CD! Now, how do i do to install it on my iMac? Is there

  • MATERIAL TYPE : Production resource/Tool...

    Hi... MATERIAL TYPE : PRODUCTION RESOURCE/TOOL. Friends..i want to know about the above material .and its uses..generally i heared that this type of materials mostly used in manufacturing industries...if i want to configure this in which way i can co

  • MDX Driver WIS 10901 Error in Query as a Web service Tool

    Hello, I'm trying to design the query as a web service to use for Xcelsius Dashboard (created connection, universe etc in Designer), but can't proceed with query definition - it's only possible to put one characteristic otherwise error WIS 10901 is t

  • Oracle 10.2.0.4 RAC vip故障漂移导致监听关闭.

    环境:oracle 10.2.0.4 RAC+ASM 故障现象:vip漂移至另一节点导致监听关闭,vip漂移现象随机在2个节点中出现,数据库实例正常,只是vip漂移至另一节点,同时监听offline. # su - oracle $ crs_stat -t Name Type Target State Host ora....SM1.asm application ONLINE ONLINE p770db1 ora....B1.lsnr application ONLINE OFFLINE or

  • Ipod Touch shows apple then turns off

    so here it is, my ipod touch died and so I tried to connect it to the computer Via USB. It showed the apple then shut off and it keeps doing it... It also doesn't show up in "my computer" and a device... Please someone help!!