Selection of data in the table in a table

I use apex 3.2

I have a report where he returnts say 3 rows.


I need to select data from a table in and table and then use the data in this table in a body of email

or select the data in the table and use the data in the body of the sub form of e-mail

How can I do this. ?

something like below

Empno name e-mail address
1 XX [email protected]
2 bb [email protected]
3 [email protected] aa

Hello

You can take the values in the table in the cursor and use it in the part of the email.
It will be like,

Cursor c1 is
Select Empno, emp email;

In the part of the body

Hardcode the values of the columns inside html tags

l_body: = '

';

I'm in c1
loop
l_body: = l_body | »

';
end loop;
l_body: = l_body | »
EmpNo
i.EmpNoi.Namei.email
';

then use the variable 'l_body' inside your share email.

I hope this helps.

Kind regards
LIBERATOR

Tags: Database

Similar Questions

  • How to write a simple select query to get the data of the table as an XML.

    How to write a simple select query to get the data of the table as an XML. In the query, I'm just adding items below which i need be there in the XML document
    select '<test_tag>'||EMP_NAME||'</test_tag>','<date>'||sysdate||'</date>' 
    from temp_table where id_num BETWEEN 1 AND 10;
    I have need to add the root tag as well in the beginning and the end of < root > < / root > this xml file. Please advice if this is possible with the select query
    without using XMLGEN, XMLQUERY or any other packages built and function?

    I need to URL escapes with the UTF-8 code points that we have already achieved using the utl_http package. Please help how to do that without using the utl_http package.

    What is wrong with him?

    At present, the only way I can think of to avoid a call to UTL_HTTP. SET_BODY_CHARSET is to write your own little wrapper.
    In this way, you can specify the Boolean parameter or omit it if you choose to use named parameters:

    SQL> create or replace function my_url_escape (url in varchar2)
      2  return varchar2
      3  deterministic
      4  is
      5  begin
      6   return utl_url.escape(url, false, 'AL32UTF8');
      7  end;
      8  /
    
    Function created
    
    SQL> select my_url_escape('http://some.uri.com/param?lang=fr&text=contrôle') from dual;
    
    MY_URL_ESCAPE('HTTP://SOME.URI
    --------------------------------------------------------------------------------
    http://some.uri.com/param?lang=fr&text=contr%C3%B4le
     
    
  • Of the data in the table to get a tree using declarative and perform operations above.

    Hello

    I use Jdeveloper 11.1.2.4.

    I'm creating a declarative component. The component is supposed to display the data in a table and allow the user to remove entries of it.

    The table should be included in a pop-.

    From now on, I made a picture of the tree within a collection of panels. I'm creating a tree in the pagedefinition of the ViewController project file and passing the tree of the same model to the component attribute declarative. After binds the attribute passed to table component tree declarative, I am able to fill lines. First please let me know if my approach is correct or not. The user can select any row of the table and press delete. The button must remove the entry from the table. Is it possible to remove operation on the table in the declarative component.

    Thank you

    First of all, please let me know if my approach is correct or not.

    Seems ok

    The user can select any row of the table and press delete. The button must remove the entry from the table. Is it possible to remove operation on the table in the declarative component.

    You have several ways to do this:

    (a) similar to the declarative component attribute, you can bind methods, for example: ADF Essentials eCourse - declarative components ADF: work with methods

    (b) pass the name of the iterator to your component and then use it to remove programmatic in backing bean

    (c) create pageDef declarative component for, something similar to this: ADF practice: liaison for component container declarative

    Dario

  • Choose the date of the table

    Hello

    It comes to my table
    CREATE TABLE TEMP_LEAP
      (
        "DATE_FROM" DATE
      )
    Insertion of the data in it with the procedure which takes 2 parameters of date format:
    CREATE OR REPLACE
    PROCEDURE  "T_PROC" (p_dat_from date, p_dat_to date) IS
    BEGIN
    
    
    DECLARE
    
      day       number     := 0;
      st           NUMBER := 0;
    
    BEGIN
    
    day := p_dat_to+1 - p_dat_from; 
    
    for p in 1 .. day     
               
    loop   
                    
       insert into temp_leapp (date_from) values (p_dat_from+st);    
                    
        st := st+1;  
                  
    end loop;  
               
     commit; 
    END;
    END;
    Now lets fill in the data in the table:
    execute T_PROC(TO_DATE('01.01.2010','DD.MM.YYYY'),TO_DATE('17.08.2013','DD.MM.YYYY'));
    Data are now filled in the table.

    I want to do is do a select statement that will make the following output data:
    01.01.2010 - 31.12.2011
    01.01.2012 - 31.12.2012
    01.01.2013 - 17.08.2013
    I want is to get the leap year if there is a. I only need of days in the year, so don't mind the months.

    I need to check if there is a leap year in considering the p_dat_from and p_dat_to.

    If it isn't then you will get a single record of our instruction select and values will be made of: p_dat_from - p_dat_to.

    If there is a leap year in our period we will arrive after statements (example above).

    01.01.2010 - 31.12.2011 <-first date is p_dat_from and second is the last day before the leap year
    01.01.2012 - 31.12.2012 <-this is leap year. First date is the beginning of the leap year and the last date is the end of the leap year or p_date_to (if it ends in leap years).
    01.01.2013 - 17.08.2013 <- and this is the period after the leap years.

    It is a piece of code that I fell or with up to now:
    SELECT
    MIN(date_from),
    MAX(date_from)
    FROM temp_leap
    WHERE remainder(to_number(to_char(date_from,'yyyy')),4) = 0
    union
    
    SELECT 
    
    MIN(date_from) over (partition by to_char(date_from,'yyyy')),
    MAX(date_from) OVER (PARTITION BY to_char(date_from,'yyyy'))
    FROM temp_leap
    WHERE remainder(to_number(to_char(date_from,'yyyy')),4) <> 0
    
    ORDER BY 1,2;
    OK, that's all. I hope that its understandable that I do.
    If you have a questions please ask away.

    PS is there anything I need to do. You don't have to bother with the questions "what i February is after before etc." I don't love about it. All the other logic is already fixed all I need is what I wrote above.

    Thank you.

    Published by: BluShadow on March 14, 2013 08:24
    Fixed barcode labels

    Here's a way...

    SQL> create table temp_leap(date_from DATE)
      2  /
    
    Table created.
    
    SQL>
    SQL> insert into temp_leap
      2  select date '2010-01-01' + rownum - 1
      3  from dual
      4  connect by rownum <= (date '2013-08-17' - date '2010-01-01') + 1
      5  /
    
    1325 rows created.
    
    SQL>
    SQL> commit
      2  /
    
    Commit complete.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  select min(date_from)||' - '||max(date_from)
      2  from
      3        (select date_from
      4              ,sum(leap_yr_switch) over (order by date_from) as leap_yr_switch_cnt
      5        from (
      6              select date_from
      7                    ,case when lag(leap_yr) over (order by date_from) != leap_yr then 1 else 0 end as leap_yr_switch
      8              from (
      9                    select date_from
     10                          ,case when mod(to_number(to_char(date_from,'YYYY')),400) = 0
     11                                 or (    mod(to_number(to_char(date_from,'YYYY')),4) = 0
     12                                     and mod(to_number(to_char(date_from,'YYYY')),100) != 0
     13                                    )
     14                           then 1 else 0 end as leap_yr
     15                    from temp_leap
     16                   )
     17             )
     18       )
     19  group by leap_yr_switch_cnt
     20* order by min(date_from)
    SQL> /
    
    MIN(DATE_FROM)||'-'||MAX(DATE_FROM)
    -------------------------------------------
    01-JAN-2010 00:00:00 - 31-DEC-2011 00:00:00
    01-JAN-2012 00:00:00 - 31-DEC-2012 00:00:00
    01-JAN-2013 00:00:00 - 17-AUG-2013 00:00:00
    

    Published by: BluShadow on March 14, 2013 08:51
    a slight correction in the calculation of the leap year, forgotten 100 years being does not leap.

  • How to share data in the tables ' User_ * ' with another schema

    I want to share the data in the table WHERE USER_SEGMENTS with another schema. If I create a view and grant select on the view, when the other schema queries the view data are identical to themselves querying the SYS.user_segments table directly.
    create view sys_user_segments as select * from sys.user_segments;
    grant select on sys_user_segments to A;
    My guess is that the SYS.user_segments table is a view based on the current user.

    Is there a way to share such data without creating a copy of the table?

    Oracle: 10g

    Thank you

    If the ADMINISTRATOR is concerned about B access to DBA_SEGMENTS (or by creating DBA_SEGMENTS views that belongs to a user who has access on top and then grant access to this view of B), it seems pretty crazy allow that kind of database connection.

    If you create a database link belonged to B that connects to A, B is, in substance, given any privilege that has exercises. But it is done in a very, very dark which will no doubt be neglected in the future when someone gets a check. He'll be sitting here to wait that someone (accidentally or intentionally) Decides to exploit the security hole and do something that is causing a problem (by removing all data from a table, grabbing all the sensitive data in a table, etc.). Risks of this almost certainly far, far* far * outweigh the risks of even leaving B to obtain direct access to DBA_SEGMENTS.

    Justin

  • Insert XML data from the Table-&gt; back to null

    Dear Experts,

    -I have table xml as below:

    Example of CREATE TABLE (XML_spec XMLTYPE);

    Insert in the example
    Select ' < name of Message = "dataStaticInvestor" type = "IncomingMessage" >
    < name of field = "batchReference" > OPENINGBATCH000000 < / field > < List name = "data" >
    < = record name "data" >
    < name of field = "externalReference" > 01234567890aaaaaaa < / field >
    < name of field = "participantID" > OD001 < / field >
    < name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
    < / recording >
    < = record name "data" >
    < name of field = "externalReference" > 01234567890aaaaaaa < / field >
    < name of field = "participantID" > OD001 < / field >
    < name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
    < / recording >
    < = record name "data" >
    < name of field = "externalReference" > 01234567890aaaaaaa < / field >
    < name of field = "participantID" > OD001 < / field >
    < name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
    < / recording >
    < / list >
    < / message > ' double.

    Select * example;

    create table hasil1 (c1 varchar2 (500), c2 varchar2 (500), c3 varchar2 (500));

    -This step I create the procedure to insert xml data into the table as the batch.

    DECLARE
    x XmlType;
    BEGIN
    Select XML_SPEC in x for example;

    insert into hasil1
    SELECT
    p.Extract('/Record/Field/@externalReference').getstringval (C1),
    p.Extract('/Record/Field/@participantID').getstringval (C2),
    p.Extract('/Record/Field/@participantName').getstringval () as c3
    TABLE (XMLSequence (Extract(x,'Message/List/Record'))) p;
    commit;
    END;
    /

    -when the result of select hasil1, the output is back 3 rows and 3 columns, but all data is a null *.

    Best regards
    Sigcle

    You don't explain what output you need, but I guess something like this:

    SQL> insert into hasil1 (c1, c2, c3)
      2  select x.c1, x.c2, x.c3
      3  from example t
      4     , xmltable(
      5         'Message/List/Record'
      6         passing t.xml_spec
      7         columns c1 varchar2(500) path 'Field[@name="externalReference"]'
      8               , c2 varchar2(500) path 'Field[@name="participantID"]'
      9               , c3 varchar2(500) path 'Field[@name="participantName"]'
     10       ) x
     11  ;
    
    3 rows inserted
    
    SQL> select * from hasil1;
    
    C1                     C2        C3
    ---------------------- --------- --------------------------------
    01234567890aaaaaaa     OD001     EQUITY SECURITIES INDONESIA,PT
    01234567890aaaaaaa     OD001     EQUITY SECURITIES INDONESIA,PT
    01234567890aaaaaaa     OD001     EQUITY SECURITIES INDONESIA,PT
     
    
  • Privileges - hide the data on the table, but allow the visualization of the table structure?

    I was wondering if there is a lien that would allow someone to be able to view a table exists, its column names, but hide the contents of the actual data in the table?

    I know he has a right to SELECT which, if not given it seems just totally hide the table

    Thanks in advance

    I was wondering if there is a lien that would allow someone to be able to view a table exists, its column names, but hide the contents of the actual data in the table?

    The solutions are:
    -grant SELECT on DBA_TAB_COLUMNS ;
    -a custom view SYS. CUSTOM_TAB_COLUMNS selects from DBA_TAB_COLUMNS, which is filtered for specific schemas/tables.
    -Fine grain access
    -Security label

    Published by: user11181920 on October 23, 2012 11:15

  • convert the data in the table to mix cases

    Hi all

    I have a table that contains data.
    This table has columns, id, and description.

    I want to update my table to convert data to toss the case.
    From now on, all my data in the table are tiny.

    What I mean when mixed is the first letter of each word is capitalized and the rest lowercase.
    is there a function I can use?

    example:
    Amended/Resentence, Type Unknown
    Thank you

    You can use the INITCAP function.

    update table
    set description = INITCAP(description);
    

    Example:

    create table test (description varchar(50));
    
    Table created
    
    insert into test values ('amended/resentence, type unknown');
    
    1 row inserted
    
    select * from test;
    
    DESCRIPTION
    --------------------------------------------------
    amended/resentence, type unknown
    
    update test set description = initcap(description);
    
    1 row updated
    
    select * from test;
    
    DESCRIPTION
    --------------------------------------------------
    Amended/Resentence, Type Unknown
    
  • inserting data into the table

    Hi all
    I use forms [32 bit] Version 6.0.8.24.1 (Production)
    Oracle Database 10g Release 10.2.0.1.0 - Production
    I have settings such as the (optional) emp_code and the year (mandatory field - four digits).
    Based on the setting that I have to get the detail of a table and these must be inserted at the other table with columns of additions (to hardcode the additional columns).
    To achieve this, I intend to get a cursor by selecting the required fields in the table by the way the where clause of the cursor parameters.
    by making a loop through the cursor I will insert the records in the other table.
    Here, the thing is that the data is going to be huge (since the year is the parameter).
    so my approach causes the performance issue.
    I heard that there is a different method of insetions
    can anyone suggest me the best way (performance wise) other than what I mentioned (if you are aware of)...

    Thank you...

    user13329002 wrote:
    Thanks for everyone.
    I have to take the data from the table as e_name, e_code, of the table and insert it into another table with some other values such as
    e_name, e_code, as well as I add 'n', 'o'.
    its something like

    insert into e_emp(emp_name,emp_code,emp_add,emp_status,emp_type)
    select e_name,e_code,e_add,'O','N')
    from e_table
    where e_date = Parameter.
    

    in other words, the values for Emp_status, emp_type I have no values in the e_table.so table and enter in e_table I have to hard code it.
    CAL I hard code as I mentioned in my statement example

    can someone clear me of the foregoing.

    Thank you...

    Published by: user13329002 on February 15, 2011 20:11

    Yes... You can hardcode the values for Emp_status, emp_type.

    SQL> CREATE TABLE e_emp(emp_code NUMBER(10),emp_status VARCHAR2(1),emp_type VARCHAR2(1));
    
    Table created.
    
    SQL> create table e_table as (select * from e_emp);
    
    Table created.
    
    SQL> INSERT INTO e_table(emp_code) VALUES('1111');
    
    1 row created.
    
    SQL> insert into e_table(emp_code) values('2222');
    
    1 row created.
    
    SQL> select * from e_table;
    
      EMP_CODE E E
    ---------- - -
          1111
          2222
    
    SQL> insert into e_emp(emp_code,emp_status,emp_type) (select emp_code,'0','N' from e_table);
    
    2 rows created.
    
    SQL> select * from e_emp;
    
      EMP_CODE E E
    ---------- - -
          1111 0 N
          2222 0 N
    
    SQL> 
    

    I hope this helps.

    Kind regards
    Claudy

  • update of the data in the table

    create or replace procedure SP_MIS_LEDGER_ON_DEMAND_V2
    as

    date of var_date1;

    DATE OF VAR_STARTDATETIME;
    DATE OF VAR_ENDDATETIME;
    -VAR_EXECUTE_FOR_DATE DATE;
    -VAR_STATEMENT VARCHAR2 (4000);
    VAR_ELAPSEDTIME VARCHAR2 (50);
    NUMBER OF VAR_INTRIMSTATUSID;

    CURSOR c1 IS
    SELECT DISTINCT ta.accountid, PROCESSDATE, (NVL(payment,0)) PAYMENT, TOTALDUE day 0, CURBILL 0, NVL (srf, 0) SRF, NVL (sbpnt, 0) sbpnt, NVL (srv, 0) SRV, NVL (sbf, 0) SBF, NVL (SBV, 0) SBV, NVL (EF, 0) EF, NVL (EV, 0) EV, NVL (TSRV, 0) TSRV, NVL (tsub, 0) TSUB, NVL (teqe, 0) TEQE, NVL (DT, 0) DT, NVL (A.dep, 0) RDEP , NVL (B.DEP, 0) PAPD, NVL (pnt, 0) PNT, NVL (eqp, 0) EQP, NVL (dB, 0) DTR, NVL (WA, 0) WA, NVL (dice, 0) OF a
    (select day SEPARATE, accountid)
    Of
    syntblmaccount, tblmtime, where yyyy = 2010) your,.
    (SELECT accountid,
    The SUM (srfee) CRS.
    SRV SUM (srvat),
    SBF SUM (subfee),
    SBV SUM (subvat),
    SUM EF (eqefee),
    SUM EV (eqevat),
    Tsrv, SUM (ttlsrv),
    Tsub SUM (ttlsub),
    Teqe SUM (ttleqe),
    SUM (dep) the dep,
    SUM (dt) dt, trunc (FROMDATE) FROMDATE
    OF VWDT_V6
    Accountid group, trunc (FROMDATE)
    ),
    (SELECT accountid,
    TNP (TNP) SUM,
    SUM (subpnt) sbpnt,
    EQP SUM (eqpnt),
    SUM (dep) the dep,
    SUM DTR (DEPTRANSFER),
    DRF SUM (DEPREFUNDED),
    SUM (dice) of PaymentData trunc (PaymentData)
    OF vwkt_v4
    GROUP BY accountid, trunc (paymentdate)
    ) b.
    (SELECT ACCOUNTID accountid, TRUNC (createdate) CREATEDATE, PAYMENT of a SUM of (amount)
    of syntbltcreditdocument
    where CREDITDOCUMENTTYPEID IN ('CDT01', 'CDT04')
    credit group by accountid, TRUNC (createdate))
    where your .accountid = a.accountid (+)
    and your .accountid = b.accountid (+)
    and your .accountid = credit.accountid (+)
    and your .day = a.FROMDATE (+)
    and your .day = credit.createdate (+)
    and your .day = b.paymentdate (+)
    and ta.day = to_date('01-MAY-2010','DD-MON-YYYY');

    BEGIN

    SELECT MAX (PROCESSDATE) IN THE VAR_DATE1 OF MIS_LEDGER_DETAIL_TEST;

    SELECT SYSDATE INTO VAR_STARTDATETIME FROM DUAL;

    SELECT SEQ_PRC_STATUS. NEXTVAL INTO VAR_INTRIMSTATUSID FROM DUAL;

    C1_rec IN C1
    LOOP
    OUTPUT WHEN c1% NOTFOUND;

    MIS_LEDGER_DETAIL_tEST update
    A.PAYMENT = c1_rec.payment, VALUE
    A.TOTALDUE is c1_rec. TOTALDUE,
    A.CURBILL is c1_rec. CURBILL,
    A.SRF = c1_rec.srf,
    A.SBPNT = c1_rec.sbpnt,
    A.SRV = c1_rec. SRV,
    A.SBF = c1_rec. SBF,
    A.SBV = c1_rec. SBV,
    A.EF = c1_rec. EF,
    A.EV = c1_rec.ev,
    A.TSRV = c1_rec.tsrv,
    A.TSUB = c1_rec.tsub,
    A.TEQE = c1_rec. Teqe,
    A.DT = c1_rec. DT,
    A.PDEP is c1_rec. PAPD,
    A.RDEP IS C1_REC. RDEP,
    A.PNT = c1_rec. PNT,
    A.EQP = c1_rec. EQP,
    A.DTR = c1_rec. DTR,
    A.DRF = c1_rec. WA,
    A.UNADJ = c1_rec.unadj
    where A.accountid = c1_rec.accountid
    and A.processdate = C1_REC.processdate
    and a.processdate = to_date('01-MAY-2010','DD-MON-YYYY');

    END LOOP;

    commit;
    SELECT SYSDATE INTO VAR_ENDDATETIME FROM DUAL;


    SELECT CAST (VAR_ENDDATETIME AS TIMESTAMP).
    CAST (VAR_STARTDATETIME AS TIMESTAMP) VAR_ELAPSEDTIME
    FROM DUAL;

    INSERT INTO LedgerStatusSummary (StatusID, procedurename, STARTDATETIME, ENDDATETIME, LastExecutionDate, NextExecutionDate, LastModifiedDate, TIMETAKEN, Procedurestatus) VALUES
    (VAR_INTRIMSTATUSID, "SP_MIS_LEDGER_ON_DEMAND", VAR_STARTDATETIME, VAR_ENDDATETIME, TRUNC (VAR_DATE1), TRUNC (VAR_DATE1) + 1, VAR_STARTDATETIME, VAR_ELAPSEDTIME, "MENUAL");

    COMMIT;

    EXCEPTION
    WHILE OTHERS
    THEN DBMS_OUTPUT. Put_line ("an error has occurred - ' |") SQLCODE |' - ERROR - ' | SQLERRM);


    END SP_MIS_LEDGER_ON_DEMAND_V2;


    I 9830 data MIS_LEDGER_DETAIL_tEST table... I update of data in the table, but it takes more time to update for TI 01-May-2010 not complete execution in 15 minutes so I abort it...



    How to write queries to update...? Please guide me...

    Thanks in advance

    exec SP_MIS_LEDGER_ON_DEMAND_V2

    Cursor for loops have been obsolete in Oracle for this entire decade and well in the past: over 12 years now. Why are you writing?

    http://www.morganslibrary.org/reference/array_processing.html


    Why did someone write code Oracle 8.0 in 2010?

  • How to publish a data in the table from another table

    Oracle forms6i

    Hai All

    I created a form in order to generate traffic. I had a problem that I can post that two data

    I have two tables, a table is created dynamically the data in the tables are extracted from the text file, and they are divided and stored fields are

    Bartime Bardate barcode

    000011 0815 01/08/2010 - it came

    000012 0816 01/08/2010

    000013 0815 01/08/2010

    000011 1130 08/01/2010 - he goes for a break

    000011 1145 01/08/2010 - it comes once again in

    000011 1650 01/08/2010

    000012 1655 01/08/2010

    000013 1645 08/01/2010 - it home

    That I need to transfer this data to the database table, the table name is dail_att and the fields are
    Code bars, timein, timeout, breakin, escape, day like I need like this

    Barcode Timein Breakin Breakout Timeout Attend_date

    000011 0815 1130 1145 1650 01/08/2010

    I tried to use some service number and rank of count, but it does not work Pls I give good solutions

    The encoding is


    declare
    The CNT number;
    bar_code varchar2 (25);
    date of bar_date;
    in_time varchar2 (25);
    out_time varchar2 (25);
    intr_intime varchar2 (25);
    intr_outtime varchar2 (25);

    Cursor c1 is
    SELECT count (*), barcode, bardate, bartime
    -ROW_NUMBER() over (order by bartime) RN
    of temp_attendance
    Group of barcodes, bardate, bartime

    order by bardate;
    Start
    To r1 c1 loop
    -Select the barcode, bardate, bartime
    -ROW_NUMBER() on the partition by barcodeorder by bartime: nurse
    -of temp_attendance
    -the Group of barcodes, bardate, bartime
    -order by bardate;

    If (cnt < = 1) then
    Select the code bar, intimate, intrtimein, introuttime, outtime, attend_date in bar_code, in_time, intr_intime, intr_outtime, out_time, bar_date from dail_att where attend_date = r1.bardate - 1;

    Update dail_att set outtime = r1.bartime where attend_date = r1.bardate and barcode is r1.barcode.;
    elsif (cnt < = 2) then
    insert into dail_att(barcode,attend_date,intime,outtime)
    values (R1. Barcode, R1.bardate, min (R1. Bartime), Max (R1. Bartime));
    -other
    -update dail_att set outtime = r1.bartime where attend_date = r1.bardate and barcode is r1.barcode.;
    end if;

    End loop;
    forms_ddl ('commit');
    exception
    while others then
    forms_ddl ('rollback');
    message(SQLERRM|| dbms_error_Text);
    message(SQLERRM|| dbms_error_Text);
    End;




    Thanks and greetings

    Srikkanth.M

    You seem to always have the same problem, but give it different titles. It would be much easier that you would hold a thread open until its resolved. The last time you had this problem that I posted the following code, it didn't help you? (Replace x and y in each if or ELSIF with the calendar you want to watch)

    CURSOR cr IS
      SELECT CODE,
             DATE,
             TIME
        FROM FROM TEMP_ATTENDANCE
       ORDER BY CODE, DATE, TIME;
    BEGIN
      FOR rec IN cr LOOP
        IF rec.TIME BETWEEN x AND Y THEN
          -- Update record for last day
          ..
        ELSIF rec.TIME BETWEEN x AND Y THEN
          -- Update record
         ..
        ELSIF rec.TIME BETWEEN x AND Y THEN
          -- Update record
         ..
        ELSIF rec.TIME BETWEEN x AND Y THEN
          -- Update record
         ..
        ELSIF rec.TIME BETWEEN x AND Y THEN
          -- Update record
         ..
        ELSIF rec.TIME BETWEEN x AND Y THEN
          -- Update record
         ..
        END IF;
      END LOOP;
    END;
    
  • Read xls file and display the data in the table.

    Hello

    Try to read the data from an xls or csv file and fill the same data in the table. If I need to use the table to store the data from the file and display, hoping that someone could help.

    Thank you

    Hari

    Hi hari,.

    One thing that is very important when you use the Excel activeX interface (in case you need it) is good termination of worksheet/workbook/lettering handles.

    You need these handles to specify what cell in which file you are trying to access.

    If you are unable to throw each handle you have, then you will be left with ghost Excel process in your task manager, devours your system's memory.

    Thus, when debugging of your application, open the Task Manager and the watch as Excel treats created/destroyed and make sure that you end up with zero Excel process running when your application is closed.

    Also consider the case of fault for your program. Check that your exit routes did not omit any termination of handle.

  • How can insert different types of data in the table?

    Hello
    How can I insert different types of data in the table, (e.g., numeric and string) in the same index of a table.

    example:
    index0 car 10 green

    car red 11 index1
    Index2 car Blue 12

    where green car red and blue car as string and 10, 11 and 12 in the numeric form.
    then I extracted 10, 11 and 12 a digital table

    and, the green car, red car, blue car in a string array

    Help!

    Use 'Analysis of the chain' as in the picture as an attachment.  This will extract the number and color that you can add tables later.

  • problem with the storage of the data in the table

    Hello

    I'm having the problem on the storage of data in the table. My problem is that whenever he makes a loop, the table just keep replacing them rather save to the next index. At 0, the value is 123, and 1 is 234. But I saw that all the data capture all crush to 0 until the last data see the 0. How can I fix this problem?


  • How to add data to the table changed in sql developer at Apex and vice versa

    Hello

    I had tables of database with sql developer. But now, I have modified the database (new tables added + changed the data in the tables). However, in the Apex, I the old database. Is it possible to get the new Apex database with the data of the table changed so this database in both places (sql and apex developer) is exactly the same... Also the other way around.

    Thank you

    The database schema that contains the tables, is it associated with the workspace even you are searching through the APEX product t development?  Why I'm asking is, if they are the same schema, the tables that you MODIFIED should be appear in the sql for APEX workshop part.  Now reports and forms will NOT see the changes (unless you have actually added or updated definitions for column).

    Can you explain what exactly you were doing the SQL Developer to the tables in your schema?

    Thank you

    Tony Miller
    Los Alamos, NM

Maybe you are looking for

  • My Chase Bank statements will be open, but with the fox 3.6.17 will open statements

    Can not open my bank statement in Firefox with any update past 3.6.17. So I always reinstall the updated older so I can open my statement. It either that or go back to the Explorer for instructions to open. A complete waste of time since I have 5 Acc

  • HP Pavilion: Loss of Ofice immediately after system upgrade

    How can I re - load more Microsoft Office when it came pre-loaded on my laptop and I have no disks. I am also unable to find my 25 digit product code

  • Moto g4 more otg bug

    Moto g4 more does not support to copy content from the phone to USB via otg, when I tried to copy my photos from phone to USB via otg that it does not show ' stick to ' option when the USB is selected, but shows "stick to" option when selected a fold

  • Can I use the new remote and SIRI to select HomeVideo movies on my iMac

    I have more than 1,000 movies from my personal library on the hard drive of my iMac. In the past, the only way to select one was to scroll, scroll and scroll up to what I got. I was told I could use SIRI to ask for the film. When I tried, it chose th

  • just keyboard damaged or more? T520 beer at the keyboard

    Hello! First excuse my bad English im from the Germany.Two days ago I droped beer on the keyboard of my t520 (not much about 5 cl), the notebooke worked after it is normal. When I tried to boot up the laptop the next day nothing happened when I press