How to add the values of the data from two lines

We enter the data as

name values
==== ====
a 100
b 125
c 140

We need output of

total of the Name values
==== ==== ====
a 100 100
b 125 225 (100 + 125)
c 140 365 (225 + 140)

How do I solve this problem... ?

1008318 wrote:
We enter the data as

name values
==== ====
a 100
b 125
c 140

We need output of

total of the Name values
==== ==== ====
a 100 100
b 125 225 (100 + 125)
c 140 365 (225 + 140)

How do I solve this problem... ?

Hello

SQL> with test_data
  2  as
  3  (
  4  select 'A' name,100 val
  5  from dual
  6  UNION ALL
  7  select 'B',125 from dual
  8  UNION ALL
  9  select 'C',140 from dual
 10  )
 11  select name,val,sum(val) OVER(order by val) total from test_data;

N        VAL      TOTAL
- ---------- ----------
A        100        100
B        125        225
C        140        365

Kind regards
Claudy K

Published by: Claudy K on May 28, 2013 02:52

Tags: Database

Similar Questions

  • How to add the date felxfiled in OFA

    How to add the date felxfiled in OFA

    Hi gurus,

    How to add a date in the form OFA field. I tried but no optin schedule it. I need to add the calendar options before the flexfiled.

    Concerning

    Hello

    Allocate FND_STANDARD_DATE segment value your FDF everywhere where you want to see the calendar on the page of the OFA.

    Let me know if you need more help on this.

    Kind regards

    Hemant

  • How to add the data in asm file

    Hello


    Can someone let me know how to add the data using ASM file

    DB-ORACLE 10.2
    OS RHEL

    create tablespace tbl_name
    DATAFILE '+ DATA' SIZE 1 G REUSE
    autoextend on next maxsize of 250 M 2 G;

    where is your asm disk group + DATA

  • Copy the data from two rows together in a new line

    Hello everyone.

    I have a question for copying data from two lines together in a new third line.

    See this short example:

    This is the current situation. The lines STATE_1 and STATE_2 contain different information separate.

    In the past data were recorded at random in one of these lines.

    It's the state table:

    ID Cust_id STATE_1 STATE_2 STATE_3
    188Customer is waiting.Call since yesterday.
    211Mr. Smith, no answer.Wait until December
    311Pls Create PO.Old PO has been cancelled
    45No access to the system.

    Now, everything must be recorded in the STATE_3 void, but I also need than the old entries from the past which must also be copied together in STATE_3

    Like this:

    ID Cust_id STATE_1 STATE_2 STATE_3
    188Customer is waiting.Call since yesterday.Customer is waiting. Call since yesterday
    211Mr. Smith, no answer.Wait until December.Mr. Smith, no answer. Wait until December.
    311Pls Create PO.Old PO has been cancelled.Pls create in. old PO was canceled.
    45No access to the system.No access to the system.

    Y at - it an SQL-easy order?

    Thanks for any help.


    What:

    update set state_3 = state_1 State | » '|| state_2;

    ?

  • How to add the data without loss of data store?

    Hello

    We had ESXi 3.5 installed on 1 HDD and data store was on a different HARD disk.

    Now the HDD with ESXi host got crashed and I had to replace it with another HARD drive and make new ESXi installation on the new HARD drive.

    Now after the new ESXi install on new HARD drive, it does not detect the data store on the HARD drive second.  It is, however, detect the LUN of the second HARD disk.

    Now, how can I do detect the data store on the second HARD drive?  Or y at - it anyway I can add the data store on the second HARD drive to the new host ESXi?

    Thanks in advance.

    Kind regards

    Denis

    You will need to activate lun resignaturing and snapshot LUN, mount and rename the store of data back to its original name, and then disable them.

    -Matt

    VCP, vExpert, Unix Geek

  • How to read the data from a channel named in windows using labview

    Hello

    I need to read the channel named in windows data. The pipe is created by python by another application. This application post permanent data on the pipe. But I don't know how to read data using labview. is it possible to read the data from different application? If possible, how to start?

    Thanks in advance

    concerning

    RJ

    Hi Rolf,.

    It's just, because of driving is not initialized completely, pipe read returns error 42, I added 2 seconds late, then its work perfect.

    Thank you very much.

    Concerning

    RJ

  • How to separate the data from the reports

    Capture2.PNG

    I wanted to ask, how to separate the data in a single page, in the left side of page 1and then the right side of the page 2

    Thank you

    my report layout.

    you have to find the solution.

  • How to list the Dates of broken lines date range?

    Hello

    I have a table with id columns, start_date, end_date with following sample data:
    ID    start_date       end_date
    15    10-Mar-2010      15-Sep-2010
    15    01-Dec-2010      31-Mar-2011
    15    05_Apr-2011      31-Dec-2030
    I entered date range from 1 April 2010 to 31-Jun-2011 and id = 15.
    I want to write a query to print the dates by top lines that are present in a given date range. I will skip the dates which are not present in the rows and which are out of the input range.

    For example I'll print from April 1, 2010... to... 15-sep-2010 pass dates of 16-Sep-2010... to the... November 30, 2010
    printing date of December 1, 2010... to 31 March 2011 and then pass date of April 1, 2011-April 4, 2011 and at the end it will print the dates of April 5, 2011 to 31-Jun-2011

    Please help write a select statement.

    Thank you very much.

    Or like this?

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 15 as ID, date '2010-03-10' as start_date, date '2010-09-15' as end_date from dual union all
      2             select 15, date '2010-12-01', date '2011-03-31' from dual union all
      3             select 15, date '2011-04-05', date '2030-12-31' from dual)
      4      ,r as (select date '2010-04-01' as d1, date '2011-06-30' as d2 from dual) -- Note June only has 30 days
      5  --
      6  --
      7  --
      8  select (start_date+rn)-1 dt
      9  from t
     10      ,(select rownum as rn from dual connect by rownum <= (select max((end_date-start_date)+1) from t))
     11      ,r
     12  where   (start_date+rn)-1 <= end_date
     13  and     (start_date+rn)-1 between d1 and d2
     14* order by 1
    SQL> /
    
    DT
    --------------------
    01-APR-2010 00:00:00
    02-APR-2010 00:00:00
    03-APR-2010 00:00:00
    04-APR-2010 00:00:00
    05-APR-2010 00:00:00
    06-APR-2010 00:00:00
    07-APR-2010 00:00:00
    08-APR-2010 00:00:00
    09-APR-2010 00:00:00
    10-APR-2010 00:00:00
    11-APR-2010 00:00:00
    12-APR-2010 00:00:00
    13-APR-2010 00:00:00
    14-APR-2010 00:00:00
    15-APR-2010 00:00:00
    16-APR-2010 00:00:00
    17-APR-2010 00:00:00
    18-APR-2010 00:00:00
    19-APR-2010 00:00:00
    20-APR-2010 00:00:00
    21-APR-2010 00:00:00
    22-APR-2010 00:00:00
    23-APR-2010 00:00:00
    24-APR-2010 00:00:00
    25-APR-2010 00:00:00
    26-APR-2010 00:00:00
    27-APR-2010 00:00:00
    28-APR-2010 00:00:00
    29-APR-2010 00:00:00
    30-APR-2010 00:00:00
    01-MAY-2010 00:00:00
    02-MAY-2010 00:00:00
    03-MAY-2010 00:00:00
    04-MAY-2010 00:00:00
    05-MAY-2010 00:00:00
    06-MAY-2010 00:00:00
    07-MAY-2010 00:00:00
    08-MAY-2010 00:00:00
    09-MAY-2010 00:00:00
    10-MAY-2010 00:00:00
    11-MAY-2010 00:00:00
    12-MAY-2010 00:00:00
    13-MAY-2010 00:00:00
    14-MAY-2010 00:00:00
    15-MAY-2010 00:00:00
    16-MAY-2010 00:00:00
    17-MAY-2010 00:00:00
    18-MAY-2010 00:00:00
    19-MAY-2010 00:00:00
    20-MAY-2010 00:00:00
    21-MAY-2010 00:00:00
    22-MAY-2010 00:00:00
    23-MAY-2010 00:00:00
    24-MAY-2010 00:00:00
    25-MAY-2010 00:00:00
    26-MAY-2010 00:00:00
    27-MAY-2010 00:00:00
    28-MAY-2010 00:00:00
    29-MAY-2010 00:00:00
    30-MAY-2010 00:00:00
    31-MAY-2010 00:00:00
    01-JUN-2010 00:00:00
    02-JUN-2010 00:00:00
    03-JUN-2010 00:00:00
    04-JUN-2010 00:00:00
    05-JUN-2010 00:00:00
    06-JUN-2010 00:00:00
    07-JUN-2010 00:00:00
    08-JUN-2010 00:00:00
    09-JUN-2010 00:00:00
    10-JUN-2010 00:00:00
    11-JUN-2010 00:00:00
    12-JUN-2010 00:00:00
    13-JUN-2010 00:00:00
    14-JUN-2010 00:00:00
    15-JUN-2010 00:00:00
    16-JUN-2010 00:00:00
    17-JUN-2010 00:00:00
    18-JUN-2010 00:00:00
    19-JUN-2010 00:00:00
    20-JUN-2010 00:00:00
    21-JUN-2010 00:00:00
    22-JUN-2010 00:00:00
    23-JUN-2010 00:00:00
    24-JUN-2010 00:00:00
    25-JUN-2010 00:00:00
    26-JUN-2010 00:00:00
    27-JUN-2010 00:00:00
    28-JUN-2010 00:00:00
    29-JUN-2010 00:00:00
    30-JUN-2010 00:00:00
    01-JUL-2010 00:00:00
    02-JUL-2010 00:00:00
    03-JUL-2010 00:00:00
    04-JUL-2010 00:00:00
    05-JUL-2010 00:00:00
    06-JUL-2010 00:00:00
    07-JUL-2010 00:00:00
    08-JUL-2010 00:00:00
    09-JUL-2010 00:00:00
    10-JUL-2010 00:00:00
    11-JUL-2010 00:00:00
    12-JUL-2010 00:00:00
    13-JUL-2010 00:00:00
    14-JUL-2010 00:00:00
    15-JUL-2010 00:00:00
    16-JUL-2010 00:00:00
    17-JUL-2010 00:00:00
    18-JUL-2010 00:00:00
    19-JUL-2010 00:00:00
    20-JUL-2010 00:00:00
    21-JUL-2010 00:00:00
    22-JUL-2010 00:00:00
    23-JUL-2010 00:00:00
    24-JUL-2010 00:00:00
    25-JUL-2010 00:00:00
    26-JUL-2010 00:00:00
    27-JUL-2010 00:00:00
    28-JUL-2010 00:00:00
    29-JUL-2010 00:00:00
    30-JUL-2010 00:00:00
    31-JUL-2010 00:00:00
    01-AUG-2010 00:00:00
    02-AUG-2010 00:00:00
    03-AUG-2010 00:00:00
    04-AUG-2010 00:00:00
    05-AUG-2010 00:00:00
    06-AUG-2010 00:00:00
    07-AUG-2010 00:00:00
    08-AUG-2010 00:00:00
    09-AUG-2010 00:00:00
    10-AUG-2010 00:00:00
    11-AUG-2010 00:00:00
    12-AUG-2010 00:00:00
    13-AUG-2010 00:00:00
    14-AUG-2010 00:00:00
    15-AUG-2010 00:00:00
    16-AUG-2010 00:00:00
    17-AUG-2010 00:00:00
    18-AUG-2010 00:00:00
    19-AUG-2010 00:00:00
    20-AUG-2010 00:00:00
    21-AUG-2010 00:00:00
    22-AUG-2010 00:00:00
    23-AUG-2010 00:00:00
    24-AUG-2010 00:00:00
    25-AUG-2010 00:00:00
    26-AUG-2010 00:00:00
    27-AUG-2010 00:00:00
    28-AUG-2010 00:00:00
    29-AUG-2010 00:00:00
    30-AUG-2010 00:00:00
    31-AUG-2010 00:00:00
    01-SEP-2010 00:00:00
    02-SEP-2010 00:00:00
    03-SEP-2010 00:00:00
    04-SEP-2010 00:00:00
    05-SEP-2010 00:00:00
    06-SEP-2010 00:00:00
    07-SEP-2010 00:00:00
    08-SEP-2010 00:00:00
    09-SEP-2010 00:00:00
    10-SEP-2010 00:00:00
    11-SEP-2010 00:00:00
    12-SEP-2010 00:00:00
    13-SEP-2010 00:00:00
    14-SEP-2010 00:00:00
    15-SEP-2010 00:00:00
    01-DEC-2010 00:00:00
    02-DEC-2010 00:00:00
    03-DEC-2010 00:00:00
    04-DEC-2010 00:00:00
    05-DEC-2010 00:00:00
    06-DEC-2010 00:00:00
    07-DEC-2010 00:00:00
    08-DEC-2010 00:00:00
    09-DEC-2010 00:00:00
    10-DEC-2010 00:00:00
    11-DEC-2010 00:00:00
    12-DEC-2010 00:00:00
    13-DEC-2010 00:00:00
    14-DEC-2010 00:00:00
    15-DEC-2010 00:00:00
    16-DEC-2010 00:00:00
    17-DEC-2010 00:00:00
    18-DEC-2010 00:00:00
    19-DEC-2010 00:00:00
    20-DEC-2010 00:00:00
    21-DEC-2010 00:00:00
    22-DEC-2010 00:00:00
    23-DEC-2010 00:00:00
    24-DEC-2010 00:00:00
    25-DEC-2010 00:00:00
    26-DEC-2010 00:00:00
    27-DEC-2010 00:00:00
    28-DEC-2010 00:00:00
    29-DEC-2010 00:00:00
    30-DEC-2010 00:00:00
    31-DEC-2010 00:00:00
    01-JAN-2011 00:00:00
    02-JAN-2011 00:00:00
    03-JAN-2011 00:00:00
    04-JAN-2011 00:00:00
    05-JAN-2011 00:00:00
    06-JAN-2011 00:00:00
    07-JAN-2011 00:00:00
    08-JAN-2011 00:00:00
    09-JAN-2011 00:00:00
    10-JAN-2011 00:00:00
    11-JAN-2011 00:00:00
    12-JAN-2011 00:00:00
    13-JAN-2011 00:00:00
    14-JAN-2011 00:00:00
    15-JAN-2011 00:00:00
    16-JAN-2011 00:00:00
    17-JAN-2011 00:00:00
    18-JAN-2011 00:00:00
    19-JAN-2011 00:00:00
    20-JAN-2011 00:00:00
    21-JAN-2011 00:00:00
    22-JAN-2011 00:00:00
    23-JAN-2011 00:00:00
    24-JAN-2011 00:00:00
    25-JAN-2011 00:00:00
    26-JAN-2011 00:00:00
    27-JAN-2011 00:00:00
    28-JAN-2011 00:00:00
    29-JAN-2011 00:00:00
    30-JAN-2011 00:00:00
    31-JAN-2011 00:00:00
    01-FEB-2011 00:00:00
    02-FEB-2011 00:00:00
    03-FEB-2011 00:00:00
    04-FEB-2011 00:00:00
    05-FEB-2011 00:00:00
    06-FEB-2011 00:00:00
    07-FEB-2011 00:00:00
    08-FEB-2011 00:00:00
    09-FEB-2011 00:00:00
    10-FEB-2011 00:00:00
    11-FEB-2011 00:00:00
    12-FEB-2011 00:00:00
    13-FEB-2011 00:00:00
    14-FEB-2011 00:00:00
    15-FEB-2011 00:00:00
    16-FEB-2011 00:00:00
    17-FEB-2011 00:00:00
    18-FEB-2011 00:00:00
    19-FEB-2011 00:00:00
    20-FEB-2011 00:00:00
    21-FEB-2011 00:00:00
    22-FEB-2011 00:00:00
    23-FEB-2011 00:00:00
    24-FEB-2011 00:00:00
    25-FEB-2011 00:00:00
    26-FEB-2011 00:00:00
    27-FEB-2011 00:00:00
    28-FEB-2011 00:00:00
    01-MAR-2011 00:00:00
    02-MAR-2011 00:00:00
    03-MAR-2011 00:00:00
    04-MAR-2011 00:00:00
    05-MAR-2011 00:00:00
    06-MAR-2011 00:00:00
    07-MAR-2011 00:00:00
    08-MAR-2011 00:00:00
    09-MAR-2011 00:00:00
    10-MAR-2011 00:00:00
    11-MAR-2011 00:00:00
    12-MAR-2011 00:00:00
    13-MAR-2011 00:00:00
    14-MAR-2011 00:00:00
    15-MAR-2011 00:00:00
    16-MAR-2011 00:00:00
    17-MAR-2011 00:00:00
    18-MAR-2011 00:00:00
    19-MAR-2011 00:00:00
    20-MAR-2011 00:00:00
    21-MAR-2011 00:00:00
    22-MAR-2011 00:00:00
    23-MAR-2011 00:00:00
    24-MAR-2011 00:00:00
    25-MAR-2011 00:00:00
    26-MAR-2011 00:00:00
    27-MAR-2011 00:00:00
    28-MAR-2011 00:00:00
    29-MAR-2011 00:00:00
    30-MAR-2011 00:00:00
    31-MAR-2011 00:00:00
    05-APR-2011 00:00:00
    06-APR-2011 00:00:00
    07-APR-2011 00:00:00
    08-APR-2011 00:00:00
    09-APR-2011 00:00:00
    10-APR-2011 00:00:00
    11-APR-2011 00:00:00
    12-APR-2011 00:00:00
    13-APR-2011 00:00:00
    14-APR-2011 00:00:00
    15-APR-2011 00:00:00
    16-APR-2011 00:00:00
    17-APR-2011 00:00:00
    18-APR-2011 00:00:00
    19-APR-2011 00:00:00
    20-APR-2011 00:00:00
    21-APR-2011 00:00:00
    22-APR-2011 00:00:00
    23-APR-2011 00:00:00
    24-APR-2011 00:00:00
    25-APR-2011 00:00:00
    26-APR-2011 00:00:00
    27-APR-2011 00:00:00
    28-APR-2011 00:00:00
    29-APR-2011 00:00:00
    30-APR-2011 00:00:00
    01-MAY-2011 00:00:00
    02-MAY-2011 00:00:00
    03-MAY-2011 00:00:00
    04-MAY-2011 00:00:00
    05-MAY-2011 00:00:00
    06-MAY-2011 00:00:00
    07-MAY-2011 00:00:00
    08-MAY-2011 00:00:00
    09-MAY-2011 00:00:00
    10-MAY-2011 00:00:00
    11-MAY-2011 00:00:00
    12-MAY-2011 00:00:00
    13-MAY-2011 00:00:00
    14-MAY-2011 00:00:00
    15-MAY-2011 00:00:00
    16-MAY-2011 00:00:00
    17-MAY-2011 00:00:00
    18-MAY-2011 00:00:00
    19-MAY-2011 00:00:00
    20-MAY-2011 00:00:00
    21-MAY-2011 00:00:00
    22-MAY-2011 00:00:00
    23-MAY-2011 00:00:00
    24-MAY-2011 00:00:00
    25-MAY-2011 00:00:00
    26-MAY-2011 00:00:00
    27-MAY-2011 00:00:00
    28-MAY-2011 00:00:00
    29-MAY-2011 00:00:00
    30-MAY-2011 00:00:00
    31-MAY-2011 00:00:00
    01-JUN-2011 00:00:00
    02-JUN-2011 00:00:00
    03-JUN-2011 00:00:00
    04-JUN-2011 00:00:00
    05-JUN-2011 00:00:00
    06-JUN-2011 00:00:00
    07-JUN-2011 00:00:00
    08-JUN-2011 00:00:00
    09-JUN-2011 00:00:00
    10-JUN-2011 00:00:00
    11-JUN-2011 00:00:00
    12-JUN-2011 00:00:00
    13-JUN-2011 00:00:00
    14-JUN-2011 00:00:00
    15-JUN-2011 00:00:00
    16-JUN-2011 00:00:00
    17-JUN-2011 00:00:00
    18-JUN-2011 00:00:00
    19-JUN-2011 00:00:00
    20-JUN-2011 00:00:00
    21-JUN-2011 00:00:00
    22-JUN-2011 00:00:00
    23-JUN-2011 00:00:00
    24-JUN-2011 00:00:00
    25-JUN-2011 00:00:00
    26-JUN-2011 00:00:00
    27-JUN-2011 00:00:00
    28-JUN-2011 00:00:00
    29-JUN-2011 00:00:00
    30-JUN-2011 00:00:00
    
    376 rows selected.
    
    SQL>
    
  • I want to loop through the data from two different tables using for loop where the query should be replaced at runtime, please help me

    I have the data into two table with the structure of similar column, I want to loop through the data in these two tables

    based on some condition and runtime that I want to put the query in loop for example, the example is given, please help me

    create table ab (a number, b varchar2 (20));

    Insert into ab

    Select rownum, rownum. "" sample "

    of the double

    connect by level < = 10

    create table bc (a number, b varchar2 (20));

    Insert into BC.

    Select rownum + 1, rownum + 1 | "" sample "

    of the double

    connect by level < = 10

    declare

    l_statement varchar2 (2000);

    Boolean bool;

    Start

    bool: = true;

    If it is true, then

    l_statement: =' select * ab ';

    on the other

    l_statement: =' select * from bc';

    end if

    I'm in execute immediate l_statement - something like that, but I don't know

    loop

    dbms_output.put_line (i.a);

    end loop;

    end;

    Something like that, but this isn't a peace of the code work.

    Try this and adapt according to your needs:

    declare

    l_statement varchar2 (2000);

    c SYS_REFCURSOR;

    l_a number;

    l_b varchar2 (20);

    Boolean bool;

    Start

    bool: = true;

    If it is true, then

    l_statement: = "select a, b, AB;

    on the other

    l_statement: = "select a, b from bc;

    end if;

    --

    Open c for l_statement;

    --

    loop

    extract the c in l_a, l_b;

    When the output c % notfound;

    dbms_output.put_line (l_a |') -' || l_b);

    end loop;

    close c;

    end;

    /

  • How to add the data store to a data cluster store

    Hi all

    How to add a data of a data cluster store store. He has vc:datastore opposed but not able to find the javascript for the cluster data store object.

    Any help appreciated.

    Check the workflow to the title of the DRS library, vCenter, storage, Storage, they are part of plugin vCenter.

  • How to insert the data from the table file?

    I need to know that how can I insert data into multiple columns by file. I can simply insert data into a table of columns, but could not find a way to put the data in the column all.

    My data in a file store
    ************************************************text.txt***************
    133, nanny, nagina, 14 mph, 45637, 9156729863

    **************************************************************my_data(table)**********
    try to insert into table below...

    Name, ID, last_name, add, PIN. Mob

    *********************************************

    Let me know if you need anything else... :))

    Hey nanny.

    In fact, in SQL Developer, you can open a connection to the target schema, right-click on the Tables node in the Navigator tree, select import the data, then use the data import wizard. It is extremely flexible. Looks like you have a file of comma-separated variables, so if you select Format: csv and import method: Insert it will probably work fine.

    To minimize the risk of errors during import, choose a limit value of preview so that the wizard can review the data type and the size of all columns in several lines of data as possible, and then examine the size/type of data for each column on the next page of the wizard and replace if necessary. For date columns, it is also important to choose the appropriate format mask.

    Hope this helps,
    Gary
    SQL development team

  • How to change the data from the database and displayed in a DG

    Hello, it's me again with a simple question:

    I received the request of SQLi that returns multiple lines.

    In this line, I have for example:

    Reward-> 1

    How, instead of show 1 in the data grid, change this value to 'YES '.

    I followed this thread:

    private void onResultStats(event:ResultEvent):void

    {

    ServerStatsArr = new ArrayCollection (event.result.source);

    for (var i: int = 0; i < ServerStatsArr.length; i ++)

    {

    If (.abonnement ServerStatsArr [i] == 304) {}

    ServerStatsArr [i] .abonnement = 'Premium ';

    } else {}

    . Subscription ServerStatsArr [i] = 'no ';

    }

    If (ServerStatsArr [i] .transparence == 1) {}

    . Transparency ServerStatsArr [i] = 'yes ';

    } else {}

    . Transparency ServerStatsArr [i] = 'no ';

    }

    }

    ServerStatsArr.refresh ();

    }

    Why this method works for the subscription when (.abonnement ServerStatsArr [i] == 304) he displays Premium, but it does NOT work for transparency ?

    I tested (.transparence ServerStatsArr [i] == 1) and (.transparence ServerStatsArr [i] == '1')

    Thank you

    Hi again,

    private void setLabel(item:Object,column:DataGridColumn):String

    {

    Switch (Column.DataField)

    {

    case 'transparency ':

    If (item.transparence is "1")

    return ('yes')

    on the other

    return ('no')

    break;

    case "subscription":

    If (item.abonnement is "304")

    return ("premium")

    on the other

    return ('none')

    break;

    by default:

    Return("");

    }

    }

    and your grid adjustments - add the labelfunction to the following topics
    I hope we get a credit of distinction for this mission...
    David.
  • How to get the data from more than 100 domains in bulk API V2.0?

    Hi all

    I try to get data from Eloqua by APIs in bulk because of big data.

    But my Contact 186 fields (more than the majority of export limitation 100). I think I need to get all the data by 2 exports.

    How could I corresponds to 2 parts of a line and join together?

    I'm afraid that any change of data between 2 relative to exports 2 synchronizations would make different order.

    FOR EXAMPLE:

    1. any document is deleted or modified (if it matches do not filter) after obtaining data of the first part and before getting the second part, then everyone behind it would have back in part result.

    2. the data in some fields (included in both parts) are changed between the 2 synchronizations, then the values of the second part are more recent but the values of the first part are old.

    All suggestions should.

    Thank you

    Biao

    bhuang -

    I don't know that you ever go to work around the fact that things will change in your database while you are synchronizing the data. You have to have a way to create exceptions on the side of the synchronization.

    If I pushed Eloqua data to a different database and had to contend with the problem of matches change while I'm syncing, I would create a few additional columns in my database to track the status of synchronization for this folder. Or create another small table to track the data map. Here's how I'd do.

    1. I would have two additional columns: 'mapped fields 1' and '2 fields' mapped. They would be all two datetime fields.
    2. I would do only one set of synchronization both. First of all, synchronize all records for email + 99 fields. Do the entire list. For each batch, the datetime value of the lot in 'mapped fields 1' column.
    3. I would then synchronize all folders of email + other 86 fields. Repeat the entire list. For this batch of the datetime value of each batch in their 'mapped the 2 fields' column to now().
    4. For all records that had only 'mapped fields filled, 1' but' fields mapped 2' was empty, I would be re - run the second query Eloqua API using e-mail as the search value. If no results were returned, I would remove the line. Otherwise, update and the value 'mapped fields in 2' now
    5. For all the records that were only "fields mapped 2', I re - run against the first email query API Eloqua, fill in the missing data and define 'mapped the fields of 1' of the current datetime object." If the record has not returned, remove the line because it is probably not in the search longer.
    6. Finally, the value 'mapped fields 1' and 'mapped 2 fields' empty for all records, since you know that data is synchronized. This will allow you to use the same logic above on your next synchronization.

    Who is? It is not super clean, but it will do the job, unless your synchronizations take a ridiculous amount of time and your great data changes often.

  • How to copy the data from Palm Desktop on a PC running Windows 8.1

    If like me you still find the Palm Desktop data (addresses, calendar, notes, etc.) handy and use it long after throwing the combined capacity and 'sync', you can see this is useful.  I bought a new PC running Windows 8.1 and had problems with data transfer due to a problem as I understand it, which does not exist in Windows XP, Vista or 7 versions.  Here is a summary of a way to easily transfer data from these earlier versions if you have a USB flash drive (or Dropbox, Google Drive, whatever) very convenient:

    (1) Download Palm Desktop 6.2 or 6.2.2 to your new PC.  Give a user name exactly as it exists in the database from your old PC.  This name will serve as Office Automation to create a folder name of six letters (an abbreviated version of your name) to hold the data that Palm Desktop will turn upward.  Wait a few seconds for this to happen, and then close the application on your new desktop.

    (2) in your old PC you want to transfer data from, find the folder named "Palm OS Desktop" which should exist in 'Documents' under path of folder and subfolders 'Users' as > your subfolder name > Documents in Windows 7 (can also be Vista) or may be under "Documents and Setting" folder in Windows XP.

    (3) in this folder "Palm OS Desktop" search this subfolder of six letters of your name and select this whole subfolder and select 'Copy' or Ctrl-C

    (4) locate the same name of subfolder in your new PC (which will have data zero), delete and then 'paste' the subfolder you "copied" in the exact same location.  If you did it right, Viola!  Your new desktop PC should display all the transferred data, once you open the application again.

    Most of the same procedure works with PC Windows 8.1 (probably also Windows 8).  What I found different is that the subfolder of data created under "Palm OS Desktop} had 7 instead of 6 characters with a"0"(zero), added as the last character.  When finally, you copy and paste this subfolder in the new PC there so rename and add "0" for the Palm Desktop to locate these data.

    I hope this helps.

    Data in XP is located in C:\Program Files\Palm (or PalmOne) \ < your HotSync name truncated > \Backup.

    HotSync for Win8 has been available for quite a while now!  See the post at the beginning of this section called "64-bit Windows USB drivers for Palm Desktop" for instructions and driver downloads.

    Palm Desktop 4.x and 6.2.2 use different database formats - 6.2.2 went to .mdb as an extension.

    Best way to migrate data is to perform a HotSync on the new machine, or use the built-in in Palm Desktop Export/Import option.  Export the addresses and calendar files, and then copy those of the new machine.

    The import option to retrieve data.

    WyreNut

  • How to calculate the date from sysdate


    I try to get 12/09/2009-12:51:30 by subtracting the current date to sysdate.

    I can get with this year, but I don't know how I can get to the date and the month preceding.

    () Choose add_months (sysdate-36() of double) = 12/09/2010

    Planned result 12/09/2010 13:23:30

    Thank you for the help

    I'm assuming that time is fixed if it is to see the example below.

    SQL > select add_months (to_date (to_char(sysdate,'dd-mon-yyy') |)) (("" 12:51:30 ',' dd-MON-yyy hh: mi: ss AM "), - 36) prior_date
    2 double;

    PRIOR_DATE
    -----------------------
    12 - Oct - 2010 12:51:30

    SQL >

Maybe you are looking for