What will be the result of this slider?

Hi all

I'm learning step, find, following the example of the net and want to know what will be the output of type v_emp_data

DECLARE

CURSOR ABC_EMP

IS

SELECT EMPNO,

ENAME,

DEPTNO,

SAL

FROM EMP;

--

V_sal_type TYPE TABLE IS NUMBER

INDEX BY VARCHAR2 (50);

--

v_emp_data v_sal_type;

BEGIN

FOR V_EMP_REC IN ABC_EMP

LOOP

() v_emp_data

LPAD (V_EMP_REC. EMPNO, 4, ' ')

|| LPAD (V_EMP_REC. ENAME, 10, ' ')

|| LPAD (V_EMP_REC. DEPTNO, 2, ' ')): =.

V_EMP_REC. SAL;

DBMS_OUTPUT. Put_line (v_emp_data. (Count);

END LOOP;

END;

/

It shows 1 to 14, that is to say no. of recordings, but how do I see the data it contains. Help, please.


Kind regards.

SQL > DECLARE
SLIDER 2 ABC_EMP
3 EAST
4. SELECT EMPNO,
5 ENAME,
6 DEPTNO,
7 SAL
8 FROM EMP;
9        --
10 v_sal_type TYPE TABLE IS NUMBER
11 INDEX BY VARCHAR2 (50);
12        --
13 v_emp_data v_sal_type;
14 v_index varchar2 (50);
BEGIN 15
16 FOR V_EMP_REC IN ABC_EMP
17 LOOP
(v_emp_data 18)
19 LPAD (V_EMP_REC. EMPNO, 4, ' ')
20              || LPAD (V_EMP_REC. ENAME, 10, ' ')
21              || LPAD (V_EMP_REC. DEPTNO, 2, ' ')): =.
22. V_EMP_REC SAL;
23 END LOOP;
24 DBMS_OUTPUT. Put_line (v_emp_data. (Count);
25 v_index: = v_emp_data. FIRST;
26 LOOP
EXIT 27 WHEN v_index IS NULL;
28 DBMS_OUTPUT. Put_line ("INDEX:" | ") v_index | ' VALUE: ' |  v_emp_data (v_index));
29 v_index: = v_emp_data. Next (v_index);
30 END LOOP;
ENDS 31;
32.
14
INDEX: 7369 SMITH20 VALUE: 800
INDEX: 7499 ALLEN30 VALUE: 1600
INDEX: 7521 WARD30 VALUE: 1250
INDEX: 7566 JONES20 VALUE: 2975
INDEX: 7654 MARTIN30 VALUE: 1250
INDEX: 7698 BLAKE30 VALUE: 2850
INDEX: 7782 CLARK10 VALUE: 2450
INDEX: 7788 SCOTT20 VALUE: 3000
INDEX: 7839 KING10 VALUE: 5000
INDEX: 7844 TURNER30 VALUE: 1500
INDEX: 7876 ADAMS20 VALUE: 1100
INDEX: 7900 JAMES30 VALUE: 950
INDEX: 7902 FORD20 VALUE: 3000
INDEX: 7934 MILLER10 VALUE: 1300

PL/SQL procedure successfully completed.

SQL >

SY.

Tags: Database

Similar Questions

  • EventID: 1206 Event Source: Active Directory Web Services ADWS failed to determine whether the computer is a global catalog server. What will be the solution for this.

    EventID: 1206 Event Source: Active Directory Web Services ADWS failed to determine whether the computer is a global catalog server. What will be the solution for this.

    Hi K jtm,.

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Forum. You can follow the link to your question:
    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • If I use the SSD to initiate the operating system and a hard disk of data what exactly will be the benefit of this end?

    Hello

    I would like to know if I use the SSD drive for the operating system boot and a hard drive for data. What will be the benefit of this effect,

    I know that SSDS starts much more quickly and reads and writes data faster.

    When I use the SSD for OS then my only wil advantage so I have faster from the OS, not more than

    but the reading and writing data wil either by the hard drive so I wil not use all the benefits of the SSD, data wil be read and written by hard drive!

    Am I right or wrong?

    Johan

    SSD benefits for most of the time of loading, and it is for all software. If you install Windows on a SSD and return to a HARD drive after a few weeks you will certainly appreciate the value of an SSD, just for the

    only the loading.

    While startup in Windows is the most obvious, the Windows advantage is usually a bit snappier

    on an SSD.

    An SSD expected to also help in many programs such as Photoshop, video editing, the processing speeds

    or CAD, due to data being created during the writing of these programs.

    I think the reads and writes more visible with large files.

    All my programs are on the SSD, but my games are on the HARD disk.

    Games to load a large number of data and will load faster on an SSD, but it's still a few seconds.

    and as games use a lot of Go, it is not really profitable to keep (150 +) on an SSD.

    -J' I keep most of my data, except the music (to save space) in my user folder, but haven't really

    noticed a difference in speed when opening a data file, such as a Word, PDF, images, or similar

    'small' files from the HARD drive.
    -I wouldn't take an SSD less 120 GB. Try to run Windows on a 60GB translate too

    stuffing autour with management of data between the SSD and HDD. In particular, as it should be

    keep 20% an SSD free to allow the two "garbage collection" and deliver a load of

    cells of extra memory to extend the life of the DSS (data gets moved to empty cells when the cells die).

    There is also a noticeable difference between the speeds of SATA2 and SATA 3 controller, so if your motherboard uses the SATA2 more the advantage of an SSD is not as great as with SATA3.

    In addition, the new SATA3 SSD controllers are faster than those of two years ago.

    SSD is a big enough topic. There are many items in the wild that may be useful.

    .

  • What will be the form of the file (file://) Protocol in firefox? Using file://servername/foldername, I am uable to open a folder. But she supported in other browsers. Need a quick solution to this issue.

    What will be the form of the file (file://) Protocol in firefox? Using file://servername/foldername, I am uable to open a folder. But it

    supported in other browsers. Need a quick solution to this issue.
    I used following code snippets:
    < a href = "file://PC2/c$" > open the file < /a >
    It is used to open C: /. But it does not work in other browsers except Mozilla.

    Need a solution as soon as possible...

    See also:

  • Is there a better way to make the selection on this slider?

    Is there a better way to make the selection on this slider?
    I need to retrieve the test scores max (tesc_code SO1, S02, S03 etc... etc...)
    I get the results presented here, but I wonder if it's a better way to do this.
    The results should be back in the same cursor... e
    CURSOR c_sortest_SAT_scores(p_pidm IN saturn.sortest.sortest_pidm%TYPE,
    p_term in saradap.saradap_term_code_entry%TYPE)
    IS
    SELECT   s01.sortest_pidm       pidm_s01,
             s01.sortest_tesc_code  tesc_code_s01,
             s01.sortest_test_score score_s01,
             s02.sortest_pidm       pidm_s02,
             s02.sortest_tesc_code  tesc_code_s02,
             s02.sortest_test_score score_s02,
             s07.sortest_pidm       pidm_s07,
             s07.sortest_tesc_code  tesc_code_s07,
             s07.sortest_test_score score_s07,
             s08.sortest_pidm        pidm_s08,
             s08.sortest_tesc_code   tesc_code_s08,
             s08.sortest_test_score score_s08,
             s09.sortest_pidm        pidm_s09,
             s09.sortest_tesc_code   tesc_code_s09,
             s09.sortest_test_score  score_s09
      FROM   saturn.sortest s01,
             saturn.sortest s02,
             saturn.sortest s07,
             saturn.sortest s08,
             saturn.sortest s09
     WHERE       s01.sortest_tesc_code IN ('S01')
             AND s01.sortest_pidm = p_pidm
             AND s01.sortest_term_code_entry = p_term
             AND s01.sortest_test_score =
                   (SELECT   MAX (s01a.sortest_test_score)
                      FROM   saturn.sortest s01a
                     WHERE   S01.sortest_pidm = s01a.sortest_pidm
                             AND S01A.sortest_tesc_code IN ('S01'))
             AND s02.sortest_tesc_code IN ('S02')
             AND s02.sortest_pidm = p_pidm
             AND s02.sortest_term_code_entry = p_term
             AND s02.sortest_test_score =
                   (SELECT   MAX (S02A.sortest_test_score)
                      FROM   saturn.sortest s02a
                     WHERE   S02.sortest_pidm = s02a.sortest_pidm
                             AND S02A.sortest_tesc_code IN ('S02'))
             AND s07.sortest_tesc_code IN ('S07')
             AND s07.sortest_pidm = p_pidm 
             AND s07.sortest_term_code_entry = p_term
             AND s07.sortest_test_score =
                   (SELECT   MAX (S07A.sortest_test_score)
                      FROM   saturn.sortest S07A
                     WHERE   S07.sortest_pidm = S07A.sortest_pidm
                             AND S07A.sortest_tesc_code IN ('S07'))
             AND S08.sortest_tesc_code IN ('S08')
             AND S08.sortest_pidm = p_pidm 
             AND S08.sortest_term_code_entry = p_term
             AND S08.sortest_test_score =
                   (SELECT   MAX (S08A.sortest_test_score)
                      FROM   saturn.sortest S08A
                     WHERE   S08.sortest_pidm = S08A.sortest_pidm
                             AND S08A.sortest_tesc_code IN ('S08'))
                     AND S09.sortest_tesc_code IN ('S09')
             AND S09.sortest_pidm = p_pidm 
             AND S09.sortest_term_code_entry = p_term
             AND S09.sortest_test_score =
                   (SELECT   MAX (S09A.sortest_test_score)
                      FROM   saturn.sortest S09A
                     WHERE   S09.sortest_pidm = S09A.sortest_pidm
                             AND S09A.sortest_tesc_code IN ('S09'));

    Hello

    The problem is that you to act as a Cartesian product with all the tables (you will get: S01 * S02 * S08 * S09 lines!) Is it really what you want?
    I don't think...

    Wharton, you can do (with no Cartesian product) is:

    CURSOR c_sortest_SAT_scores(p_pidm IN saturn.sortest.sortest_pidm%TYPE,
    p_term in saradap.saradap_term_code_entry%TYPE)
    IS
    SELECT sortest_pidm pidm, sortest_tesc_code tesc_code,
           sortest_test_score score
      FROM sortest
     WHERE (sortest_tesc_code, sortest_test_score) IN (
              SELECT   sortest_tesc_code, MAX (sortest_test_score)
                  FROM sortest
                 WHERE sortest_tesc_code IN ('S01', 'S02', 'S07', 'S08', 'S09')
                   AND sortest_pidm = :p_pidm
                   AND sortest_term_code_entry = :p_term
              GROUP BY sortest_tesc_code)
       AND sortest_pidm = :p_pidm
       AND sortest_term_code_entry = :p_term
    

    However you absolutely need a Cartesian product, you can do:

    WITH allrows AS
         (SELECT sortest_pidm pidm, sortest_tesc_code tesc_code,
                 sortest_test_score score
            FROM sortest
           WHERE (sortest_tesc_code, sortest_test_score) IN (
                    SELECT   sortest_tesc_code, MAX (sortest_test_score)
                        FROM sortest
                       WHERE sortest_tesc_code IN
                                              ('S01', 'S02', 'S07', 'S08', 'S09')
                         AND sortest_pidm = :p_pidm
                         AND sortest_term_code_entry = :p_term
                    GROUP BY sortest_tesc_code)
             AND sortest_pidm = :p_pidm
             AND sortest_term_code_entry = :p_term)
    SELECT s01.pidm pidm_s01, s01.tesc_code tesc_code_s01, s01.score score_s01,
           s02.pidm pidm_s02, s02.tesc_code tesc_code_s02, s02.score score_s02,
           s07.pidm pidm_s07, s07.tesc_code tesc_code_s07, s07.score score_s07,
           s08.pidm pidm_s08, s08.tesc_code tesc_code_s08, s08.score score_s08,
           s09.pidm pidm_s09, s09.tesc_code tesc_code_s09, s09.score score_s09
      FROM allrows s01, allrows s02, allrows s07, allrows s08, allrows s09
     WHERE s01.tesc_code = 'S01'
       AND s02.tesc_code = 'S02'
       AND s07.tesc_code = 'S07'
       AND s08.tesc_code = 'S08'
       AND s09.tesc_code = 'S09'
    

    The lines will be stored in memory to a temporary table before that product happen (should be faster)...

  • iOS 10 is officially available in India? What will be the consequence of the installation of iOS 10 beta?

    is iOS 10 officially launched in India? What will be the consequence of the installation of iOS 10 beta

    iOS 10 is intended for the world of tomorrow. Do not install the beta today.

    TT2

  • What will be the official Firefox for x 64 Windows will be released?

    What will be the official Firefox for x 64 Windows will be released? Please note that Chrome has recently published its x 64 official version for Windows.

    Not the Win64 is not paused. Of course it was not a priority for work on Win64 since he was moved to the level 3 support in December 2012 as Mozilla putting the Win64 on channel every night on hold before then that is where the idea to be paused. There is a main bug report that must be treated with some potential closer to the occurrence of liberation there.

  • HP 15-f305dx: no one knows what will be the quantity max memory HP 15-f305dx Support

    No one knows what will be the quantity max memory HP 15-f305dx Support

    Hello

    Since the manuals:

    Two SODIMM memory customer accessible/upgradable module slots
    Support DDR3L-1600-MHz dual channel
    Support of the DDR3L 1 333 MHz single channel (DDR3L-1600 demoted to DDR3L-1333)(E1 processors)
    Supports up to 8 GB max memory system (module DDR3L 1600 MHz), (some models only)
    Supports the following memory system configurations:
    8192 MB (8192 MB × 1)
    6144 MB (4096 MB × 1 + 2048 MB × 1)
    4096 MB (4096 MB × 1 or 2048 MB × 2)
    2048 MB (2048 MB × 1)

    Source: http://support.hp.com/us-en/product/HP-15-Notebook-PC-series/8499333/model/8788166/manuals/

    Is your machine uses no CPU E1 there so 2 slots.

    Kind regards.

  • What will be the new version Firefox os? Thank you

    What will be the new Firefox Os version? Thank you

    Hello Stancol, development of new versions of firefox has been ceised to the beginning of the year: https://blog.mozilla.org/futurereleases/2016/02/04/firefox-os-smartphones-and-2-6/

  • If I build desktop what will be the benefits of the laptop

    Hello

    I f I am building a desktop computer myself that it will be the benefits of the laptop.

    1. with the best card video wil I be able to play much better 3D games

    2. with the best card video wil I watch movies in 3D much better.

    3. with the best card his wil, I listen to music with much better quality?   What will be the benefits exactly.

    response very short wil suffice.

    Johan

    Besides BossDweebe comments.

    The ability to stage the generation as funds allow

    A motherboard with integrated graphics card has just need to run memory, CPU, disk and enclosure (with power supply). You can add more memory, graphics cards, additional disks, card etc. of its funds allow, and they are all universally available.

    A laptop computer has limited or no update from the outset and options are very limited.

    While you can't reproduce the portability of a laptop with a desktop PC performance, you can get out the motherboards of small size means that even a game that PC doesn't have to be massive.

  • If the vcenter server is what will be the impact?

    Dear team,

    If the vcenter server is what will be the impact? Please provide us with feedback on the same.

    concerning

    Mr. VMware

    Even if the DRS will not work if your CV is failure

  • They are willing to buy adobe first cc cc 2015 2014. What will be the "upgrade will be free? Thank you

    They are willing to buy adobe first cc cc 2015 2014. What will be the "upgrade will be free? Thank you

    CC is a subscription and you have access to each version that is currently available, including versiuons again when they are released. Premiere Pro CC 2015 is not available yet, but expected in late May.

    Mylenium

  • What will be the first update Pro announcing exposure NAB 2014?

    What will be the first update Pro announcing exposure NAB 2014?

    There has been no announcement of a release date.

  • What will be the 10.1.4 Adobe Reader Chinese version published?

    Hello

    I would like to know what will be the 10.1.4 simplified version of the Chinese version of the Adobe Reader available. I work for a company that shipped the drive with our product. We ship the drive with six different languages, among them with the Chinese. For all languages, I need to have the same version. For most languages, we reached 10.1.4,, but for some, including the Chinese, the latest version is always 10.1. Our application deadline is October 15, so if there is not any new released versions until I use 10.1 for all languages.

    Thank you,

    Márton

    10.1.4 is available as a patch for simplified Chinese. Assuming that you already have a contract for the redistribution of player with Adobe (http://www.adobe.com/products/reader/distribution.html?readstep), your should ship 10.1 and let your users update using the integrated update of the drive mechanism.

    Alternatively, you can also consult the business guide (http://helpx.adobe.com/content/dam/kb/en/837/cpsid_83709/attachments/Acrobat_Enterprise_Ad ministration.pdf) admin on the bootstrapper section to see how to install the 10.1 and the patch only once.

  • What will be the exact command instead (archivelog from time ' SYSDATE-3' ;) ")

    HI all;

    configuration of RMAN
    CONFIGURE RETENTION POLICY to RECOVERY WINDOW OF 14 DAYS and others is by default

    I take weekly archivelog backup by following script
    run
    {
    Compressed backupset backup
    device type disk
    tag "weekly_archivelog".
    format ' / sw/weekly_archivelog_%d_t%t_c%c_s%s_p%p'
    ARCHIVELOG from time ' SYSDATE-7';
    }


    and

    I take daily archivelog backup by following script

    run
    {
    Compressed backupset backup
    device type disk
    tag "daily_archivelog".
    format ' / sw/daily11_archivelog_%d_t%t_c%c_s%s_p%p'
    ARCHIVELOG from time 'SYSDATE-3 '.
    }


    I want to ask about script.mainly daily backup (archivelog from time ' SYSDATE-3'; "), he takes daily 3 days archivelog backup

    What will be the exact command instead (archivelog from time ' SYSDATE-3' ;) ")

    OPTIMIZATION will ignore all files already saved, so ignore the archivelogs already backed up since a previous backup.

    However, given that optimization will not work with THE syntax of the TIME, you must specify your backup as a block:

    run
    {
    backup as compressed backupset
    device type disk
    tag "daily_archivelog"
    format '/sw/daily11_archivelog_%d_t%t_c%c_s%s_p%p'
    archivelog all;
    }
    

    Edited by: Brian on February 23, 2011 07:07

Maybe you are looking for

  • What MacBook for CAD?

    Hi people, I'm looking for any MacBook for my engineering studies. Therefore, it is necessary to use software of CAD on the Macbook (3D modeling) - unfortunately I do not know what kind of MacBook, I will use (buy); Can you please give me some advice

  • HP Envy 13 d008na: problems of fingerprint - HP Envy 13-d008na reader

    Hello I recently bought a laptop from HP Envy 13-d008na. It works well; However, I now encountered a problem with the fingerprint sensor. Hello Windows and HP SimplePass worked brilliantly so far - I've used them frequently to log into my laptop, as

  • With the help of driver and comparator on cards PXI-6552 to test DUT Tristate

    A functiona test, I need to check that my DUT outputs are tristate at some point in time. Is it possible to use the generation pin electronics driver to drive a voltage of mid range (say 1.6V) and the electronic pin Acquisition window comparator sear

  • Wireless network adapter could not be activated

    My laptop also did EXACTLY the same thing in the morning today. No effect with the wireless on switch on the computer. The light is always red. Last night an automatic update that happened (update for windows Vista (KB955430) 09/05/2009 09:03), which

  • Win7 VPN connects - returns the error code 806

    I use Win7 Ultimate, and try to establish a VPN connection to a job server.  I have a XP Pro system which connects OK but cannot get W7 to.  I have install the VPN as close to the installation of XP as I can but it works always... it refers to what a