Select from huge data using constraints.

Hi All,
Good morning.
I am Bhargav, I have a table(rem1) with structure as below:
msgid varchar2(32) primary key,
req_id varchar2(15)
enq_tid varchar2(12)
and another table(rem2) with structure as below:
req_id varchar2(15) primary key
Each table has around 2.7 million records
I want to select the rows from rem1 where the req_ids are not in rem2 table. I used the below query as:
select msgid,enq_tid from remq where req_id not in (select req_id from req_id);
but it takes age. Please suggest me the best query using any joins or some other logic.
Thanks alot.
Bhargava Sriram.

Among the options
SELECT req_id FROM rem1
MINUS
SELECT req_id FROM rem2or
SELECT req_id
  FROM rem1
WHERE NOT EXISTS (
    SELECT 1
      FROM rem2
     WHERE rem2.req_id = rem1.req_id
   )Justin

Similar Messages

  • Printing a selection from a document using HP E Print

    Hello all,
    Is it possible to print a selection from a document using e-Print? I currently can emailt he entire document to my printer however that is it.

    Hi dayanks101,
    Thank you for being a member of the HP Support Community. I see that you would like to learn how to choose which pages print from a multi-page document.
    Since you have the document in an email already it’s fairly easy to choose which pages you would like to print if you are using the HP ePrint app. I’m presuming that you have already download the HP ePrint mobile app to your iPad and added your email account to the app.
    Please follow these steps after you have opened the HP ePrint app
    Choose the email with the document you need to print.
    Please choose the document you want to print (for my screen shot the file is titled “scan 2014_05_29 08-55-01.pdf). This will load the document with the available print options.
    Please tap on “Page Range”. It will give you the options of ‘Single’ or ‘Multiple’.
    If you are choosing to print just one page please choose ‘Single’ and then choose the page you would like to print.
    If you are choosing to print a range of pages please choose ‘Multiple’ and then choose the page range you would like to print.
    I hope this helps you print just want you need.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Multiple Selection from a data block

    Hello,
    I have a data block returning the names and surnames of employees. Can I select multiple rows from that data block?
    Thank you

    You could put a checkbox on the row and if it is ticked then interpret this as a selected row.
    Sometimes it is useful to store this type of selection in some type of structure like a record group or index by table and process those rows rather than read the data block

  • Customer creation in R/3 from PI data using IDOCs

    Hi All,
    I am creating customers in SAP r/3 system using IDOCs which are coming from PI system in the form of XML files.
    For that DEBMAS and ADRMAS message types and DEBM process code is used for creating or changing customer master data.
    Existing functionality : 1 IDOC is creating/changing 1 customer master data using standard function module IDOC_INPUT_DEBITOR.
    Required Functionality: need to create/change data for multiple customers using only one IDOC file.
    I have tried using DEBMDM. Unlike DEBMAS, message type DEBMDM can hold  multiple customers but if any DEBMDM IDOC sent to R/3, it was remaining in status 75 with message 'IDOC Received via qRFC'.
    Any help will be appreciated.
    Thanks & Regards,
    Anshoo

    Hi,
    Status 75 refers to that "IDoc is in inbound queue".
    Transaction SMQ2 (qRFC Monitor - Inbound Queue)
    Transaction WEINBQUEUE (IDoc Inbound Queue).
    The transactional asynchronous tRFC guarantees that all database operations are fully executed or, if one of the function modules responds with a termination, they are fully rejected (rollback). If an LUW is executed without errors, it cannot be executed again. In some cases it may be necessary, to rollback an LUW in an application program, for example, because a table is locked.
    Regards,
    Srilatha.

  • Addon disconnected while retrieving huge data using orecordset on client

    Hi,
    My addon is using orecordset to retrieve about 11000 records on client pc and the addon disconnected while processing half way. When I trace the error, it seems like when the server fetches the records back to client pc, the addon disconnected. However, it's run perfectly on the server.
    This addon has another function that fetches a small records using orecordset and it's working fine on the client pc.
    Is there a limitation of using orecordset to fetch huge volume of data?
    Appreciate if anyone could help.
    Regards,
    Cherine

    Hi,
    My sdk is used to do GL Consolidation. What it does is to extract journal entries from other company and do some calculation and store the data in UDT. This sdk is installed on the holding company. I use ocompany.connect to connect to other company and once it is connected I will execute a query to extract the journal entries from this company back to my holding company and store the data in UDT.
    The addon stop half way while retrieving journal entries due to large volume of data.
    The connection to other company is as below:-
    With oSubCompany
            .Server = oCompany.Server
            .CompanyDB = DbName
            .UseTrusted = False
            .UserName = Login
            .Password = Password
            .DbUserName = DBLogin
            .DbPassword = DBPwd
            If SQLVer = "MSSQL2005" Then
                 .DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005
            Else
                 .DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL
            End If
            If .Connect <> 0 Then
               .GetLastError(ErrCode, ErrMsg)
                Throw New ApplicationException("Failed to connect to Source Company: " )
            End If
    End With
    The query is as below:-
    select j.transid, j.transtype, j1.baseref, j.memo, j.refdate, j.number, n1.seriesname, j1.line_id, j1.account, j1.debit, j1.credit, j1.profitcode, a.acctname, a.formatcode, a.u_acquisition,
    Replace((Case When a.U_ConsolAcct = '*' Then a.FormatCode Else a.U_ConsolAcct End),'-','') As 'ConsolAcct', (Case When a.groupmask < 4 Then 'BS' Else 'PL' End) As 'AcctTyp'
    from OJDT j left join JDT1 j1 on j.transid = j1.transid
    left join nnm1 n1 on n1.objectcode = 30 and n1.series = j.series
    left join oact a on a.acctcode = j1.account
    where j.refdate >= oSubRecordset1.Fields.Item("f_refdate").Value
    and j.refdate <= oSubRecordset1.Fields.Item("t_refdate").Value
    and isnull(a.u_acquisition,'') <> 'Y'"
    oSubRecordset.DoQuery(sQuery)
    I just wander whether is it disconnected due to the connection to other company got disconnected or oRecordset disconnected after sometimes.
    For 2005A SP20, do we still use com object? How and where to set the time out value?
    Regards,
    Cherine

  • Read Infopackage selection from a table using ABAP

    Hello Experts,
    I have a flat file consisting of 3 columns which I want to use as selection fields for the Infopackage. Now, is it possible to load this flat file to an ODS or a master data table and then write some ABAP  in the Infopackage to read the values of the columns and populate the selection fields.
    This is what I want: The columns of the flat file are  - Company Code, Doc number, Fiscal Year
    Now, I loaded this file into a tables (around 2 million records) and then use ABAP to populate the entire file into the selection tab of the Infopackage.
    What would be the best approach for this?
    Thanks in advance
    Vivek

    Hi,
    It's possible in theory. Just one thing, too many selections in an InfoPackage may not work (I remember about 1,000 or 10,000, not very sure).
    I'd like suggest loading a range rather than so many selections. For example, say you have below documents:
    1000
    1001
    1005
    1010
    Then just load from 1000 to 1010, and create a start routine in your update rule/transformation. There you can do this:
    1. select records from the table where you store flat file, using the same selection (1000 to 1010)
    2. For every records in DATA_PACKAGE, using READ TABLE statement to check whether that record exist in the table. If not exist then simply delete it from DATA_PACKAGE
    I think that would have much better performance. Let us know if you have further questions.
    Regards,
    Frank

  • Pre-selecting from Spry Data Select Box

    Hi
    I am new here so sorry if this is in the wrong section/format
    I am using Two Spry XML Datasets to populate 2 dropdown boxes with  vehicle makes and the connected model names (there are other fields but for the sake of clarity I will only show these 2). The XML is dynamically generated by PHP/MySQL and works great for initially creating records. The problem I have is when I want to edit my record and so pre-select the data in the dropdown select box. The first box is easy and works fine but the second box only updates when the first is updated using the 'onchange' and I cannot get it to update on load. I can get it to update 'onclick' or other events but I need it to  update the second box when the page loads. Any ideas? I am sure there is a simple solution staring me in the face, but I just can't see it
    My code is listed below. I have cut out all the unnecessary code to make it more clear (hopefully)
    <script src="../../SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="../../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    var dsmakes = new Spry.Data.XMLDataSet("xmlgenmake.php", "vehicle/makes");
    var dsmodel = new Spry.Data.XMLDataSet("xmlgenmodel.php?xmlmake={dsmakes::make}", "makes/models/model");
    </script>
    </head>
    <body>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
    <span spry:region="dsmakes" id="makeSelector">
      <select spry:repeatchildren="dsmakes" id="makeSelect" name="make" onchange="document.forms[0].modelSelect.disabled = true; dsmakes.setCurrentRowNumber(this.selectedIndex);">
        <option spry:if="'{dsmakes::make}' == '<?php echo $row_Recordset1['make']; ?>'" value="{dsmakes::make}" selected="selected">{dsmakes::make}</option>
        <option spry:if="'{dsmakes::make}' != '<?php echo $row_Recordset1['make']; ?>'" value="{dsmakes::make}">{dsmakes::make}</option>
      </select>
    </span><span spry:region="dsmodel" id="modelSelector">
    <select spry:repeatchildren="dsmodel" id="modelSelect" name="model">
      <option spry:if="'{dsmodel::model}' == '<?php echo $row_Recordset1['model']; ?>'" value="{dsmodel::model}" selected="selected">{dsmodel::model}</option>
      <option spry:if="'{dsmodel::model}' != '<?php echo $row_Recordset1['model']; ?>'" value="{dsmodel::model}">{dsmodel::model}</option>
    </select>
    </span>
    </body>
    </html>

    Sorry for not being clear -
    The first Spry Select box populates with the Vehicle Makes and selects the stored make from the DB. The second box is supposed to populate with the corresponding Vehicle Models (corresponding to the Vehicle Make in box one) but it initially only populates with the first makes data (not the selected one) if I add:    onfocus="dsmakes.setCurrentRowNumber(this.selectedIndex);     to the first box it works as it should as soon as it receives focus and the second box updates and selects the correct model.
    I have tried adding
    Spry.Utils.addLoadListener(InitPage);
         function InitPage() {
           dsmakes.setCurrentRowNumber(makeSelect.selectedIndex);
    but I cannot get the second box to update without clicking on the first
    It seems there should be s simple solution to this but I cannot see it.

  • Fetch 1-n relation data from XML Data using XMLTable

    Dear All,
    Following query is running fine.
    with t as (select XMLType('<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
       <env:Header/>
       <env:Body>
          <nm:CustomerCRMByIDResponse xmlns:nm="http://sap.com/xi/CRM/Global2" xmlns:prx="urn:sap.com:proxy:DCT:/1SAI/TAS57DF0B317943DEAE3C49:702">
             <MessageHeader/>
             <BusinessPartner>
                <InternalID>2200117598</InternalID>           
                <AddressInformation>
                   <UUID>51471396-9ae8-3cc0-e100-80000a031a28</UUID>
                                        <DefaultIndicator>true</DefaultIndicator>
                   <Address>
                      <PostalAddress>
                         <CountryCode>DE</CountryCode>
                         <CountryName>Country Name</CountryName>
                      </PostalAddress>
                      <Telephone>
                         <Number>
                            <SubscriberID>0711/123456</SubscriberID>
                            <ExtensionID>0</ExtensionID>
                            <CountryCode>DE</CountryCode>
                            <CountryDiallingCode>+49</CountryDiallingCode>
                            <CountryName languageCode="de">Country Name</CountryName>
                         </Number>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <MobilePhoneNumberIndicator>false</MobilePhoneNumberIndicator>
                         <SMSEnabledIndicator>false</SMSEnabledIndicator>
                         <DefaultIndicator>true</DefaultIndicator>
                      </Telephone>
                      <Telephone>
                         <Number>
                            <SubscriberID>0711/999999</SubscriberID>
                            <CountryCode>DE</CountryCode>
                            <CountryDiallingCode>+49</CountryDiallingCode>
                            <CountryName languageCode="de">Country Name</CountryName>
                         </Number>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <MobilePhoneNumberIndicator>true</MobilePhoneNumberIndicator>
                         <SMSEnabledIndicator>true</SMSEnabledIndicator>
                         <DefaultIndicator>false</DefaultIndicator>
                      </Telephone>
                      <Facsimile>
                         <Number>
                            <SubscriberID>0711/999888</SubscriberID>
                            <ExtensionID>99</ExtensionID>
                            <CountryCode>DE</CountryCode>
                            <CountryDiallingCode>+49</CountryDiallingCode>
                            <CountryName languageCode="de">Country Name</CountryName>
                         </Number>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <DefaultIndicator>true</DefaultIndicator>
                      </Facsimile>
                      <EMail>
                         <URI>[email protected]</URI>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <DefaultIndicator>true</DefaultIndicator>
                      </EMail>
                      <EMail>
                         <URI>[email protected]</URI>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <DefaultIndicator>false</DefaultIndicator>
                      </EMail>
                      <Web>
                         <URI>www.xyz.com</URI>
                         <UsageDeniedIndicator>false</UsageDeniedIndicator>
                         <DefaultIndicator>true</DefaultIndicator>
                      </Web>
                   </Address>
                </AddressInformation>
                <AddressInformation>
                   <UUID>514a519b-39a2-4890-e100-80000a031a28</UUID>
                                        <DefaultIndicator>false</DefaultIndicator>
                   <Address>
                      <PostalAddress>
                         <CountryCode>AT</CountryCode>
                         <CountryName>Österreich</CountryName>
                      </PostalAddress>
                   </Address>
                </AddressInformation>
             </BusinessPartner>
          </nm:CustomerCRMByIDResponse>
       </env:Body>
    </env:Envelope>') xml_data from dual)
    SELECT xmlresponse.*
    FROM t, XMLTable(Xmlnamespaces('http://www.w3.org/2003/05/soap-envelope' AS "env",
                                                                      'http://sap.com/xi/CRM/Global2' AS "nm",
                                                                      'urn:sap.com:proxy:DCT:/1SAI/TAS57DF0B317943DEAE3C49:702' AS "prx"
                                            'for $BusinessPartner in /env:Envelope/env:Body/nm:CustomerCRMByIDResponse/BusinessPartner                 
                        return $BusinessPartner'
                                            PASSING xml_data
                                            COLUMNS
                                            Internalid Varchar2(4000) Path 'InternalID' 
                                            ) xmlresponse;As you can see, one "BusinessPartner" can have multiple "AddressInformation"
    and one "AddressInformation" can have multiple "Telephone".
    Can someone suggest me how can I extract both InternalID & UUID in one query? For above example output should look as follows..
    InternalID UUID
    2200117598 51471396-9ae8-3cc0-e100-80000a031a28
    2200117598 514a519b-39a2-4890-e100-80000a031a28Thank you very much in advance.
    Regards,
    Hari

    Here is a basic example of one method to achieve what you need
    SELECT xmlresponse.Internalid, xml2.uuid
      FROM t,
           XMLTable(Xmlnamespaces('http://www.w3.org/2003/05/soap-envelope' AS "env",
                                  'http://sap.com/xi/CRM/Global2' AS "nm"
                    '/env:Envelope/env:Body/nm:CustomerCRMByIDResponse/BusinessPartner'
                    PASSING xml_data
                    COLUMNS
                    Internalid   Varchar2(20) Path 'InternalID',
                    addrinfoxml  XMLType      PATH 'AddressInformation'
                   ) xmlresponse,
           XMLTable('/AddressInformation'
                    PASSING xmlresponse.addrinfoxml
                    COLUMNS
                    UUID         Varchar2(80) Path 'UUID'
                   ) xml2;Changes:
    I removed one of namespaces as you only need to include those included in an XPath statement.
    I shortened your datatypes.
    I went for the simple XMLTable joined to an XMLTable approach, instead of a single XMLTable using a FLWOR statement.
    You can include the addrinfoxml column to your SELECT list to see the data being passed between the two if you want.
    Addition:
    Here's one approach for a single XMLTable.
    SELECT xmlresponse.*
      FROM t,
           XMLTable(Xmlnamespaces('http://www.w3.org/2003/05/soap-envelope' AS "env",
                                  'http://sap.com/xi/CRM/Global2' AS "nm"
                    'for $BP in /env:Envelope/env:Body/nm:CustomerCRMByIDResponse/BusinessPartner
                      for $ai in $BP /AddressInformation
                       return <e>{$BP/InternalID}{$ai/UUID}</e>'
                    PASSING xml_data
                    COLUMNS
                    Internalid   Varchar2(20) Path 'InternalID',
                    UUID         Varchar2(80) Path 'UUID'
                   ) xmlresponse;Edited by: A_Non on Mar 25, 2013 9:41 AM
    Added in XQuery solution

  • User Defined field in UDT - how to create select from existing data

    Hi
    I want to create User Defined Table for purpose of storing records of sales visits made to customers.
    I want to record detail for example: Date of Visit; Sales Employee; Activity number ref (which has attached PDF visit report); Related Opps)
    I am not sure exact detail as I have never created User Defined Table before so I am not sure how best to achieve my requirement.
    But I want one of the fields to be Business Partner code.
    My question is How should I set the BP field so that available options are existing Business Partner codes?
    I would like to set field so that if I enter for example:
    "CAQ"... and I click Tab key then SAP will bring list of BP Codes which begin with CAQ (eg. CAQU001; CAQF001 etc) for my selection.
    Is this possible?
    Regards,
    Karen

    hi.
    u can create a user defined table enter your values..by creating columns like..
    Customercode, customer name, vitst time, attachnment.
    but
    "CAQ"... and I click Tab key then SAP will bring list of BP Codes which begin with CAQ (eg. CAQU001; CAQF001 etc) for my selection.
    above one u can not do it..
    all the cutomer codes will come if u use coding........are u can filter as per ur requirement
    else
    if u say i  am not using the coding..
    u can get all the  business master codes... but u have to use fms  u have to put it..otherwise u can not do it...

  • How to display contineous 10 dates from today date using SQL query

    Hi All
    I need a requirement of displaying 10 dates and numbers contineously, I have written a query for getting 10 numbers like this
    select rownum from dual where rownum < 10 connect by rownum = level;
    But i am not able to get the dates, Can any one help me ?

    Hi Satyaki,
    No issues on my 9.2.0.8 client.
    SQL*Plus: Release 9.2.0.8.0 - Production on Sat May 3 09:49:17 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    SQL> conn test/test@db10g
    Connected.
    SQL> select rownum, trunc(sysdate) + rownum from dual where rownum <= 10 connect by rownum = level;
        ROWNUM TRUNC(SYS
             1 04-MAY-08
             2 05-MAY-08
             3 06-MAY-08
             4 07-MAY-08
             5 08-MAY-08
             6 09-MAY-08
             7 10-MAY-08
             8 11-MAY-08
             9 12-MAY-08
            10 13-MAY-08
    10 rows selected.
    SQL> Regards

  • How to get an object of choice from XML data using XMLBean?

    I have xml schema and I have generated a jar to represent my schema using XMLBean. I also have few xml data files, these are valid xml for generated schema. Now I want to write a utility which takes xml file as input and returns an object of my choice (Assuming this Object type is available in the jar) as output and vice versa. Some thing like this –
    1. Object getObjectFromXML(File xmldatafile, Class classname)
    xmldatafile = presents the source of XML data
    classname = an object of this class type as output filled from the xml data.
    2. String getXMLStrFromObject(Object)
    Pass Object and get XML as String output
    Any pointer?
    Thanks,

    Hi! Maybe have a look at the documentation for XmlObject.Factory.parse(). It should allow you what you need to do.
    Cheers,
    G.

  • How to find tables from extracted data using lo cockpit

    I have extracted data form 2lis_02_scl using Lo cockpit and replicated in sap bw.
    Now i want to know from which tables the data was extracted .pls giv info.
    Thanks in advance.
    Regards,
    Hari Reddy

    One quick way - search Help.
    Tables are EKKO, EKPO, EKET , EKPA
    http://help.sap.com/saphelp_nw70/helpdata/en/8d/bc383fe58d5900e10000000a114084/content.htm

  • Displaying image from binary data using java

    hi there,
    i have created a swing applet displays me a url, what the url returns me is the image in binary format, and i want to show the complete image using that binary data
    so how do i do it.
    some thing like this :
    URL url = new URL("http://192.168.1.1:8086/file-storage/download/Zerg.jpg?version_id=35688");
    JEditorPane jep = new JEditorPane();
    jep.setPage(url);
    output is in binary on my applet window.

    Hey,
    This displays an image from a url, you could check if your url is and image or not using URL.getFileName() and see if it ends in gif jpeg etc. and then display it this way.
    hope it helps
    Nick Hanlon
    import java.awt.*;
    import java.awt.Image.*;
    import java.awt.Toolkit.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.text.html.*;
    public class SimpleApp extends JFrame {
    public static void main(String args[]) {
    SimpleApp aFrame = new SimpleApp();
    public SimpleApp() {
    super("Frame");
    /*JEditorPane jep = new JEditorPane();
    jep.*/
    try {
    HTMLEditorKit htmlKit = new HTMLEditorKit();
    JEditorPane ep = new JEditorPane();
    try {
    ep.setEditorKit(htmlKit);
    BufferedReader in = new BufferedReader(
    new StringReader(
    "<HTML><IMG SRC=\"http://developer.java.sun.com/images/chiclet.row.gif\"></HTML>"));
    htmlKit.read(in, ep.getDocument(),0);
    getContentPane().setLayout(new BorderLayout());
    setResizable(false);
    getContentPane().add(ep, "North");
    pack();
    show();
    } catch (javax.swing.text.BadLocationException e) {}
    } catch (IOException e) {}
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) { System.exit(0); }
    }

  • Select from multiple tables using max

    I have these 3 tables listed below and I want to write an sql that would give me
    WORKER_ACCOUNT.Name along with his latest status (which can be derived from WORK_LOG.Status for max(WORK_LOG.Log_ID) )
    I want NULL for missing status.
    Any help appreciated
    DROP TABLE WORKER_ACCOUNT;
    CREATE TABLE WORKER_ACCOUNT
    NAME VARCHAR2(255) NULL,
    ID INTEGER NULL
    INSERT INTO PANDORA_SVC.WORKER_ACCOUNT VALUES ('John Doe', 51);
    INSERT INTO WORKER_ACCOUNT VALUES ('Jane Doe', 52);
    DROP TABLE WORK_ASSIGNMENT;
    CREATE TABLE WORK_ASSIGNMENT
    WORKER_ID INTEGER NULL,
    WORK_ID INTEGER NULL
    INSERT INTO WORK_ASSIGNMENT VALUES (51, 101);
    INSERT INTO WORK_ASSIGNMENT VALUES (52, 102);
    DROP TABLE WORK_LOG;
    CREATE TABLE WORK_LOG
    WORK_ID INTEGER NULL,
    LOG_ID INTEGER NULL,
    STATUS VARCHAR2(255) NULL
    INSERT INTO WORK_LOG VALUES (101, 1, 'INITIATED');
    INSERT INTO WORK_LOG VALUES (101, 2, 'INVESTIGATING');
    INSERT INTO WORK_LOG VALUES (101, 3, 'FILING REPORT');
    COMMIT;
    Edited by: 811677 on Feb 22, 2011 11:10 PM

    try it please
    with data as
    (select wa.worker_id, wc.name, nvl(wl.status,'MISSING') status , nvl(wl.log_id,-1) LOG_ID
    from work_log wl, work_assignment wa, worker_account wc
    where wl.work_id(+)=wa.work_id
    and wa.worker_id(+)=wc.id)
    select worker_id, name, status
    from data a
    where
      log_id = (select max(b.log_id ) from data b
                  where a.worker_id = b.worker_id
                group by b.worker_id)or
    with data as
    (select wa.worker_id, wc.name, nvl(wl.status,'MISSING') status , nvl(wl.log_id,-1) LOG_ID
    from work_log wl, work_assignment wa, worker_account wc
    where wl.work_id(+)=wa.work_id
    and wa.worker_id(+)=wc.id)
    select worker_id, name, status, log_id from
    (select worker_id, name, status, log_id, max(log_id) over (partition by worker_id order by worker_id) max_log
    from data )
    where log_id = max_logEdited by: Mahir M. Quluzade on Feb 23, 2011 11:37 AM

  • Selecting from 2 pages using button HELP!!

    i have 2 buttons in my application. i need to open 2 different jsp pages from 2 butttons. i.e if a user clicks on 1 button he should be redirected to 1 page and if he clicks another button he should be redirected to another page.
    help please

    Whats so hard about it?
    Put them in two different html links.
    If you are submitting a form, have an onclick event that changes the form action attribute.
    ie <input type="submit" onclick="this.form.action='page1.jsp' ">
    Or alternatively give the buttons two different names/values and dispatch the request at the server end
    if (request.getParameter("button1") != null){
      RequestDispatcher rd = request.getRequestDispatcher("page1.jsp");
      rd.forward(request, response);
    else if (request.getParameter("button2") != null){
    }Cheers,
    evnafets

Maybe you are looking for

  • Can't charge the actualization page of the App Store.

    Since few days I can't charge the actualization page of the App Store. AnyOther page works normally.... O_o

  • WILL SOMEONE HELP ME

    Verizon wireless was a great company for years.  The last few years I have had them however have been horrible.   I have unexplained charges on my bill constantly. I was harassed by a worker at your call center.  Complained and was ignored.  Had to s

  • IDCS2 Error when install 4.0.5. update

    Win XP. I never have been able to install 4.0.5. update. It either asks for a disk or gives an error. Can someone direct me to the solution? Thank you.

  • Problem with iphoto 09 (lost all faces/locat) when installing Snow leopard

    Hi, Before updating to the new snow leopard I did a back up using time machine so I am safe with regards to all photos I have. I first use to use Aperture 2 but found it not useful and when Iphoto 09 came I bought it and imported all photos from Aper

  • Table for Sales Order Header Text

    Hi, I want Table Name for Sales Data -> Header Text. Path-- When we open the Sales order, Click on Display Document Header Details --> Here select the Text tab. Here, see the written text in Form Header (1st option). I want that table Name which cont