Hi all, please help me to retrieve the last record value in field

Hi all

Shape the table below, I want to retrieve the latest data from column 4 disks in a new field that will be my field of view as shown in the end of the table by means of BI publisher, please help to achieve this goal.

Column1 2 3 4 5 6

May 1, 1067205671982868062
May 1, 10034925706902868065
15 May 102500005456901634220
15 June 106000000-543101657501

New field -54310

Thank you and best regards,

Prasad.

something like

for each: ByWhichLoop [last()]

end foreach

Tags: Business Intelligence

Similar Questions

  • BlackBerry Z3, I lost all my data on my SD storage card, please help me to retrieve the data.

    Dear Sir.

    I lost all my data on my SD storage card, please help me to retrieve the data. I have a Z3, just bought only a week before, I removed the card with the phone off and then give the card again and noticed that I lost all the data. Please help

    Try restarting your phone. Sometimes it shows data that brought them "disappeared". To do this, hold down your power button for about 15 seconds, until you see BlackBerry on your screen. Do not release the button until you see that without taking account of any other thing you see before that.

    Try this and post back with your results.

  • Please help me to write the plsql code

    Hello

    Please help me to write a program to retrieve the empno in plsql table and update the salary up 10% to help "for all" and handle exceptions using predefined '% bulk_exception' attribute. I asked today by the interviewer. Please help me

    Name of the table: emp

    emp_no ename sal
    100 John 5000
    101 3000 miller
    102 roy 3500
    104 tom 2000

    Published by: Anill Sep 8, 2012 22:17

    Anill says:
    Hi Biju,

    I agree what you say to the workout. Please do not treat it as laziness. I have no knowledge on 'for all' and bulk_exception attributes. So, I asked help to learn and gain some knowledge.

    Published by: Anill Sep 8, 2012 22:39

    This?

    declare
    type test is table of varchar2(2000);
    v_array test;
    l_err_cnt number;
    l_errors exception;
    pragma exception_init(l_errors,-25000);
    begin
    select empno bulk collect into v_array
    from emp;
    forall i in v_array.first..v_array.last save exceptions
    update emp set sal=sal+((sal/100)*10)
    where empno=v_array(i);
    exception
    when l_errors then
    l_err_cnt := sql%bulk_exceptions.count;
    for i in 1..l_err_cnt loop
    dbms_output.put_line('error: ' || i ||  --Handle Proper Error log table
    ' array index: ' || sql%bulk_exceptions(i).error_index ||
    ' message: ' || sqlerrm(-sql%bulk_exceptions(i).error_code));
    end loop;
    end;
    

    Talk to interview if we use in bulk collect, it consumes more memory PGA. then say do it in pure SQL.
    If they want to manage the DML ERRORS and then tell them that I will use DBMS_ERRLOG. CREATE_ERROR_LOG ('table_name')

  • Please help me to do the math, my iPhone6(16G) run out of storage

    Background: iPhone6 16G

    Q1: 16G is equal to 11.6 G? Is that mean 16 = 11.6? My storage of 4,4 G to go?

    Q2: Why the sum of the storage that has been used by all applications is not equal to the storage you use?

    (4.9 * 1024 + 319 + 189 + 182 + 131 + 110 + 104 + 98 + 93 + 91 + 89 + 88 + 88 + 87 + 83 + 83 + 81 + 77 + 72 + 66 + 63 + 59 + 58 + 55 + 53 + 51 + 51 + 49 + 47 + 47 + 45 + 42 + 39 + 34 + 33 + 32 + 32 + 21 + 10 + 20) / 1024 = 7.80234375 = 11.3?

    If Please HELP me to DO THE MATH!

    yuzhou627 wrote:

    Q1: 16G is equal to 11.6 G? Is that mean 16 = 11.6?

    In fact, Yes.

    How to report the storage capacity - Support Apple OS X and iOS

  • Please help, data queue on the remote server

    Hello Experts,

    Kindly help, to learn how to roll up the data from the remote server. I need a detailed procedure to make settings on my local machine to connect to remote Oracle using SQL Server * MORE.

    I installed on my local machine which is 32-bit Oracle 11 g Release 2:+.

    SQL * more: Production of release 11.2.0.1.0 Fri Feb 8 12:02:30 2013
    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    Enter the user name: SYSTEM
    Enter the password:

    Connected to:
    Oracle Database 11g Release 11.2.0.1.0 - Production

    SQL >

    and on a remote server below is the version installed.

    Log in as: B_DB1user
    [email protected] password:
    Last login: Sat Feb 7 18:19:35 2013 10.10.167.8
    [B_DB1user@bamdb001 ~] $ sqlplus

    SQL * more: version 11.1.0.7.0 - Production Fri Feb 8 12:06:35 2013

    Copyright (c) 1982, 2008, Oracle. All rights reserved.

    Enter the user name: B_DB1user
    Enter the password:

    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With the partitioning, Real Application Clusters, OLAP, data mining
    and Real Application Testing options

    SQL >

    ----------------------------------------------------------------------------------------------------------------------------
    That's what I have in tnsnames.ora

    tnsnames.ora # Network Configuration file: E:\app\managerproj3\product\11.2.0\dbhome_5\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))


    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.10.167.8)
    )
    )

    ---------------------------------------------------------------------------------------------------------------------------------
    That's what I have in listener.ora


    listener.ora # Network Configuration file: E:\app\managerproj3\product\11.2.0\dbhome_5\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    AUDITEUR1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.10.167.8)(PORT = 1521))
    )
    )

    ADR_BASE_LISTENER1 = E:\app\managerproj3

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    )
    )

    ADR_BASE_LISTENER = E:\app\managerproj3

    ------------------------------------------------------------------------------------------------------------------------------------------


    Database server: ORACLE
    HOSTNAME: BAMDB001
    IP address: 156.1.3.4


    and here is the script I tried data spool in the local computer using SQL * MORE

    set colsep,
    set pagesize 120
    Set trimspool on
    headsep off Set
    set linesize 1000

    coil D:\test\myfile.csv

    Select table_name, tablespace_name of all_tables;

    spool off

    It is effective on the local machine... Please help me to get the data from the remote server to the local computer?

    Kindly let me know if you need anything whatsoever.

    Thanks in advance

    Kind regards
    Bosch

    Is not more or less the same question you asked in {message identifier: = 10835497}?

    You must have a user to the remote database and an entry for the remote database in your tnsnames.ora file

    If you have just to coil of database of remote and local database didn't need to be involved:
    Edit your tnsnames.ora and add an entry with the remotedb, the information and you need to have the following information:

    Ip address or the name of the server (BAMDB001?)
    Name of the service (?)
    Port configured for this database. (??)

    Also, you must be sure that the connectivity of your local computer to a remote server is granted (without firewall block).
    Only when you have this information, you can connect to the remote database from your laptop.

    From the Unix server where you connect to the database, you can get the information to be inserted in your local tnsnames.ora by typing:

    tnsping dbname
    

    Of course, you need to replace dbname with the name of your database.
    Another way is to check the remote tnsnames.ora when logged in Unix:

    cat $ORACLE_HOME\network\admin\tnsnames.ora
    

    and check the configuration it.

    Kind regards.
    Al

  • Compaq Mini: Please help me to RESET the password of bios Compaq Mini

    Please help me to RESET the password of bios Compaq Mini cnu93666w8

    Thank you

    @jack4100

    Enter: e9lofgggdu (3rd character is a lowercase L)

    Kind regards

    DP - K

  • I currently own Adobe Creative Suite 5 Master Collection. My computer crashed and I was unable to disable the program. Please help me to reinstall the programs, given that I have exceeded the download due to problems with my computer. Thank you

    I currently own Adobe Creative Suite 5 Master Collection. My computer crashed and I was unable to disable the program. Please help me to reinstall the programs, given that I have exceeded the download due to problems with my computer. Thank you

    Hello

    Please see the thread: https://forums.adobe.com/thread/2028937?start=0&tstart=0

    Kind regards

    Shelly

  • Please help: error creating files the digital certificate is not valid

    Hello, I have a problem to publish .air for Flash Professional CS5.5 desktop. When I create the certificate (.p12) file, and then click Publish but apparently alert dialog box is "error creating files the digital certificate is not valid. Your certificate has expired the Mar Mar 12 15:34:32 ICT 1963 "How could I do to solve this case and export the only desktop .air file?

    Double post, responded to Please help: error creating files the digital certificate is not valid.

    Locking thread.

  • Please help me to find the link to downlaod oracle BI experience

    Please help me to find the link to downlaod oracle BI experience
    I got experience in obiee, so where can find

    Thanks in advance

    Hello

    Discoverer belongs to BI Standard Edition. You can load BI from here. You need the 2 CDs for Discoverer Plus and Viewer and the CD-ROM of the discoverer Admin tools and office.

    You must also apply the patches to go to the latest version. The LearnDiscoverer blog has details of the latest patches.

    Rod West

  • SQL query to retrieve the same record because no. boxes

    Hi all

    I have a table of Bill XXINV.

    the columns are

    INVH_NO INVH_ITEM_CODE INVH_QTY INVH_BOXES

    1122                XXITEM1                    1                    5

    1123                XXITEM2                     2                   6

    I can do a sql query so that I can retrieve the same records repeated as number INVH_BOXES.

    Select * from XXINV

    where invh_no = 1122

    output:

    INVH_NO INVH_ITEM_CODE INVH_QTY INVH_BOXES

    1122                XXITEM1                    1                    5

    Desired output:

    INVH_NO INVH_ITEM_CODE INVH_QTY INVH_BOXES

    1122                XXITEM1                    1                    5

    1122                XXITEM1                    1                    5

    1122                XXITEM1                    1                    5

    1122                XXITEM1                    1                    5

    1122                XXITEM1                    1                    5

    or

    INVH_NO INVH_ITEM_CODE INVH_QTY INVH_BOXES

    1122 XXITEM1 1 1 of 5

    1122 XXITEM1 1 2 of 5

    1122 1 3 5 XXITEM1

    1122 XXITEM1 1 4 of 5

    1122 XXITEM1 1 5 of 5

    Please suggest. Like I need to print each line in a single page to stick them on boxes so that packaging.

    Kind regards

    Afzal.

    Just add INVH_ITEM_CODE to the connection by the clause.

    Select invh_no

    invh_item_code

    invh_qty

    to_char (, 'fm99') | 'from ' | TO_CHAR (invh_boxes, 'fm99') invh_boxes

    of xxinv

    where invh_no = 1122

    connect

    by level<=>

    and prior invh_item_code = invh_item_code

    and prior sys_guid() is not null

  • Need to retrieve the last line/record in a table

    Hello

    I have a requirement like getting the ending balance of the last record in the table and the same insertion in the opening balance of the immediatetly created the next record.

    In simple terms, I need to extract a value from the last line of the recording.

    For example, I use the query below

    Select rownum emp, empno, ename
    where rownum = (select count (rownum) from emp);

    But, the above query does not return all of the recording.

    Therefore, need help on this.

    Kind regards
    Shivakumar has

    Published by: shiva March 27, 2011 22:14

    Hello
    Strictly speaking there is no such LAST or FIRST folder until that order you them.
    But check the following:

    SELECT * FROM emp MINUS
    SELECT * FROM emp WHERE rownum<=(SELECT count(empno)-1 FROM emp);
    

    Kind regards
    Lakshmi.

  • Select the last record of each month

    Hello

    to select the last docnumber and qty of every month

    Structure

    Name Null?    Type

    ------------------------------- -------- ----

    PRODUCTCODE NUMBER

    NUMBER NUMBER

    DATE OF PLANFORMONTH

    NUMBER OF CLEXPECTEDQTY

    NUMBER OF CLCONFIRMQTY

    NUMBER OF CLFGBUFFERQTY

    NUMBER OF CLTOTPRINTBUFFER

    in this select query if I take the sum he required all records where, as I want the last record of each month

    SELECT productcode docnumber MAX (Number), planformonth, SUM (clexpectedqty) clexpectedqty (planformonth) MAX.

    SUM (clconfirmqty) clconfirmqty, SUM (clfgbufferqty) clfgbufferqty, cltotprintbuffer OF FGSALESPLAN of the SUM (cltotprintbuffer)

    GROUP BY productcode, (planformonth)

    Sandy

    Hello

    Thanks its working now the code is written as below:

    SELECT * FROM

    (SELECT

    e.*,

    ROW_NUMBER() OVER (partition by PRODUCTCODE by DOCNUMBER DESC order) r

    Of

    E FGSALESPLAN)

    WHERE r = 1 AND

    entryvalid = 'Y '.

    order by Number

    Sandy

  • Add a string to the last record

    Hello
    I was just trying to format an o/p to a table, and looking at the result, I thought it would be nice to add a piece of a chain to the last record. For example
    with dat as (
    select 'First Record' as COL from DUAL
    union all
    select 'Second Record'  from DUAL
    union all
    select 'Third Record'  from DUAL
    union all
    select 'Nth Record'  from DUAL )
    select * from dat
    
    o/p                                             Desired o/p
    COL                                            COL            
    -------------                                 -------------
    first RECORD                             first RECORD
    second RECORD                            second RECORD  
    THIRD RECORD                            THIRD RECORD 
    NTH RECORD                             This is the last record NTH RECORD   
    with dat as
    (
    select 'First Record' as COL from DUAL
    union all
    select 'Second Record'  from DUAL
    union all
    select 'Third Record'  from DUAL
    union all
    select 'Nth Record'  from DUAL
    ),
    ord as
    (
      select count(*) rn
        from dat
    )
    select decode(rownum, rn, 'This is Last Record ' || col, col)
      from ord, dat;
    
  • get the last record

    What is the best way to get the last record in a table?
    ... in addition to select * from tbl by id Desc... & then set = 1 maxrow in cfoutput.

    I want a quick way.
    I tried "Max (id), columns, but not worked.
    If I ' Max (id) as V ' & then turn around and make another request for ' where id = #V # "to get the rest of the record, there's more action.

    Quote:
    Posted by: paross1
    One way...

    SELECT all your columns
    From your_table
    WHERE your_engagement_appid = (SELECT MAX (your_id)
    From your_table)

    Phil

    Thank you guys. It worked great.
    I also tried the front joined query where the... I would have thought that.
    Thank you!

  • Format the first and the last record of query result

    Hello
    I have the following query

    < tt > select 1 seq, "This is the first record" data from dual union of all the
    Select 2, 'Data ' | tNom tab Union all
    Select 3, "It was last last record" double
    order by 1 < /tt >

    When I have the coil this summary to a listfile with col seq noprint option I get:

    This is the first record
    Data MLA_ACCESS_LIST
    Data MLA_APPLICATIONS
    Data MLA_VPD_PCK
    Data MLA_VPD_TABLES
    It was the last last record

    But I want to:

    It's first record MLA_ACCESS_LIST
    Data MLA_APPLICATIONS
    Data MLA_VPD_PCK
    MLA_VPD_TABLES it was save finally last record

    I tried with 1 statement with the use of lead and lag, because first and last record stand the other result record. But I get ORA-30484: lack of specification of the window for this function

    Is this possible with 1 statement or am I've sentenced to modify the results by myself?

    Thank you Auke

    Select row_number() case above (tNom control)
    When 1 then 'it's the first record
    end | tNom |
    -case row_number() over (order by desc tNom)
    When 1 then 'it was the last record. "
    end
    tab
    order by tNom

    HTH

Maybe you are looking for