Actual difference

Hi Gurus
I'm in the process of learning collection and unable to understand some points. I have the following code:
Code
create or replace
PROCEDURE process_all_rows
IS
   TYPE employees_aat
   IS TABLE OF employees%ROWTYPE;
      --INDEX BY PLS_INTEGER;
   l_employees employees_aat;
BEGIN
   SELECT *
   BULK COLLECT INTO l_employees
      FROM employees;
   FOR indx IN 1 .. l_employees.COUNT
   LOOP
     --  analyze_compensation
     -- (l_employees(indx));
     dbms_output.put_line(l_employees(indx).EMPLOYEE_ID);
     null;
   END LOOP;
END process_all_rows;
I think I'm using  nested table collection type and if you noticed  that I also remarks "Index by PLS Integer"  in my program and if  I uncomment it then it will become Associative array  collection type, Rite?
I executed this program with and without INDEX BY PLS_INTEGER and it gives same records, My question is that in which scenario I have to use INDEX BY PLS_INTEGER clause or in which scenario I don't need to use this clause. Please guide. Thanks.
If possible please refer me some good codes for oracle collection to understand it more properly. Thanks

Associative Array (Or call it Indexed collection) are sparse. You can do this
declare
  type tbl is table of varchar2(10) index by pls_integer;
  var tbl;
begin
  var(100) := 'karthick';
  var(200) := 'oracle';
end;
Such a thing is not possible in nested PL/SQL collection type. If you use Nested collection type you need to use .extend and create 200 elements in your collection to store that 2 values. Basically when ever you want to bulk collect a result from SELECT you can use Nested PL/SQL collection and for manual assignment you can use Associative Array.

Similar Messages

  • Whats the actual difference between Business system and Business service

    whats the actual difference between Business system and Business service

    Business System
    1) Business system is a logical system, and there is an importance on physical existence of the system.
    2) Also SLD entry is required.
    3)It is generally used for SAP applications, this is just a general prinicple followed but not mandatory.
    4)This is defined as part of the SLD and is a physical system whose parameters are well defined.
    5(Business systems refers to the physical systems, for instance the R/3 system. You define the business systems in the SLD
    Business Service
    1) You use a Business Service, when you do not have the System details of the the partner system to which you want to communicate. i.e. you have not configured the partner system in SLD.
    2) Business Service is an Absract Unit with Sender and Receiver Interfaces,In this case you need to explicitly add the message interfaces while doing configuration in ID.
    3) It is generally used for NON-SAP applications, this is just a general prinicple followed but not mandatory.
    4) This is not defined as part of SLD and whose technical parameters are not completely known.
    5)Business service is used when the message is not addressed to a business system. It is used mostly in B2B scenarios.
    Also go through these links and threads...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c7/301640033ae569e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Business service or Business system??
    Business Service vs Business System in Integration Directory.
    Best Regards

  • Actual difference between exterprise oracle 9i/10edition & standard edition

    hi,
    i want to know the actual difference between exterprise oracle 9i/10edition & standard edition.
    plz reply me.
    thanks,
    regards.

    For 10g
    http://www.oracle.com/technology/products/database/oracle10g/pdf/twp_general_10gdb_product_family.pdf
    For 9i
    http://www.oracle.com/technology/products/oracle9i/pdf/o9i_family_features.pdf
    HTH
    Girish Sharma

  • Macbook Air 11 and Macbook Air 13 (Any actual differences?)

    Between and i7 8GB 11" Macbook Air and i7 8GB Macbook Air
    Are there any actually differences other then the noted ones(such as no SD Card, Smaller Screen, etc)
    Do they run the exact same? Same GPU clocks/ram speeds etc? I figure since the 11" is smaller it's thermal properies might possibly be lacking.
    Or are they the exact same when running?
    Thanks guys, just a ranom question thar poped in my head.

    There is a company called HyperJuice that makes external batteries -
    http://www.hypershop.com/HyperJuice-External-Battery-for-MacBook-iPad-iPhone-USB -s/91.htm
    They're not cheap but I know a few of my users (that frequently travel overseas) use one and they've very happy with them. The ability to use your machine for 12+ hours without a charge can be fantastic for in the field work or on a long flight.
    I agree with SP, the screen size is not a trivial factor to consider. When I worked at the Apple Store it was a nearly daily occurence that people would bring back the 11" MacBook Air because they regretted having to deal with that little screen.
    So while the 11" MacBook Air might work just fine for you, just make sure to give it a thorough demo at an Apple Store to make sure you're completely satisfied.

  • Hi Friends what are the actual differences between  AT NEW & ON CHANGE

    what are the actual differences between  AT NEW & ON CHANGE ? can you list some of the differences?

    Hi,
    At New
    1. When a new record comes at new triggers. Atnew only used inside loop and endloop.
    2. At new is controlbreak statment on at new the left side field change, the event
    trigers and the values become 0 and *
    On Change
    1. On change of works same like at-new but the diff is it can be used out side of a loop,like select and endselect,case endcase.
    2.. on change of is not a control break statement and we can use onchange of out side the loop
    and
    The Major difference between the two is that AT NEW can be used ONLY for INTERNAL TABLES, while ON CHANGE OF can be used for any loop processing i.e do..enddo, while..endwhile and loop..endloop also.
    AT NEW <field>
    The block will be executed when the SY-TABIX is 1 (or) when the SY-TABIX 1 value has a change with the SY-TABIX value.
    With this block the field towards the right to the field are not accessable with in the block, and are shown with '*'. They can be accessed outside the block.
    ON CHANGE OF <itab>-<field>
    The block also works similar to the AT First. In this block all the fields are accesseble.
    ON CHANGE OF triggers whenever there is a change in that particular field.
    AT NEW triggers whenever there is a change in the fields before that particular field.ie. if there is a change in that combinations from the first field.
    On change off' works on variabels. The 1st time the statement isreached a memory copy is made of the value. The next time the statementis reached, the current value is compared to the stored value. If thereis a difference, the coding between ON... and ENDON. is executed. Youcan use this for a table workarea field, but if you have the table loopin a routine and the routine called several times, you can get unwantedresults. (Check the value of the last loop with the value of the firstnew loop.)
    The AT NEW (and others like AT END OF...) are specially for table loopprocessing. The coding between AT new FIELD and ANDAT is triggerdwhenever a the field or any field defined to the left is changed. Yourtable should be sorted by all fields from the left up to the consideredFIELD. Btw all fields to the right contain *, so it can be usefull tohave a second workarea filled to be printed or what ever you want.
    REWARD IF HELPFUL
    RAAM

  • Actual difference GT430 OC and LP and LP/OC?

    What's the actual difference between the N430GT-MD1GD3/OC, N430GT-MD1GD3/LP and the N430GT-MD1GD3/OC/LP apart from the fan?
    Appearantly it's even unclear to a lot of online retailers, which say they deliver the /OC/LP, but actually they ship the /OC or /LP..

    Quote from: Henry on 09-April-11, 05:35:53
    Not so hard to compare, see for yourself. Select the models and that's it.
    http://www.msi.com/service/product-comparison/vga.html
    I'm sorry, but that really doesn't give me any real clue to what actually the differences are..
    I see the OC has a memoryinterface of 64/128bit, but I have no Idea if that's better or worse than 128bit alone.
    the core clockspeed is different like 730 and 785 for the OC's, and memoryspeed differs only on the OC/LP..
    but isn't it the point of the whole cards to be able to 'overclock' the 'regulars' to the same speeds as the OC/LP?
    And between all cards the cardsize is different..
    And from experience I normally really don't believe the 'product-comparison' as 9 out of 10 times the specs are wrong anyway (yes on manufacturers own sites)..
    One thing I'm for example missing in this comparisonchart is the fan, which is definitly different between some cards..

  • Actual difference between a standard , sorted and hashed atble

    hi ,
    1. what is the actual difference between a
       standard,sorted and hashed table ? and
    2. where and when these are actually used and applied ?
       provide explanation with an example ....

    hi
    good
    Standard Internal Tables
    Standard tables have a linear index. You can access them using either the index or the key. If you use the key, the response time is in linear relationship to the number of table entries. The key of a standard table is always non-unique, and you may not include any specification for the uniqueness in the table definition.
    This table type is particularly appropriate if you want to address individual table entries using the index. This is the quickest way to access table entries. To fill a standard table, append lines using the (APPEND) statement. You should read, modify and delete lines by referring to the index (INDEX option with the relevant ABAP command).  The response time for accessing a standard table is in linear relation to the number of table entries. If you need to use key access, standard tables are appropriate if you can fill and process the table in separate steps. For example, you can fill a standard table by appending records and then sort it. If you then use key access with the binary search option (BINARY), the response time is in logarithmic relation to
    the number of table entries.
    Sorted Internal Tables
    Sorted tables are always saved correctly sorted by key. They also have a linear key, and, like standard tables, you can access them using either the table index or the key. When you use the key, the response time is in logarithmic relationship to the number of table entries, since the system uses a binary search. The key of a sorted table can be either unique, or non-unique, and you must specify either UNIQUE or NON-UNIQUE in the table definition.  Standard tables and sorted tables both belong to the generic group index tables.
    This table type is particularly suitable if you want the table to be sorted while you are still adding entries to it. You fill the table using the (INSERT) statement, according to the sort sequence defined in the table key. Table entries that do not fit are recognised before they are inserted. The response time for access using the key is in logarithmic relation to the number of
    table entries, since the system automatically uses a binary search. Sorted tables are appropriate for partially sequential processing in a LOOP, as long as the WHERE condition contains the beginning of the table key.
    Hashed Internal Tables
    Hashes tables have no internal linear index. You can only access hashed tables by specifying the key. The response time is constant, regardless of the number of table entries, since the search uses a hash algorithm. The key of a hashed table must be unique, and you must specify UNIQUE in the table definition.
    This table type is particularly suitable if you want mainly to use key access for table entries. You cannot access hashed tables using the index. When you use key access, the response time remains constant, regardless of the number of table entries. As with database tables, the key of a hashed table is always unique. Hashed tables are therefore a useful way of constructing and
    using internal tables that are similar to database tables.
    THANKS
    MRUTYUN

  • Is there any actual difference between Release, Debug and Debug Local configurations in SSRS project?

    Is there any actual difference between Release, Debug and Debug Local configurations in SSRS project?
    For example in VC++ Debug build would have all optimization turned off (by default) and included additional Debug information in executable.
    Since there is no executable produced for SSRS - is there any actual difference between configurations? Or are they only for the purpose of deploying to different destination servers?

    Hi JoeSchmoe115,
    The Project Configuration and Configuration Manager is a feature supported by Visual Studio, on which Business Intelligence Development Studio or SQL Server Data Tools is based. We can use Configuration Manager to create and manage sets of project properties
    in project configurations. You are right that the project configurations is only for deployment purpose in a Report Server project.
    Reference:
    http://technet.microsoft.com/en-us/library/ms155802.aspx 
    Regards,
    Mike Yin
    TechNet Community Support

  • Simulation and Actual difference

    Dear Experts,
    I am facing an error as follows:
    while iam doing billing simulation i am
    getting the correct  previous MR date and MR reading.
    (this will be printed in bill for customer understanding purpose)
    but when i am doing my actaul bill
    iam not getting the correct date and reading.
    like follow:
    in simulation:  previvious Mr date :  10.4.2011  with reading  100 units
    but in actul bill im getting like:  previous MR date 11.04.2011 110 units.
    but the actaul previous  mr date is  10.4.2011 with 100units.
    what iam getting in original bill is wrong.
    this is only happens for onw customer.
    any clue on this?
    Thanks..
    Cheers.

    Hi Avinash,
    thanks for reply, these are the actual readings.
    and the simulation bill period is : 13.04.2011 to 12.06.2011
    actual bill period is also same.
      MR date                                RR            MT          RS      MR rec.
      12.06.2011                             1          1           7     4,089
      12.04.2011                          1          3           7     3,938
      12.02.2011                           1          1           7     3,898
       12.10.2010                          1          3           7     2,920
       12.08.2010                          1          Z1           7     2,876
       12.06.2010                          1          3           7     2,876
       12.04.2010                          1          3           7     2,817
       12.02.2010                          1          3           7     2,760
      12.12.2009                          1          Z1           7     2,700
      12.10.2009                          1          3           7     2,685
      12.08.2009                          1          3           7     2,626
      12.06.2009                          1          1           7     2,567
      20.10.2008                          6     X     1           7     2,490
    cheers..

  • Actual Difference between Dev Alpha B and LE Z10 and Z10 ??

    Hi all,
    Well i just want to have a detailed configuration differences between these versions of BB10 Hardware's.
    What are the major differences of DAB, LE Z10 and Z10 ?? if there are any.

    But it seems they are different. The battery connector in LE is on the opposite side (like Dev Alpha).

  • What is difference between Iterator and Collection Wrapper?

    Hi all,
                  I dont understand the actual difference between Iterator and Collection Wrapper. I observed both are used for the same purpose. Could any one please let me know when to use Collection Wrapper and when to use Iterator??
    Thanks,
    Chinnu.

    L_Kiryl is right.
    Collections support global iteration (through collection->get_next( )) and local iteration (through iterator->get_next( )).
    Each collection has a focus object. Initially, the first object has the focus.
    Any global iteration moves the focus, which is published by the event FOCUS_CHANGED of the collection.
    If you want to iterate on the collection without moving the focus (and without triggering timeconsuming follow-up processes) you can use local iteration. To do so, request an iterator object from the collection and use this to iterate.
    And one more advantage of using iterator: it takes care of deleted entities. If you use global iteration then when you reach deleted entity it will be an exception. But there is no exception with iterator in the same situation.

  • What is the difference between knowing J2EE and knowing Java?

    Okay, I need a little help and guidance. I've been doing integration work for the past couple of years and I've been creating small programs in Java with our EAI application. Basic database updates, reading different file types from disc (XML, fixed-length, etc.), and a lot of other things. But never full-blown applications. So I think I know the Java language pretty well, although I haven't used everything, just what I needed.
    I've been hearing this phrase getting thrown around a lot: "Do you know J2EE" instead of "Do you know Java". What is the actual difference between the two? (Any good websites or books would help a lot).
    Another question I had since we were always building small programs they was never a great deal of stress to build object-oriented code. Is there a good book and/or websites on some basic standards and rules of thumbs to think about when I start designing my code?
    Thanks everyone

    Think of all the rich programs you can write with no import statements. That's knowing Java the language. Start adding the packages in the SDK. Ok, now maybe that's enough Java to get a job. J2EE adds a lot more packages for a bunch of interesting things - JSP and Servelets, EJB containers, etc. Sun docs on J2EE ought to list out all the wonderful added features. I'm sure I don't know anyone who has mastered ALL of these packages - "knowing" J2EE might take a direct download from the Matrix. Many interesting programs get along fine without any J2EE features.

  • Difference between eventhandlers and methods

    Hi all
    I hope i am correct when i say  creating an action called submit in a view raises an eventhandler called onactionsubmit in the implementation tab for that controller
    we are expected to write some coding in the implementation tab of the view controller in a specified area.
    lets say that this submit action should give us the details of a sales order wherein it should go to the componnet controller to get the data
    apart from this coding we need to write code for populating the context of the component controller from where we get the actual data
    so how different are the coding areas in  the view controller and the component controller since one handles an action and another getting a data?
    urgent.
    Thanks in advance
    krishna chaitanya

    hi all
    pls elaborate me about the actual difference between a eventhandler and a method
    thanks in advance
    krishna chaitanya

  • X1 Carbon model numbers 34442HU and 3444AZU - what's the difference?

    Hi guys,
    I'm ready to buy a new X1 Carbon (non-touch version) but I found two model codes for the same price and would like to know if there's any difference between them.
    They're model numbers 3444-2HU and 3444-AZU.
    I checked Lenovo's Maintenance Manual for this model and they do explain the differences between Dynamic Configure To Order (CTO), Custom Model Variant (CMV) and General Announce Variant (GAV) model numbers, but there's no clue as to what the actual differences might be.
    Any help is greatly appreciated as I'm anxious to order my new laptop!
    Cheers.

    3444AZU = i5-3317U(2.6GHz), 4GB RAM, 128GB Solid State Drive, 14in 1600x900 LCD, Intel HD Graphics, Intel 802.11agn wireless, 1Gb Ethernet, UltraNav, Secure Chip, 4c Li-Ion, Win7 Pro 64
    34442HU = i5-3317U(2.6GHz), 4GB RAM, 128GB Solid State Drive, 14in 1600x900 LCD, Intel HD Graphics, 1Gb Ethernet, UltraNav, Secure Chip, 4c Li-Ion, Win7 Pro 64
    Looks like the 2HU is missing 802.11 wireless. ???

  • How is actual bit depth measured

    I am analyzing some recordings I made in 24-bit format in Audacity.  Audacity can record true 24-bit integer files which Audition 3.0.1 recognizes as such.
    After checking a couple of the files in Audition 3.0.1, I found that the meaning of "Actual bit depth" in the amplitude statistics is not entirely clear.  It does seem to be based on the maximum peak in the file, but the bit estimate does not seem too clear.
    For example, in one of the files if I select any portion that includes the highest peak and get amplitude statistics, the actual bit depth reported is 24.  Example of a short selection that includes the peak:
    Mono
    Min Sample Value:    -22003
    Max Sample Value:    26329
    Peak Amplitude:    -1.9 dB
    Possibly Clipped:    0
    DC Offset:    -.003
    Minimum RMS Power:    -44.45 dB
    Maximum RMS Power:    -17.58 dB
    Average RMS Power:    -30.18 dB
    Total RMS Power:    -25.98 dB
    Actual Bit Depth:    24 Bits
    Using RMS Window of 50 ms
    However, as far as I can tell, any selection in the same file that does not inlude the highest peak (but may include nearby close peaks) results in actual bit depth of 16:
    Mono
    Min Sample Value:    -20082
    Max Sample Value:    22172
    Peak Amplitude:    -3.39 dB
    Possibly Clipped:    0
    DC Offset:    -.001
    Minimum RMS Power:    -54.14 dB
    Maximum RMS Power:    -19.96 dB
    Average RMS Power:    -36.26 dB
    Total RMS Power:    -32.95 dB
    Actual Bit Depth:    16 Bits
    Using RMS Window of 50 ms
    So it is unclear what level of peak amplitude distinguishes between 24- and 16-bit actual depth.  If the bit-depth analysis is based on most-significant bits being zero, I would think that the trigger for identifying 16-bit actual depth in a 24-bit file would be to find that the 8 most-significant bits of the 24-bit samples are zero for all samples in the selection.  So for a 24-bit integer file to have actual bit depth of 16 bits for a slection, the greatest peak would be less than -48 dBFS.  But in the example above, the distinction seems to be having a peak amplitidue around -3.4 dB versus -1.9 dB.

    >what actual difference does it make to anything?
    Hard to say what difference it makes to anything without knowing what "actual bit depth" actually measures.  It could be important, or could be useless.  In the past I have not paid much attention to it because it is poorly described.  It recently came to my attention because the files from a recent recording in 24-bit integer format were all reported as 16-bit "actual" bit depth.  This is in contrast to some previous recordings made in the same way which were identified as 24-bit "actual".  This implies there might be something different in the data formatting, the communication between the software and driver, between the driver and card, or something else.
    It is a bit surprising that no one got Synt. to explain it properly.
    >Oh, and the other thing about 24-bit int files is that they can lead you into a very false sense of security. If you decided, for instance, to reduce the amplitude of one by 48dB, then save it, and then decide to increase it again by that 48dB, you'd end up with a 24-bit file with just 16 bits of resolution - simply because it's an integer file. If you did the same thing with Audition's 32-bit floating point system, you'd lose no resolution at all.
    In my workflow that produces original recordings in a 24-bit integer file format, the format is an efficient way of storing 24-bit integer data from a 24-bit card.  Processing is another matter.  I use the Audition preference to convert files automatically to 32-bit when opening.

Maybe you are looking for

  • Blue ray dvd

    I am having problems with my blue ray dvd player.  All the connections are done properly but when I insert disc and turn the dvd on I do not get any pictures or sound.  Can anyone explain what I am doing wrong?

  • "FRM-40200: Field is protected against update"

    "FRM-40200: Field is protected against update" ... hi guru, when im about to check the checkbox in transaction statuses in receiving-> transaction status summary . to  resolve the pending receiving transaction in PO, this error occurs "FRM-40200: Fie

  • How to install 11.1 flash on windows 8 computer?

    How do I install flash 11.1 on a windows 8 laptop?

  • How to put multiple gifs together?

    http://mothermonster.tumblr.com/post/2863927788 (Please look at my attachment for reference) I'm really new to Photoshop, so I know this is probably reall easy to do. Help would be appreciated, thanks.

  • Message Type RFQ-Email is not trigerred

    Hi Friends, I have maintained the condition records. Message schema is also assigned. But Output Type for Email for RFQ is not trigerred in ME9A only output type for print is trigerred. Can anyone guide pls.... points will be promptly given... Thanks