Report needed to list the persons- not returning the safety tools back

dear friends,
in our client place, the stores departement, allots safety equipements to thier employee's, by mentioning duration period for return.
stores departement, already noted the date of issue and date of return in asset register.some of the employees are not returning the safety equipements,.
in as01- create asset field(from  & to  )duration is specified. how to track this.
so my clients is asking a report,which describes the list of employees, they were not returning the safety tools. is there any way to do this.
kindly help me in getting the solution.
regards,
g.v.shivakkumar

Well, this is really a SQL question, not an ApEx question, but here goes....
Your query would return r_number and status_id from any record that contains a status_id of 2 and not 4. Well, if it's 2, it can't be 4, so it's really returning any record where status_id is 2, which would be rows with ID 12, 876, and 33. What I think you want is a query where you find a status_id of 2 and no other record in the database has the same r_number only with a status_id of 4.
Try
select r_number, status_id from table1
where status_id = '2'
and r_number not in (select r_number from table1 where status_id = '4')
This works, but may not be the most efficient query.

Similar Messages

  • Take the personal note of the transaction QA32

    Bom dia pessoal,
    Eu estou com um problema que eu preciso pegar a nota pessoal da transação QA32, mais não estou conseguindo eu ja procurei pela função READ_TEXT mais não consegui achar, tem alguma outra forma de pegar esse tipo de texto?
    Segue a baixo a imagem de como esse texto aparece.

    Discussão movida de Comunidade SAP em Português (Portuguese Language Community) para Bancos de Dados & Tecnologia (Database & Technology)

  • OraDynaSet not returning the correct number of records.

    Hello All, I am writing VB code in Excel 2007 and retrieving records from a Oracle 9i database. When I run my query from TOAD or any other sql app I get 56 records returned for certain query. However, when I do it from VB in excel and write the values to the excel file, it will not return the last 3 records, any suggestions? Here is part of my code:
    Worksheets("Report").Range("A3").Value = ""
    Worksheets("Report").Range("B3").Value = "Period"
    Worksheets("Report").Range("C3").Value = "Budget"
    Worksheets("Report").Range("D3").Value = "Projected"
    strSQL = "select group_name,period_name,budget_value,budget_value project from nlas_bdgt_loading_stg where plant = " & plant & " and group_number = 1 order by group_number, period_num"
    Set OraDynaSet = objDataBase.DBCreateDynaset(strSQL, 0&)
    If OraDynaSet.RecordCount > 0 Then
    OraDynaSet.MoveFirst
    'Loop the recordset for returned rows
    For i = 4 To OraDynaSet.RecordCount
    'Put the results in columns
    ActiveSheet.Cells(i, 1) = OraDynaSet.Fields(0).Value
    ActiveSheet.Cells(i, 2) = OraDynaSet.Fields(1).Value
    ActiveSheet.Cells(i, 3) = OraDynaSet.Fields(2).Value
    ActiveSheet.Cells(i, 4) = OraDynaSet.Fields(3).Value
    OraDynaSet.MoveNext
    Next i
    End If
    Thanks,
    Chris

    Hello.
    It's a bit weird. It works for me. If you have a look at oo4o help:
    CopyToClipboard Method
    Example
    Applies To
    OraDynaset
    Description
    Copy the rows from the dynaset to the Clipboard in text format.
    Usage
    OraDynaset.CopyToClipboard(NumOfRows ,colsep [optional],rowsep [optional] )
    Arguments
    NumOfRows     Number of rows to be copied to the dynaset ,
    colsep     Column separator in CHAR to be inserted between columns
    rowsep     Row seperater in CHAR to be inserted between Rows
    Remarks
    This method is used to facilitate transfer of data between Oracle Object for OLE’s cache (dynaset) and Windows applications such as Excel or Word. CopyToClipboard copies data starting from current position of the dynaset up to the last row.
    Default column separator is TAB (ASCII 9).
    Default row separator is ENTER (ASCII 13).
    Can it be that you don't have all the References needed?
    Octavio

  • My phone was stole and i report it as a lost and the person who found the phone had connect to the internet many times but Icloud dont tell me the location of the phone !!! Tf

    My phone was stole and i report it as a lost and the person who found the phone had connect to the internet many times but Icloud dont tell me the location of the phone !!! i dont know why i cant see the location why!!!!!

    Hello,
    Go to
    https://www.icloud.com/#find
    Sign in. Under the "Devices" Tab, if you iPhone isn't listed, Find my iPhone was never set up and there is no way to track it. If it appears, but is shown as offline, it means that it was set-up but is currently not trackable (no wifi connection active). Best of luck.

  • ExecuteWithParams is not returning the rows from cache

    Hi,
    We have two VO's based on same entity ,whenever new row is inserted in one VO and we do executeWithParams on another VO ,It is not returning the rows which are uncommitted.
    I replaced the executeWithParams with a custom method in AM in which I am executing the query after applying the view criteria and setting query mode.Its returning rows which are uncommitted.
    Jdev Version which I am using is 11.1.1.7.0
    ExecuteWithParams used to work with uncommitted data in 11.1.1.6.0 .
    Do we need to raise a bug on framework or Am I missing something?
    Edited by: sharavnkumar_malla on Oct 18, 2012 1:02 AM

    Still the same answer, even after you updated the question. We (the public) don't have 11.1.1.7, know nothing about 11.1.1.7, and cannot help you with 11.1.1.7. Questions about internal builds belong on internal forums.

  • When using rabbitmq-jms for vFabric RabbitMQ javax.jms.Message.getJMSDestination does not return the actual destination when it is received from a consumer listening on a Topic with a wild card

    When using rabbitmq-jms for vFabric RabbitMQ javax.jms.Message.getJMSDestination does not return the actual destination when it is received from a consumer listening on a Topic with a wild card. I have tested with both 1.0.3 and 1.0.5 clients with RabbitMQ 3.1.5.
    I was wondering if the community was aware of this problem and if there are any workarounds? If not what is the proper channel to file a bug report. An example code snippet is below. The test fails because the TextMessageMatcher expects the destination passed in on construction (second parameter) to equal the desination on the message received (aquired from getJMSDestination).
            Mockery context = new Mockery();
            final MessageListener messageListener = context.mock(MessageListener.class);
            final Latch latch = new LatchImpl();
            final String prefix = "test" + System.currentTimeMillis();
            context.checking(new Expectations() {
                    oneOf(messageListener).onMessage(with(new TextMessageMatcher("MSG1", prefix + ".1234")));
                    will(new CustomAction("release latch") {
                        @Override
                        public Object invoke(Invocation invocation) throws Throwable {
                            latch.unlatch();
                            return null;
            final Connection connection = createConnection(null, null);
            Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
            connection.start();
            Topic wildcardTopic = (Topic) getInitialContext().lookup(prefix + "." + "#");
            Topic destination = (Topic) getInitialContext().lookup(prefix + ".1234");
            final MessageConsumer consumer = session.createConsumer(wildcardTopic);
            consumer.setMessageListener(messageListener);
            MessageProducer producer = session.createProducer(null);
            producer.send(destination, session.createTextMessage("MSG1"));
            latch.await(5000);
            connection.close();
            Thread.sleep(5);
            context.assertIsSatisfied();

    Check where your MDB sends the [response] messages to.

  • I NEED HELP!! Been calling since the end of Nov and being charged for a Warranty device. The device was returned the next day!! Been calling twice a week.. NEED RESOLUTION

    I NEED HELP!! Been calling since the end of Nov and being charged for a Warranty device. The device was returned the next day!! Been calling twice a week.. I NEED HELP 6 TCC TICKETS HAVE BEEN OPENED - PROMISED CALLS BACK AND NEVER GET CALLS.
    About to cancel my account and move to AT&T
    TCC TICKETS:  (removed)
    I am trying here for the last resort. After this evening my account along with my business account will be cancelled. Total lines that Verizon will have lost will be 93 lines.
    PLEASE SOMEONE JUST HELP ME!!!!
    I already tweeted and facebook messaged Verizon. Your CS group has gone down hill over the last 3-6 months. I use to enjoy being a customer.
    >> Edited to comply with the Verizon Wireless Terms of Service <<

    not all the lines have ETF's. I have 30 tablets and the rest phones. The phones have ETFs and the tablets are all month to month.
    The total to move my account over is going to come out to about $8500.
    Rep has been trying to get my business for years.  I was always loyal to Verizon until this happened.

  • Crystal Report Runtime Error 9.0.Could not open the report

    Hi,
    Getting the Crystal Report Runtime Error 9.0.Could not open the report while Run on Launch Application. Actually in Launch Application, created a link for exe which is having crystal reports. We can open the Crystal Reports from the exe outside B1.
    Note: SAP 2007, Crystal Report 2008 is using.Normally can open crystal report.
    Any help to fix the error is appreciated.
    Thanks & Regards,
    Parvatha Solai.N

    Hi,
    Please post screen shot of error message here.
    Thanks & Regards,
    Nagarajan

  • I need the code to delete record in the database not in the form???

    I need the code to delete record in the database not in the form...
    because when i execute a form always insert the datas in the data base but i want insert value on a text file and delete in the data base the record whith this value of text file.
    i'm spanish an my english is bad sorry.
    thank, javier

    Well, I fail to understand why you want to complicate easy things, but anyway you can do that by using TEXT_IO within Forms to create text file (see Forms builder help), and UTL_FILE package to read it within Pl/Sql : you could create a stored procedure, and call it from Forms passing the file name as parameter. See UTL_FILE documentation

  • Print Problem - PDF is OK on Windows 7, but OK on Windows XP with "Acrobat Reader An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem."

    I have received a PDF which prints fine in Windows 7 but with Windows XP I get "Acrobat Reader An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem." and a blank piece of paper passes through the printer. I appreciate that Windows XP is no longer supported but I would like to think that the solution to this problem is not too difficult!
    I have tried Acrobat 9, 10 and 11.
    Any advice (apart from use Windows 7! ) would be most welcome.
    Many thanks.

    If you use the same Adobe Reader versions with the same PDF on Windows 7 and XP, then I would expect the outcome to be the same.
    Is this a local or online PDF?
    If local, is the file really exactly the same?
    If online, in what browser?

  • TABLE(CAST()) function not returning the correct results in few scenarios.

    I am using TABLE(CAST()) operation in PL/SQL and it is returning me no data.
    Here is what I have done:
    1.     Created Record type
    CREATE OR REPLACE TYPE target_rec AS OBJECT
    target__id          NUMBER(10),
    target_entity_id NUMBER(10),
    dd           CHAR(3),
    fd           CHAR(3),
    code      NUMBER(10),
    target_pct      NUMBER,
    template_nm VARCHAR2(50),
    p_symbol      VARCHAR2(10),
    pm_init          VARCHAR2(3),
    target_name     VARCHAR2(20),
    targe_type     VARCHAR2(30),
    target_caption     VARCHAR2(30),
    sort_order      NUMBER (4)
    2.     Created Table type
    CREATE OR REPLACE TYPE target_arr AS TABLE OF target_rec
    3.     Created Stored procedure which accepts parameter of type target_arr and runs the Table(Cast()) function on it.
         Following is the simplified form of my procedure.
         PROCEDURE get_target_weights
         p_in_template_target IN target_arr,
         p_out_count          OUT NUMBER,
         IS
         BEGIN
              SELECT count(*) into p_out_count
         FROM TABLE(CAST(p_in_template_target AS                     target_arr)) arr;
         END;
    I am calling get_target_weights from my java code and passing p_in_template_target with 10140 records.
    Scenario 1: If target_pct in the last record is 0, p_out_count returned from the procedure is 0.
    Scenario 2: If target_pct in the last record is any other value(say 0.01), p_out_count returned from the procedure is 10140.
    Please help me understand why the Table(Cast()) is not returning the correct results in Scenario 1. Also adding or deleting any record from the test data returns the correct results (i.e. if keep target_pct in the last record as 0 but add or delete any record).
    Let me know how can I attach the test data I am using to help you debugging as I don’t see any Attach file button on Post Message screen on the forum.

    I am not able to reproduce this problem with a small data set. I can only reproduce with the data having 10140 records.
    I am not sure if this is the memory issue as adding a new record also solves the problem.
    This should not be the error because of wrong way of filling the records in java as for testing purpose I just saved the records which I am sending from java in a table. I updated the stored procedure as well to read the data from the table and then perform TABLE(CAST()) operation. I am still getting 0 as the output for scenario 1 mentioned in my last mail.
    Here is what I have updated:
    1.     Created the table target_table
    CREATE Table target_table
    target_id          NUMBER(10),
    target_entity_id NUMBER(10),
    dd           CHAR(3),
    fd           CHAR(3),
    code      NUMBER(10),
    target_pct      NUMBER,
    template_nm VARCHAR2(50),
    p_symbol      VARCHAR2(10),
    pm_init          VARCHAR2(3),
    target_name     VARCHAR2(20),
    target_type     VARCHAR2(30),
    target_caption     VARCHAR2(30),
    sort_order      NUMBER (4)
    2.     Inserted data into the table : The script has around 10140 rows. Pls let me know how can I send it to you
    3.     Updated procedure to read data from table and stored into variable of type target_arr. Run Table(cast()) operation on target_arr and get the count
    PROCEDURE test_target_weights
    IS
         v_target_rec target_table%ROWTYPE;
         CURSOR wt_cursor IS
         Select * from target_table;
         v_count NUMBER := 1;
         v_target_arr cws_target_arr:= target_arr ();
         v_target_arr_rec target_rec;
         v_rec_count NUMBER;
         BEGIN
         OPEN wt_cursor;
         loop
              fetch wt_cursor into v_target_rec; -- fetch data from table into local           record.
              exit when wt_cursor%notfound;
              --move data into target_arr
              v_target_arr_rec :=                     cws_curr_pair_entity_wt_rec(v_target_rec target_id,v_target_rec. target_entity_id,
                        v_target_rec.dd,v_target_rec.fd,v_target_rec.code,v_target_rec.target_pct,
         v_target_rec.template_nm,v_target_rec.p_symbol,v_target_rec.pm_init,v_target_rec.template_name,
         v_target_rec.template_type,v_target_rec.template_caption,v_target_rec.sort_order);
              v_target_arr.extend();
              v_target_arr(v_count) := v_target_arr_rec;
              v_count := v_count + 1;
         end loop;
         close wt_cursor;
         -- run table cast on target_arr
         SELECT count(*) into v_rec_count
         FROM TABLE(CAST(v_target_arr AS target_arr)) arr;
         DBMS_OUTPUT.enable;
         DBMS_OUTPUT.PUT_LINE('p_out_count ' || v_rec_count);
         DBMS_OUTPUT.PUT_LINE('v_count ' || v_count);
    END;
    Output is
    p_out_count 0
    v_count 10140
    Expected output
    p_out_count 10140
    v_count 10140

  • I work for the County and we purchased a copy of Adobe Photoshop CS2 long ago.  The person that did the order is no longer here.  All I have is the CD Disk that is new but i did not know the key code is.  Is there a way to get the keycode for this?

    I work for the County and we purchased a copy of Adobe Photoshop CS2 long ago.  The person that did the order is no longer here.  All I have is the CD Disk that is new but i did not know the key code is.  Is there a way to get the keycode for this?

    It would not work anyway. The activation servers have been retired and Adobe has provided a new CS2 download along with a new serial number for CS2 owners.
    Download Acrobat 7 and CS2 products
    Gene

  • When I sync my phone it gets to step 6 the does not complete the sync i get a message that says itunes has stopped working and needs to close anyone else have this issue

    When I sync my phone it gets to step 6 the does not complete the sync i get a message that says itunes has stopped working and needs to close anyone else have this issue

    The same problem here!... My itunes stucks on "preparing to sync" when sync my ipad 2, and stucks on iphone 4 calendar sync...
    Any solution?? Need help, please!!
    Macbook pro 13 i7
    Iphone 4
    Ipad 2
    Thanks!!!

  • 2 of my personas dissappeared 'My Gallery' since they've rearranged the viewingorder (from highest ranking to creationdate), and 2 of them are showing double. My designer name is 'Nielske' and the personas not showing in my gallery are: "Madonna - Intervi

    2 of my personas dissappeared from 'My Gallery' since they've rearranged the viewingorder (from highest ranking to creationdate), and 2 of them are showing double. My designer name is 'Nielske' and the personas not showing in my gallery are: "Madonna - Interview Magazine Collection" and "Madonna - Interview Magazine 4". However they are showing in the complete Persona Database if searched under Madonna (page 5).
    == This happened ==
    Every time Firefox opened
    == the personas in My Gallery (Personas by designer Nielske) got sorted bij date of creation instead of highest ranking

    I have the same problem.
    Here is the link to my gallery - http://www.getpersonas.com/en-US/gallery/Designer/manishp100
    as you will see these two, at least, do not appear - I cant remember if there are more that dont.. im sure there might be -
    http://www.getpersonas.com/en-US/persona/245197
    http://www.getpersonas.com/en-US/persona/245212

  • Oracle reports output in excel format does not display the graphs

    Oracle reports output in excel format does not display the graphs: "linked image cannot be displayed".
    The output file in PDF format the graph is supported.

    Do you have any header and footer on your template?
    If you have any header and footer then try to adjust it as of to display full page.
    Thanks
    Yasar

Maybe you are looking for

  • How to delete the data in P,Q and S table

    Hi All, I want to delete the data in /BIO/PCOSTCENTER, /BIO/QCOSTCENTER AND /BIO/SCOSTCENTER. Since we have transported the costcenter infoobject from 3.0B to BI 7. But the 3.0B doesnot contain the ALPHA conversion. So we need to delete the infoobjec

  • Visual C++ runtime error on startup audition cs5.5 win8.1

    After reinstalling Audition cs5.5, I get a visual C++ runtime error at startup.  I have never had a problem before on a reinstallation.  I have tried uninstall and reinstall without any success.  Is their a version of Visual C++ that is needed here? 

  • Missing column in the column chart - is it the selector's fault?

    Hi folks, thanks for bearing with me here: I'm working on fixing some issues on a dashboard that someone else has set up (and there's no way for me to reach that person).  One of those issues is that one of the columns in a column chart does not disp

  • Bigtime Problems With Volume Mounts

    Dear kind, helpful, charitable, community of Apple users, I'm been spinning my wheels on this for a week now and I'm totally stuck. I'm sufficiently desperate that I thought about offering a cash bounty via PayPal. (But I can't figure out an equitabl

  • ITunes has lost all my playlists!

    ...and Party Shuffle is missing as well (I presume since it has no playlists from which to shuffle as the pre-loaded pl's are also missing) but all the actual music seems to be intact. I think this happened after the second-to-last update- 7.4.3 has