PLSQL Practice-----Please help!!!

Hi,
I'm a beginner for the PLSQL. if someone give me some tips, It's really helpful for me.
There two table.
Table A (Transaction table : keep coming a rows)
A_id B
111 aaa,bbb,ccc
222 yyy,ss,ccc
333 sss,yyy,ddd
Table B (Fixed code table)
X_id Y
xxx aaa,bbb,ccc
yyy ggg,bb,cca
zzz sss,yyy,ddd
Table C
A_id X_id
1. First of all, I have to compare two table A & B (between B col & Y col). if the two columns match, I want to insert A_id & X_id into Table C.
2. If the two columns are not match, I want to insert A_id & "OTHER"(Instead of the X_id) into the Table C.
How can I get below results?
A_ID X_ID
111 xxx
222 OTHER
333 zzz

duplicate thread.. and try this...
SQL> select * from table_a;
A_ID B
111 aaa,bbb,ccc
222 yyy,ss,ccc
333 sss,yyy,ddd
SQL> select * from table_b;
X_ID Y
xxx aaa,bbb,ccc
yyy ggg,bb,cca
zzz sss,yyy,ddd
SQL> select * from table_c;
no rows selected
SQL> Insert into Table_C select table_a.a_id,nvl(table_b.x_id,'Other') From table_a left outer join table_b on table_a.B = table_b.Y;
3 rows created.
SQL> select * from table_c;
A_ID X_ID
111 xxx
333 zzz
222 Other

Similar Messages

  • Junior PLSQL Developer please help

    hello,
    i am working as PLSQL DEVELOPER
    i have written one procedure for my client, that will insert all the transactions that are done on particular day into a table.my peocedure is completed sucessfully but
    Here my problem is , my procedure should execute everyday
    at 7PM .i don't know how to execute that procedure everyday at 7PM.
    please give suggestions on this urgent
    regards
    vamsi

    You can obviously schedule a job in database using Database Scheduler but you should have a appropriate privilege to do so.
    Best thing is ask your DBA and they will schedule for you. You just have to proivde, what time you want to execute and what you want to execute and they will take care.
    SYS.DBMS_SCHEDULER.CREATE_JOB
    job_name => 'your_job_name'
    ,start_date => TO_TIMESTAMP_TZ('2007/05/21 14:08:13.335383 -04:00','yyyy/mm/dd hh24:mi:ss.ff tzh:tzm')
    ,repeat_interval => 'FREQ=DAILY;BYHOUR=7;BYMINUTE=00'
    ,end_date => NULL
    ,job_class => 'DEFAULT_JOB_CLASS'
    ,job_type => 'PLSQL_BLOCK'
    ,job_action => 'begin YOUR_JOB_NAME ; end;'
    ,comments => 'ANYCOMMENT'
    );

  • PLSQL procedures please help

    Have put below my query

    Hi all,
    Sorry for troubling ,again i am requesting your inputs and any possible help.
    I am thinking that my the question confusing now also? I very appreciate your suggestions and accordingly i will try so that everyone can understand and help on the query.
    Edited by: user_7000011 on 23-Mar-2009 10:52

  • Plsql query please help out

    Hi ,
    I have table with columns
    item,product,class1,class2,item_path,category
    How can I query the table to find out
    same item_path with differnt categories.I want to update those rows.
    Thanks.

    If you're just trying to identify the paths with more than one category then something like...
    select item_path, count(category) cnt
    from mytable
    group by item_path
    having count(category) > 1may do it.

  • Best practices for ARM - please help!!!

    Hi all,
    Can you please help with any pointers / links to documents describing best practices for "who should be creating" the GRC request in below workflow of ARM in GRC 10.0??
    Create GRC request -> role approver -> risk manager -> security team
    options are : end user / Manager / Functional super users / security team.
    End user and manager not possible- we can not train so many people. Functional team is refusing since its a lot of work. Please help me with pointers to any best practices documents.
    Thanks!!!!

    In this case, I recommend proposing that the department managers create GRC Access Requests.  In order for the managers to comprehend the new process, you should create a separate "Role Catalog" that describes what abilities each role enables.  This Role Catalog needs to be taught to the department Managers, and they need to fully understand what tcodes and abilities are inside of each role.  From your workflow design, it looks like Role Owners should be brought into these workshops.
    You might consider a Role Catalog that the manager could filter on and make selections from.  For example, an AP manager could select "Accounts Payable" roles, and then choose from a smaller list of AP-related roles.  You could map business functions or tasks to specific technical roles.  The design flaw here, of course, is the way your technical roles have been designed.
    The point being, GRC AC 10 is not business-user friendly, so using an intuitive "Role Catalog" really helps the managers understand which technical roles they should be selecting in GRC ARs.  They can use this catalog to spit out a list of technical role names that they can then search for within the GRC Access Request.
    At all costs, avoid having end-users create ARs.  They usually select the wrong access, and the process then becomes very long and drawn out because the role owners or security stages need to mix and match the access after the fact.  You should choose a Requestor who has the highest chance of requesting the correct access.  This is usually the user's Manager, but you need to propose this solution in a way that won't scare off the manager - at the end of the day, they do NOT want to take on more work.
    If you are using SAP HR, then you can attempt HR Triggers for New User Access Requests, which automatically fill out and submit the GRC AR upon a specific HR action (New Hire, or Termination).  I do not recommend going down this path, however.  It is very confusing, time consuming, and difficult to integrate properly.
    Good luck!
    -Ken

  • I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    Here's two popup test sites.
    http://www.kephyr.com/popupkillertest/test/index.html
    http://www.popuptest.com/

  • Please help-PLSQL complex procedure writing

    Hi all,
    I am back again and requesting your help on this.I want your help to properly write the below code because now i feel-that its very confusing and not easily readable and following the program is tough.
    I want to replace the same looping done below in many places using a function/or any other approaches.Then,need all your important suggestions in any other ways,approach...i can do the same which would be good for performance and best practices here.
    Please help me as i am very stuck with this and struggling so much.
    For any suggested things-please help me with the new code which will be very helping
    CREATE OR REPLACE PROCEDURE "TEST_PROCEDURE" (
       p_strtplanid    test_training_plan.tplan_id%TYPE,
       p_strpersonid   test_person.person_id%TYPE,
       p_strorg_id     test_org.org_id%TYPE
    IS
      /*Here declarartion of variables */
    BEGIN
       /*Since TP is presently in LR,verify if its completed or not*/
       SELECT COUNT (learning_record_id)
         INTO v_inttpcompltd
         FROM test_learning_record lr
        WHERE lr.catalog_item_type = 'training-plan'
          AND lr.status IN ('PASSED', 'WAIVED', 'TESTED_OUT')
          AND lr.lr_catalog_history_id = p_strtplanid
          AND lr.lr_person_id = p_strpersonid
          AND lr.lr_org_id = p_strorg_id;
       /*Credit based */
       SELECT is_credit_based
         INTO v_intcreditbased
         FROM test_training_plan
        WHERE tplan_id = p_strtplanid;
       IF (v_inttpcompltd > 0)
       THEN
          IF (v_intcreditbased = 1)
          THEN
             DBMS_OUTPUT.put_line ('Starting Credit based ');
             v_inttotreqactcompltd :=
                fn_tp_get_cmpltd_act_cnt (p_strtplanid,
                                          p_strpersonid,
                                          p_strorg_id
             SELECT NVL (EXTRACT (tplan_xml_data, '//numberOfCredits/text()').getstringval
                         0
                    NVL (EXTRACT (tplan_xml_data, '//accreditingOrg/text()').getstringval
                         0
               INTO v_intrequiredcredits,
                    v_straccreditingorg
               FROM test_training_plan
              WHERE tplan_id = p_strtplanid;
             SELECT accred_org_id
               INTO v_straccreditingorg
               FROM test_tp_acc_org
              WHERE tplan_id = p_strtplanid;
             IF (v_intrequiredcredits > v_inttotreqactcompltd)
             THEN
                DBMS_OUTPUT.put_line ('test_tp_acc_org ');
                FOR obj IN (SELECT t_objective_id,
                                   NVL (required_credits, 0) required_credits
                              FROM test_tp_objective
                             WHERE tplan_id = p_strtplanid)
                LOOP
                   DBMS_OUTPUT.put_line
                      (   ' Looping each Objective******************************'
                       || obj.t_objective_id
                   SELECT NVL (SUM (lcdt.credit_hours), 0)
                     INTO v_inttotreqacttobecompltd
                     FROM test_train_obj_activity toa,
                          test_tp_objective tpobj,
                          test_learningactivity_credits lcdt,
                          test_tp_acc_org acc_org
                    WHERE lcdt.learning_activity_id = toa.activity_id
                      AND lcdt.acc_org_id = v_straccreditingorg
                      AND toa.t_objective_id = tpobj.t_objective_id
                      AND tpobj.tplan_id = acc_org.tplan_id
                      AND toa.t_objective_id = obj.t_objective_id
                      AND tpobj.tplan_id = p_strtplanid
                      AND tpobj.t_objective_id = obj.t_objective_id
                      AND toa.is_required = 1;
                   DBMS_OUTPUT.put_line
                                   (   'Total credits for required activities****'
                                    || v_inttotreqacttobecompltd
                   --get credits for non event activities
                   SELECT NVL (SUM (credit_hours), 0)
                     INTO v_intnoneventbasedactcredit
                     FROM test_tp_objective tobj,
                          test_train_obj_activity toa,
                          test_learningactivity_credits lac,
                          test_learning_record lr,
                          test_tp_learning_activity tplplr,
                          test_learning_record tplr
                    WHERE tobj.t_objective_id = obj.t_objective_id
                      AND toa.t_objective_id = tobj.t_objective_id
                      AND toa.activity_id = lac.learning_activity_id
                      AND toa.activity_id = lr.lr_catalog_history_id
                      AND toa.is_required = 1
                      AND lr.learning_record_id = tplplr.activity_lp_lr_id
                      AND tplplr.tp_lp_lr_id = tplr.learning_record_id
                      AND tobj.tplan_id = p_strtplanid
                      AND tplr.lr_catalog_history_id = p_strtplanid
                      AND acc_org_id = v_straccreditingorg
                      AND lr.lr_person_id = p_strpersonid
                      AND tplr.lr_person_id = p_strpersonid
                      AND lr.status IN ('PASSED', 'WAIVED', 'TESTED_OUT');
                   --Get credits for events
                   SELECT NVL (SUM (credit_hours), 0)
                     INTO v_inteventbasedactcredit
                     FROM test_learningactivity_credits lac
                    WHERE lac.learning_activity_id IN (
                             SELECT event_id
                               FROM test_tp_objective tobj,
                                    test_train_obj_activity toa,
                                    test_learning_record lr,
                                    test_event_sessions sessions,
                                    test_tp_learning_activity tplplr,
                                    test_learning_record tplr
                              WHERE tobj.t_objective_id = obj.t_objective_id
                                AND tobj.t_objective_id = toa.t_objective_id
                                AND toa.activity_id = sessions.event_id
                                AND toa.is_required = 1
                                AND sessions.event_session_id =
                                                          lr.lr_catalog_history_id
                                AND lr.learning_record_id =
                                                          tplplr.activity_lp_lr_id
                                AND tplplr.tp_lp_lr_id = tplr.learning_record_id
                                AND tplr.lr_catalog_history_id = p_strtplanid
                                AND tobj.tplan_id = p_strtplanid
                                AND tplr.lr_person_id = p_strpersonid
                                AND lr.lr_person_id = p_strpersonid
                                AND lr.status IN
                                               ('PASSED', 'WAIVED', 'TESTED_OUT'))
                      AND acc_org_id = v_straccreditingorg;
                   v_inttotreqactcompltd :=
                            v_intnoneventbasedactcredit + v_inteventbasedactcredit;
                   DBMS_OUTPUT.put_line
                                (   ' Total credits of reqd. completed activities'
                                 || v_inttotreqactcompltd
                   IF (v_inttotreqacttobecompltd <= v_inttotreqactcompltd)
                   THEN
                      DBMS_OUTPUT.put_line
                         (   '****** START INSIDE OBJ-COUNT COMPLETED************** '
                          || obj.required_credits
                      v_strreturnval :=
                         fn_tp_obj_comp_act_cdt (p_strpersonid,
                                                 p_strtplanid,
                                                 obj.t_objective_id,
                                                 v_intcreditbased
                      DBMS_OUTPUT.put_line (   'FN_TP_GET_CMPLTD_ACT_CNT'
                                            || v_strreturnval
                      IF (obj.required_credits > v_strreturnval)
                      THEN
                         DBMS_OUTPUT.put_line
                                   || obj.required_credits
    *I want to write a function/or any other approaches to do the below looping and SELECT functionality and also read the return certain values selected.*
    *Most importantly- this query being run in several places throughout the whole main program and everytime I have to put this SQL there and*
    *which has increased the code by huge amount.*
    **Another thing is-I want to remove the NOT IN below and use a different approach.
                         /*Start processing of new activity */
                         FOR activity IN
                            (SELECT objact.activity_id, objact.activity_type,
                                    objact.is_required
                               FROM test_training_plan tp,
                                    test_tp_objective tp_obj,
                                    test_train_obj_activity objact
                              WHERE tp.tplan_id = tp_obj.tplan_id
                                AND tp.tplan_id = p_strtplanid
                                AND tp_obj.t_objective_id = obj.t_objective_id
                                AND tp_obj.t_objective_id = objact.t_objective_id
                                AND objact.activity_id NOT IN (
                                       SELECT tplplr.activity_id
                                         FROM test_learning_record lr,
                                              test_learning_record lr1,
                                              test_tp_learning_activity tplplr
                                        WHERE lr.lr_catalog_history_id =
                                                                tplplr.activity_id
                                          AND lr.learning_record_id =
                                                          tplplr.activity_lp_lr_id
                                          AND tplplr.tp_lp_lr_id =
                                                            lr1.learning_record_id
                                          AND lr1.lr_catalog_history_id =
                                                                      p_strtplanid
                                          AND lr.lr_person_id = p_strpersonid
                                          AND lr1.lr_person_id = p_strpersonid
                                          AND lr.status IN
                                                 ('PASSED', 'WAIVED',
                                                  'TESTED_OUT'))
                                AND objact.activity_id NOT IN (
                                       SELECT event_id
                                         FROM test_train_obj_activity toa,
                                              test_event_sessions sessions,
                                              test_learning_record lr1,
                                              test_tp_learning_activity tplearnact,
                                              test_learning_record tplr
                                        WHERE toa.activity_id = sessions.event_id
                                          AND sessions.event_session_id =
                                                         lr1.lr_catalog_history_id
                                          AND lr1.learning_record_id =
                                                      tplearnact.activity_lp_lr_id
                                          AND tplearnact.tp_lp_lr_id =
                                                           tplr.learning_record_id
                                          AND tplr.lr_catalog_history_id =
                                                                      p_strtplanid
                                          ---AND toa.is_required = 1
                                          AND toa.t_objective_id =
                                                                obj.t_objective_id
                                          AND tplr.lr_person_id = p_strpersonid
                                          AND lr1.lr_person_id = p_strpersonid
                                          AND lr1.status IN
                                                 ('PASSED', 'WAIVED',
                                                  'TESTED_OUT')))
                         LOOP
                            /*The function should return data so that i can validate them as the below ones*/
                            IF (activity.activity_type = 'Course')
                            THEN
                               sp_test_assign_coursetp (p_strpersonid,
                                                   activity.activity_id,
                                                   p_strpersonid,
                                                   activity.activity_type,
                                                   activity.is_required,
                                                   p_strtplanid,
                                                   v_straccreditingorg,
                                                   obj.t_objective_id,
                                                   v_strlpid
                            ELSIF (activity.activity_type = 'Test')
                            THEN
                               sp_assign_testtp (p_strpersonid,
                                                 activity.activity_id,
                                                 p_strpersonid,
                                                 activity.activity_type,
                                                 activity.is_required,
                                                 p_strtplanid,
                                                 v_straccreditingorg,
                                                 obj.t_objective_id
                            END IF;
                         END LOOP;
                         DBMS_OUTPUT.put_line ('Case of Optional Activity');
                      ELSE
                         /*Start processing of new activity */
                         FOR activity IN
                            (SELECT objact.activity_id, objact.activity_type,
                                    objact.is_required
                               FROM test_training_plan tp,
                                    test_tp_objective tp_obj,
                                    test_train_obj_activity objact
                              WHERE tp.tplan_id = tp_obj.tplan_id
                                AND tp.tplan_id = p_strtplanid
                                AND tp_obj.t_objective_id = obj.t_objective_id
                                AND objact.is_required = 1
                                AND tp_obj.t_objective_id = objact.t_objective_id
                                AND objact.activity_id NOT IN (
                                       SELECT tplplr.activity_id
                                         FROM test_learning_record lr,
                                              test_learning_record lr1,
                                              test_tp_learning_activity tplplr
                                        WHERE lr.lr_catalog_history_id =
                                                                tplplr.activity_id
                                          AND lr.learning_record_id =
                                                          tplplr.activity_lp_lr_id
                                          AND tplplr.tp_lp_lr_id =
                                                            lr1.learning_record_id
                                          AND lr1.lr_catalog_history_id =
                                                                      p_strtplanid
                                          AND lr.lr_person_id = p_strpersonid
                                          AND lr1.lr_person_id = p_strpersonid
                                          AND lr.status IN
                                                 ('PASSED', 'WAIVED',
                                                  'TESTED_OUT'))
                                AND objact.activity_id NOT IN (
                                       SELECT event_id
                                         FROM test_train_obj_activity toa,
                                              test_event_sessions sessions,
                                              test_learning_record lr1,
                                              test_tp_learning_activity tplearnact,
                                              test_learning_record tplr
                                        WHERE toa.activity_id = sessions.event_id
                                          AND sessions.event_session_id =
                                                         lr1.lr_catalog_history_id
                                          AND lr1.learning_record_id =
                                                      tplearnact.activity_lp_lr_id
                                          AND tplearnact.tp_lp_lr_id =
                                                           tplr.learning_record_id
                                          AND tplr.lr_catalog_history_id =
                                                                      p_strtplanid
                                          AND toa.is_required = 1
                                          AND toa.t_objective_id =
                                                                obj.t_objective_id
                                          AND tplr.lr_person_id = p_strpersonid
                                          AND lr1.lr_person_id = p_strpersonid
                                          AND lr1.status IN
                                                 ('PASSED', 'WAIVED',
                                                  'TESTED_OUT'))
                         LOOP
                            /*Move the TP only for required ids */
                            IF (activity.activity_type = 'Course')
                            THEN
                               SP_TEST_ASSIGN_COURSETP (p_strpersonid,
                                                   activity.activity_id,
                                                   p_strpersonid,
                                                   activity.activity_type,
                                                   activity.is_required,
                                                   p_strtplanid,
                                                   v_straccreditingorg,
                                                   obj.t_objective_id,
                                                   v_strlpid
                            ELSIF (activity.activity_type = 'Test')
                            THEN
                               sp_assign_testtp (p_strpersonid,
                                                 activity.activity_id,
                                                 p_strpersonid,
                                                 activity.activity_type,
                                                 activity.is_required,
                                                 p_strtplanid,
                                                 v_straccreditingorg,
                                                 obj.t_objective_id
                            END IF;
                         END LOOP;
                      END IF;
                   ELSE
                      DBMS_OUTPUT.put_line
                         ('*********/*No of required credits is more then completed
                                ******Start processing of new activity */'
                      /*Start processing of new activity */
                      FOR activity IN
                         (SELECT objact.activity_id, objact.activity_type,
                                 objact.is_required
                            FROM test_training_plan tp,
                                 test_tp_objective tp_obj,
                                 test_train_obj_activity objact
                           WHERE tp.tplan_id = tp_obj.tplan_id
                             AND tp.tplan_id = p_strtplanid
                             AND tp_obj.t_objective_id = obj.t_objective_id
                             AND objact.is_required = 1
                             AND objact.t_objective_id = tp_obj.t_objective_id
                             AND objact.activity_id NOT IN (
                                    SELECT tplplr.activity_id
                                      FROM test_learning_record lr,
                                           test_learning_record lr1,
                                           test_tp_learning_activity tplplr
                                     WHERE lr.lr_catalog_history_id =
                                                                tplplr.activity_id
                                       AND lr.learning_record_id =
                                                          tplplr.activity_lp_lr_id
                                       AND tplplr.tp_lp_lr_id =
                                                            lr1.learning_record_id
                                       AND lr1.lr_catalog_history_id =
                                                                      p_strtplanid
                                       AND lr.lr_person_id = p_strpersonid
                                       AND lr1.lr_person_id = p_strpersonid
                                       AND lr.status IN
                                               ('PASSED', 'WAIVED', 'TESTED_OUT'))
                             AND objact.activity_id NOT IN (
                                    SELECT event_id
                                      FROM test_train_obj_activity toa,
                                           test_event_sessions sessions,
                                           test_learning_record lr1,
                                           test_tp_learning_activity tplearnact,
                                           test_learning_record tplr
                                     WHERE toa.activity_id = sessions.event_id
                                       AND sessions.event_session_id =
                                                         lr1.lr_catalog_history_id
                                       AND lr1.learning_record_id =
                                                      tplearnact.activity_lp_lr_id
                                       AND tplearnact.tp_lp_lr_id =
                                                           tplr.learning_record_id
                                       AND tplr.lr_catalog_history_id =
                                                                      p_strtplanid
                                       AND toa.is_required = 1
                                       AND toa.t_objective_id = obj.t_objective_id
                                       AND tplr.lr_person_id = p_strpersonid
                                       AND lr1.lr_person_id = p_strpersonid
                                       AND lr1.status IN
                                               ('PASSED', 'WAIVED', 'TESTED_OUT')))
                      LOOP
                         /*Move the TP only for required ids */
                         IF (activity.activity_type = 'Course')
                         THEN
                            sp_assign_coursetp (p_strpersonid,
                                                activity.activity_id,
                                                p_strpersonid,
                                                activity.activity_type,
                                                activity.is_required,
                                                p_strtplanid,
                                                v_straccreditingorg,
                                                obj.t_objective_id,
                                                v_strlpid
                         ELSIF (activity.activity_type = 'Test')
                         THEN
                            sp_assign_testtp (p_strpersonid,
                                              activity.activity_id,
                                              p_strpersonid,
                                              activity.activity_type,
                                              activity.is_required,
                                              p_strtplanid,
                                              v_straccreditingorg,
                                              obj.t_objective_id
                         END IF;
                      END LOOP;
                   END IF;
                   FOR lr_lp_act IN (SELECT tplplr.activity_id,
                                            tplplr.tp_lp_lr_id
                                       FROM test_tp_objective tp_obj,
                                            test_train_obj_activity toa,
                                            test_learning_record lr,
                                            test_tp_learning_activity tplplr,
                                            test_learning_record tplr
                                      WHERE tplplr.activity_lp_lr_id =
                                                             lr.learning_record_id
                                        AND lr.lr_catalog_history_id =
                                                                   toa.activity_id
                                        AND tplplr.tp_lp_lr_id =
                                                           tplr.learning_record_id
                                        AND tp_obj.t_objective_id =
                                                                toa.t_objective_id
                                        AND tp_obj.tplan_id = p_strtplanid
                                        AND tplplr.lp_lr_flag = 'LR'
                                        AND tp_obj.t_objective_id =
                                                                obj.t_objective_id
                                        AND lr.status IN
                                               ('PASSED', 'WAIVED', 'TESTED_OUT')
                                        AND lr.lr_person_id = p_strpersonid
                                        AND tplr.lr_person_id = p_strpersonid)
                   LOOP
                      DBMS_OUTPUT.put_line
                          (   'Get data for the activity to update TPs LP id****'
                           || v_strlpid
                      DBMS_OUTPUT.put_line
                         (   'Values which I am updating----lr_lp_act.activity_id---'
                          || obj.t_objective_id
                      DBMS_OUTPUT.put_line
                         (   'Values which I am updating----lr_lp_act.activity_id---'
                          || lr_lp_act.activity_id
                      DBMS_OUTPUT.put_line
                         (   'Values which I am updating----lr_lp_act.tp_lp_lr_id---'
                          || lr_lp_act.tp_lp_lr_id
                      UPDATE test_tp_learning_activity
                         SET tp_lp_lr_id = v_strlpid
                       WHERE activity_id = lr_lp_act.activity_id
                         AND tp_lp_lr_id = lr_lp_act.tp_lp_lr_id;
                      UPDATE test_learning_record
                         SET is_for_training_plan = 'NO'
                       WHERE learning_record_id IN (
                                         SELECT activity_lp_lr_id
                                           FROM test_tp_learning_activity
                                          WHERE tp_lp_lr_id =
                                                             lr_lp_act.tp_lp_lr_id);
                   END LOOP;
                END LOOP;
                DELETE FROM test_learning_record_details
                      WHERE learning_record_id =
                               (SELECT learning_record_id
                                  FROM test_learning_record
                                 WHERE lr_catalog_history_id = p_strtplanid
                                   AND lr_person_id = p_strpersonid
                                   AND status = 'PASSED');
                DBMS_OUTPUT.put_line
                   ('UPDATE
                                        test_learning_record_details'
                DELETE FROM test_learning_record
                      WHERE learning_record_id =
                               (SELECT learning_record_id
                                  FROM test_learning_record
                                 WHERE lr_catalog_history_id = p_strtplanid
                                   AND lr_person_id = p_strpersonid
                                   AND status = 'PASSED');
             END IF;

    Hello, as I mentioned on the other thread, views are the way to go here, not functions (they can be expensive from a performance perspective).
    Therefore, for each group of repeated SELECTs, can you create a view based on that SELECT, and then substitute the view for the SELECTs in this code, and repost it (you know the code best) -- it will be easier then to rationalise it, and it would seem very likely that the LOOPs could be minimised if not eliminated altogether.
    Edit
    For example, you could try something like:
    CREATE OR REPLACE VIEW TEST_EVENT_V
    AS
      SELECT event_id
                                         FROM test_train_obj_activity toa,
                                              test_event_sessions sessions,
                                              test_learning_record lr1,
                                              test_tp_learning_activity tplearnact,
                                              test_learning_record tplr
                                        WHERE toa.activity_id = sessions.event_id
                                          AND sessions.event_session_id =
                                                         lr1.lr_catalog_history_id
                                          AND lr1.learning_record_id =
                                                      tplearnact.activity_lp_lr_id
                                          AND tplearnact.tp_lp_lr_id =
                                                           tplr.learning_record_id
                                          AND tplr.lr_catalog_history_id =
                                                                      p_strtplanid
                                          ---AND toa.is_required = 1
                                          AND toa.t_objective_id =
                                                                obj.t_objective_id
                                          AND tplr.lr_person_id = p_strpersonid
                                          AND lr1.lr_person_id = p_strpersonid
                                          AND lr1.status IN
                                                 ('PASSED', 'WAIVED',
                                                  'TESTED_OUT'))And then replace all the NOT INs associate with that SQL with:
    AND objact.activity_id NOT IN (
    SELECT event_id
       FROM TEST_EVENT_V)

  • Oracle8i and Oas 4081 - PLSQL TOOLKIT - Urgent Please help.

    Hi ,
    I installed Oracle 8i and Oas4081 on different ORACLE_HOME on the Linux 6.1 . When I tried to install the PLSQL toolkit it giving me an Oracle Database error 63744.
    But I am enabled the sql_trace and I found OAS is successfully connecting to Oralce8i database, but it failing for some reason.
    Do we need to do anything special on Oracle 8i side to install the PLSQL toolkit ..??
    .Please help ...
    Thanks in advance ..
    kkumar

    Is this what you're looking for?
    Usage Notes
    If the input data or key given to the DES3DECRYPT procedure is empty, then the procedure raises the error ORA-28231 "Invalid input to Obfuscation toolkit."
    If the input data given to the DES3DECRYPT procedure is not a multiple of 8 bytes, the procedure raises the error ORA-28232 "Invalid input size for Obfuscation toolkit." ORA-28233 is NOT applicable for the DES3DECRYPT function.
    If the key length is missing or is less than 8 bytes, then the procedure raises the error ORA-28234 "Key length too short." Note that if larger keys are used, extra bytes are ignored. So a 9-byte key will not generate an exception.
    C.

  • Please help me regarding implemenatation of plsql webservices

    hello every one,
    My name is anil, I am working on the topic "building pl/sql web services". I successfully deployed my pl/sql function. But i got an error while invoking the function from a web service.
    my error is
    08/04/22 10:40:23 javax.servlet.ServletException: Cannot generate Class: java.lang.NoClassDefFoundError: com/sun/tools/javac/M
    ain
    Exception in thread "main"
    08/04/22 10:40:23 at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebService.java:569)
    08/04/22 10:40:23 at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:467)
    08/04/22 10:40:23 at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:614)
    08/04/22 10:40:23 at oracle.j2ee.ws.RpcWebService.doGetRequest(RpcWebService.java:725)
    08/04/22 10:40:23 at oracle.j2ee.ws.BaseWebService.doGet(BaseWebService.java:1199)
    08/04/22 10:40:23 at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    08/04/22 10:40:23 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    08/04/22 10:40:23 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:691)
    08/04/22 10:40:23 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370
    08/04/22 10:40:23 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    08/04/22 10:40:23 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    08/04/22 10:40:23 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    08/04/22 10:40:23 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    08/04/22 10:40:23 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    08/04/22 10:40:23 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    08/04/22 10:40:23 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.ja
    va:303)
    08/04/22 10:40:23 at java.lang.Thread.run(Unknown Source)
    please help me

    SowmyRaj wrote:
    But i am unable to run it successfully...please help me regarding this... No wonder. Script is full of entries:
    **MOBILE CODE**Modify script:
    1. Change:
    **MOBILE CODE** immediateto:
    execute immediate2. Change:
    **MOBILE CODE**to:
    end ifRun the script. If you will run it second time, change:
    u_exist PLS_INTEGER;
    t_exist PLS_INTEGER;
    ts_exist PLS_INTEGER;
    ss_exist PLS_INTEGER;to:
    u_exist PLS_INTEGER := 1;
    t_exist PLS_INTEGER := 1;
    ts_exist PLS_INTEGER := 1;
    ss_exist PLS_INTEGER := 1;This way existing objects will be dropped before recreating them.
    SY.

  • Please help regarding PLSQL coding standards

    Hi,
    Can you please send any document for PL/SQL coding standards,
    Please help.. I did nt find any good resources on net regarding..
    Pleease help me if any pdf regarding are exitst to my mail id
    [email protected]
    Thanks and Regards
    asp

    I did nt find any good resources on net regarding..Here is a list from the net for you to start with (courtesy of many of the fellow posters here in these forums), and there will be plenty more. Just need to search correctly.
    http://www.redhat.com/docs/manuals/waf/rhea-dg-waf-en-6.0/ap-sql-standards.html
    http://www.orafaq.com/faqplsql.htm
    http://www.williamrobertson.pwp.blueyonder.co.uk/documents/plsqlcodingstandards.html
    http://www.orafaq.com/node/48
    http://apex.oracle.com/pls/otn/f?p=2853:4:11598658413321972351::NO::P4_QA_ID:3262
    http://www.bbc.co.uk/guidelines/newmedia/technical/databases.shtml
    Message was edited by:
    Kamal Kishore
    Message was edited by:
    Kamal Kishore

  • Please Help !  Exception in closing resultset,statement.

    In an application developed on , i am closing the resultsets and statements in finally block as
    finally {
         if (resultset != null) resultset .close();
         if (statement != null) statement.close();
    the above block does not take care of exceptions that might arise while closing resultset/statement. Please help with this:
    what the conditions exceptions may arise in closing resultset/statements.
    when does the garbage collector free such resources and what are the implications of not catching exception while closing - can this cause database handle leaks.
    Please help!

    I don't know what exceptions might occur, but since the close() method can throw SQLException, your program has to catch it. Maybe if you close twice, the second time will throw an exception? Anyway, it doesn't really matter, you still have to write a try-catch around it. What you do there is up to you -- you could ignore it (which is what I do) or you could end the program with a message.
    When does the garbage collector free those resources? The garbage collector only frees memory. Nothing else. And the garbage collector will free a ResultSet object only when there are no references to it anywhere in your program. That doesn't mean just in code that you wrote, but anywhere in code that's running in your program. For example, the Statement object that produced the ResultSet might hold a reference to it. However, the API documentation for ResultSet does say that when the garbage collector does free a ResultSet object, it will automatically close it.
    However, the best practice is to close ResultSet and Statement objects when you are finished with them, and not rely on garbage collection to clean up after you.

  • Can't group text or send/receive picture messages! Please Help!

    Hell Everyone,
    so I just recently switched from my Iphone back to my blackberry for simplicity/practical reasons...I couldn't deal with the iphone anymore. In doing so, I came across a problem. I am not able to send group texts or send/receive mms. Everytime I try to do so, the text has a red 'X' next to it showing that it didn't go through. I am currently with ATT and have tried calling them to resolve it but no one knows.
    here are some of the steps I took to resolve it
    1. Resetted to Factory Settings - Did not work
    2. Made sure all the settings in my text message options is selected properly - Did not work
    3. Deactivated iCloud/iMessage on my previous iPhone - Did not work
    4. Called ATT and had them make sure BB Data plan was on my plan, and it was - Did not work
    Can someone please help?
    Thank you,
    Pogos

    Hi and Welcome to the Community!
    With a strong carrier network signal (e.g., not merely WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2 each should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    Please wait for one "registration" message to arrive to your Messages app
    2) Resend Service Books
    KB02830 Send the service books for the BlackBerry Internet Service
    Please wait for "Activation" Messages, one per already configured email account, to arrive in your Messages. If you have no already configured email accounts, please wait 1 hour.
    3) Reboot
    With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes.
    See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then you should re-contact your mobile service provider for formal support...be sure to request their dedicated BB support group. MMS is a specific service level that must be properly enabled on BBs in order to function. Often, the first support group you reach will not understand the proper method for configuring this on BB...but their dedicated BB support group will.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • My account was hacked in September -- Still no action from Verizon. Please help!

    My account was hacked in September, someone added an additional line and ordered an iPhone, adding more than $600 to my account. Verizon quickly identified this as fraud and assured me that my account would be cleaned up. Almost three months later, I still have hundreds of dollars billed to my account that no customer service rep has been able to explain. My service is now pending disconnection, even though I have continued to make my regular payments, but I have refused to pay the additional charges incurred by the hacking of my account. I've spent more than two work days on the phone with Verizon, speaking to about three dozen agents and supervisors, explaining my situation all over again, taking valuable time off work and away from the family. They all promised to help, but nobody actually fixes this mess that I did not cause. Ten days ago, I wrote a letter to customer service which I will post below. I have not heard back from Verizon. No one has called to apologize or offered help in restoring my account. As a cellular customer of 16 years, I have never experienced something like that. I simply don't know who to talk to anymore to get this straightened out. No customer deserves to be treated like this. Please help me find out who I can contact with the authority to clean this up for me! Many thanks in advance.
    Here is the letter sent to Verizon with signature confirmation Monday a week ago. I does not detail today's trouble, when I spent another 90 minutes on the phone with three different agents and one supervisor, but I got disconnected every time. 
    Dear ladies and gentlemen,
    I am writing this as a customer complaint. My family has been a loyal Verizon Wireless customer since August 2011, after making the change from T-Mobile. We currently have the 15GB Everything Plan with five lines, all of which are used by family members. Since July, we are also customers with Verizon FIOS for our home internet and cable, which means we pay Verizon an average of $5,600 annually. 
    My wife is the primary account holder and I have an EDGE plan for my own line. In September, I ordered a new iPhone through my local Verizon store in XXXXX., which is, as far as I know, an independent store with a Verizon license/franchise. When I picked up my phone, the agent at the store noticed that my account was in “chaotic standing.” First, he said that we had been advised badly by Verizon when we initially signed up in 2011, resulting in much higher monthly fees than we could have had under the 10 or 15 GB Everything Plan, and he suggested that we switch to this plan immediately.
    It was frustrating to learn this, because in my two years of communicating with Verizon agents by phone, no one ever bothered to inform us that we paid more for our account than we had to and that there was a more compact plan available which would have decreased our monthly bill. My daughter exceeded her data allowance on an almost monthly basis, which we could have avoided under the plan that we currently have but didn’t know about.
    Then I also learned that my current bill had suddenly skyrocketed to over $900 because a sixth line had been added to our account and someone had ordered a phone and charged it to our account. The local agent was extremely helpful, he immediately suggested that this was fraudulent activity and he called Verizon to restore my EDGE eligibility which I had lost due to these fraudulent charges that I had not caused and not paid. He did talk to the Verizon fraud department and reported the incident, and I was told that the additional charges would be taken off my account and my good credit – and EDGE eligibility – would be restored. In good faith that Verizon would take care of this, I left the store as a slightly worried, but satisfied customer.
    About a week later, I called Verizon to check on my account status because I wanted to EDGE up my teenage son’s line XXXXXX and get him a new iPhone 6 for his birthday. The agent I spoke to told me that the fraud situation was still showing on my account and that my EDGE eligibility had not been restored yet, but he assured me that this would be taken care off by the following week, when my son’s line would be eligible for an EDGE upgrade under his plan’s timeline.
    When I called back the following week, I was saddened to learn that contrary to the previous assurance, our EDGE eligibility had not been restored and the fraudulent charges to our account were still showing on our bill, which was quite confusing because it was impossible to figure out my actual charges. What followed was several weeks of phone correspondence with Verizon agents who apologized again and again and assured me that my EDGE eligibility would be restored so I could order my son’s phone and my the additional charges would be dropped from my account.
    However, this didn’t happen. I am not going to list the entire call log, because I know that you can easily access these records. But for several weeks in October, I spent many, many hours on the phone with Verizon, explaining the entire situation regarding the fraud again and again. I listened to assurances, promises, apologies, and I was transferred multiple times to different departments to get my EDGE eligibility restored. After an incredibly frustrating and time consuming experience I was eventually able to order my son’s phone. But several days later, when I checked the order status, I noticed that the order had been canceled because – I’m sure you can guess it by now – my EDGE eligibility had still not been restored. This forced me to go through the whole process again and I spent an entire afternoon on the phone with several different agents and managers until in the early evening I was finally assured that my account standing had been restored and that I could order my son’s phone. That day alone, I had to leave work five hours early to get on the phone (from about 2 p.m. until 7 p.m.) and work this situation out so my son could get his phone, which he eventually received on Oct. 31.
    I work as a newspaper reporter and I have an incredibly busy schedule. Yet the inability and unwillingness by Verizon to help me straighten out my account took much of my work time, which I had to make up for at a later time in order to get paid. Unfortunately, this meant that I had to take out much of my highly valued family time to talk to Verizon, which increased my frustration with your company, as you surely can understand. 
    As a loyal customer, I can’t stress enough how incredibly frustrating this experience was. I was forced to spend many hours away from work and family just to deal with the same situation over and over again. I lost track of the hours, but I am sure that one look at your call log will confirm that adding up these hours it was more than two full work days that I had to spend on the phone to work out a situation that I did not cause to begin with. Adding to these already incredibly upsetting circumstances were at least a couple of calls where it took me 15 minutes to get an agent on the line who then promised me to transfer me to the right person to help me, only, after more waiting time on hold, to be disconnected and start the process all over again. How I was able to maintain my composure and continue to be polite and respectful to the agents, I don’t know. I’m sure they are used to much harsher treatment from other unsatisfied customer for much lesser reasons.
    It is bad enough that a company like Verizon cannot protect their customers from getting their accounts hacked and hundreds of dollars being charged to their account. But what is even worse is that I have to spend hours and hours of valuable time and energy to mitigate a situation and fix a damage that I have not caused in the first place and had no control over, and Verizon has not offered me anything to reward my patience and loyalty other than brief apologies from stressed out agents that obviously were not qualified to handle such situation, resulting in their own frustration with this issue.
    What adds to this extremely frustrating and highly disappointing experience is that because of the hacking and the fraudulent charges that polluted my account for many weeks, it has become impossible for me to understand what I am being charged for and what I actually owe for the services that I did order and did receive. This frustration once again peaked on Saturday last week, when an agent told me that my past-due charges are more than $600, with a total of more than $900 total due within three weeks, ( that is about the same what Verizon charged me after my account had been hacked and an additional line and phone had been ordered by the perpetrator) in spite of my continuing “blind” payments towards my balance since this all began in September.
    I talked to two agents on Saturday, one from Customer Service; the other from the billing department, and neither was able to explain – or even seemed to understand themselves – how these charges occurred. In good faith, and in order to avoid a disruption of service, I still made a $170 payment, which is about half of what my total monthly payment should be under my current plan with five lines, and I vowed to pay another $170 by the end of next week in the hope that by then, someone with authority and complete and full understanding of these circumstances will have contacted me to explain my account and issue a sincere, well meant apology for what has happened to this loyal customer.
    Believe me, I rarely reach out to a company and complain like this. I have a busy and hectic schedule, but the time it took me to write even this long letter to Verizon was just a fraction of the time and energy that I wasted to restore my account and get my son his new iPhone on time for his birthday, which he was looking forward to very much.
    But after my experience with Verizon, I feel that Verizon should know that no loyal customer deserves this type of treatment and should ever have to go through what my family and I had to endure because of Verizon’s inability to protect the privacy and integrity of our account, and to restore it to its original standing.
    I left T-Mobile in 2011 after a total of 13 years as a loyal customer, because I was unhappy with their increasingly bad customer service. I came to Verizon in the hope that my family would have a better experience here, and we were ready to stay with the company for many years to come. But at the moment, we are regretting and reconsidering our choice. Our final decision will certainly depend on the final outcome of this incredibly frustrating situation.
    Believe me, I absolutely understand that fraud and the breach of customer account information occur even in the best and most professional companies. But I also believe that if this happens, the integrity and professionalism of a business must be judged based on their handling of such instances and how they treat customers who fall victim to such criminal practices without any wrong doing on their part.
    A company should do their best to not only fix the damage and try to make sure that this will not happen again, but also guide and support their loyal customers affected by this and provide them with enough information to understand what is going on. Most importantly, it should be Verizon, not the customer, who should carry the burden and the responsibility of such fraud. But unfortunately, Verizon Wireless has fallen short in this regard, as we were completely left alone and forced to fight for the full restoration of our account and to this day are confused about our bill and these sky-high charges that no one can explain to us.
    On top of that, I am tired of having to explain this situation dozens of times to different people with your company over and over again. No one should have to go through that, and I believe that your personnel has enough pressing business to deal with than to waste their and their customers time.
    Please understand that I am not complaining about the services by the more than a dozen individual agents that I talked to in order to sort out this mess. The vast majority of them have been polite and a couple honestly tried to go out of their way to help me. It is rather the way that your customer service is set up in total that reeks of failure to support and help a customer whose account had been hacked and scrambled beyond recognition.
    That’s why it is my hope that my reaching out to you will raise a red flag at the right places within your company to identify the failures in your service, work the problem and fix it so other loyal customers like me will be spared such hassle in the future. I think it wouldn’t be too far fetched to assume that we are not the only ones and last ones to fall victim to hacking and failing customer protection and service as a result.
    Of course I also sincerely hope that my complaint will finally set the wheels in motion to remedy the problems in our own case.  We believe that the very least that Verizon could do as a sign of good will and to honor our customer loyalty to is sweep clean our account and allow us to start from scratch so we can track and understand our future monthly charges and continue to make reliable payments to our account as we have done for more than two years until the hacking of our account and Verizon’s unprofessional and helpless handling of the situation has changed everything.
    I hope that someone within your company will take this complaint seriously and resolve this very unfortunate and frustrating situation in a manner that shows that we are valued and respected as the loyal customers that we (still) consider ourselves and that will help us restore our faith and trust in Verizon. 
    I am looking forward to your timely response.

        I'm confident that if you have spoken with our Fraud Team directly, that there are the proper wheels in motion to resolve all of the concerns that occured as a result of the fraudulant order on your account. It may take up to 2 bill cycles for all the adjustments to be applied and the changes made to your account to bring the dates and eligibility back to normal, so you should definitely be nearing the end of your wait. Based on your description, it may have been a while since you spoke with them directly instead of the customer service team, so I encourage you to give them a call at your earliest convenience to put your worries at ease. If you need to make arrangements for the charges that appear on your account, our Financial Services Team at 866-266-1445 will also be able to help possibly place a hold on the account regarding the disputed charges so there's no accidental inturruption in your service due to this unfortunate situation.
    JenniferH_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • Supplier Sites Interface errors out -- URGENT!! please help.

    Hi All,
    The log file has the following message when executing the supplier sites interface import program that errored out:
    REP-1419: 'beforereport': PL/SQL program aborted.
    I have searched Metalink where they said the Batch Size should be 1000 by default. I did the same but still did not work.
    I have made sure that teh vendor_id, vendor_site_code, org_id combination is unique.
    I am not sure why I am getting this record. I have to process around 300000 records. When I ran the import progam the first time, it errored out after processing 171000 records. Then when I ran the program again for new records(that were not imported) it errored out after processing 42000 records. I dod not know how to resolve this issue.
    Please help!!
    Swati

    Please check if the following notes are applicable to the issue:
    Note: 369443.1 - Supplier Sites Open Interface Import Errs With Rep-1419 Rep-1419
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=369443.1
    Note: 369913.1 - Supplier Open Interface Import (APXSUIMP) Errors: Rep-1419
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=369913.1

  • STEVE JOBS!! PLEASE HELP!! LIST OF WHAT NEEDS TO BE FIXED IN FIRST UPDATE!!

    DEAR STEVE AND APPLE DEVELOPMENT TEAM,
    I have been a loyal Mac customer for almost 20 years. This is the first time I have been extremely unhappy. My thoughts are listed below......
    In giddy excitement, I rushed home from work on Tuesday September 12, 2006 to downloaded itunes 7 and play with the new added features, but to my dismay the bad upgrade experience began which I go into more detail below.
    I just wanted to mention that I bought some new music videos and they won't play. Contacted Apple and they said that they would not give me a refund or itunes store credit. Is this good customer service Apple?? This past week since installing itunes 7.0 It's been a week of MAC DRAMA! If it's the company's fault that I'm having problems because of a bad software upgrade, should I be punished for being a good customer?? Not good business Apple. Wise up to your customers. Without us, where would you be???
    BELOW IS MY PERSONAL DREAM LIST OF ITUNES 7.0 FIXES........
    1) NOT AN EASY UPGRADE. This was not an easy upgrade. itunes 7.0 removed all of my music videos from my ipod because the preferences are now in the summary and at the bottom of the music tab is a check box for including your music videos. Should this not be on by default? Because it was not, all my music videos were erased so I had to put them all back on my ipod which is very time consuming.
    2) INSTALLING QUICKTIME. Apple don't you think that you should have told your customers to install the latest NEW version of Quicktime BEFORE installing itunes 7.0?
    3) MUSIC VIDEO LIBRARY. The itunes library is now separated into different categories. Good idea if you had thought it through. Apple, if you have three video kind settings in the get info box (music video, movie, TV show) would it not be a good idea to reflect this in the new itunes library? PLEASE ADD A MUSIC VIDEO LIBRARY. I understand that music videos are music, but because they are music videos and not audio, it would just make it easier to be able to access them separately from the rest of your mp3's.
    4) COVER FLOW. Again great idea for the eye candy if it worked correctly. Every-time I try to use the coverflow view and add movie art or album art half the time itunes crashes. I have to force quit, then restart itunes. Never crashed in itunes 6.0. Please fix!!
    5) GET ALBUM ART. Get album art is a great idea if it would work correctly. I click on a song that needs art, use the contextual menu, go to get album art, yeah!!!!! oh... nothing happened? Still using third party software fetch art instead.
    6) CATEGORIES. When you are in a playlist or library and would search for a file — at the top left of the itunes 6.0 window it would give you automatic categories to refine and breakdown your search even more. For example, Music, Music Video, Movie, Podcasts. Why did you take this out in itunes 7.0? It was very helpful in refining your search!! PLEASE PUT BACK!!
    7) MUSIC VIDEOS. Even though I would have my music videos set to skip when song shuffle is selected, I could go into the music video folder of the ipod and just play my music videos and they would shuffle within their own folder. Now in itunes 7.0 they will not shuffle. So of course to get around this.... again I had to do more work than I would like to have, by creating just a music playlist with all my songs so I can have them shuffle separate from everything else on my ipod. Then I had to go into my music videos and select all of them to now not skip when shuffle is selected. Apple why are you making this harder on us?? Why are we having to backtrack and regress to do what itunes 6.0 did for us automatically??!!
    8) FRONT ROW WILL NOW NOT RECOGNIZE ANY OF MY TV SHOWS. I go to front row, TV shows, nothing is listed. Just a blank bar. Only way around this is to get info then change video kind from TV show to movie. If video kind is a TV show, then Front Row needs to reflect that. PLEASE FIX!!!
    9) QUICKTIME CRASHES ABOUT HALF THE TIME I USE IT NOW. No problems until last upgrade. I open a video file, click play, spinning color wheel of death! Force quit restart. Did Microsoft help you with this last upgrade???
    10) ITUNES 7.0 IS VERY SLUGGISH! Not as responsive as itunes 6.0. Apple what happened with taking your time. I feel that itunes 7.0 was not thought through and rushed! IF IT AIN'T BROKE, THEN DON'T FIX IT!!! Remember Coke and New Coke?
    I have read numerous more complaints from customers regarding their own personal experiences with this VERY BAD UPGRADE. Apple, I really hope you are reading a lot of these user complaints and really taking this seriously. This mistake may cost you a lot of loyal MAC fans.
    Steve, I hope your reading this. Please help us!!
    Sincerely,
    Jason Bowles

    You're wasting your time writing letters to Apple here as these are user to user forums.
    Use the iTunes feedback form to request improvements and fixes.
    It looks like you used the iTunes Store support form to ask Apple for a refund or store credit but if you think about it, anyone could ask for a refund saying their files don't work and Apple wouldn't know if they were telling the truth. You can ask for replacement copies of your purchases just like I did when I had a corrupted file one. If there really is a problem I suspect an iTunes/QuickTime update will render your videos playable again.
    Most people like me are not experiencing the problems you describe and I can honestly say all my videos and music are playing just fine.
    I updated to QuickTime 7.1.3 after I updated and played with iTunes 7 so that didn't make any difference. I also repaired permissions before and after the updates and permissions were changed so that may have been important.
    I don't know about the erasing of videos from the iPod as I don't have a video capable one.
    I totaly agree about the need for a Music Video library to go with the other libraries and I don't want my music videos in the main music library. This is preferable to using a Music Videos Smart Playlist. I currently find my music videos/behind the scenes interviews etc in the Movies library because their Video Kind is set to "Movies" and the option to change that is greyed out which is a pain. Temporarily I added a grouping tag of "Music Videos" to those videos and edited the Music Videos Smart Playlist to look for that Grouping tag, so at least I can find old and new Music Videos in one place.
    I've had no issues with Cover Flow whatsoever and despite extensive use of iT7 have had no crashes so can't comment on that.
    The Get Album Art feature only works if your track information is correct and the songs are available in the iTunes Store because that's where the artwork comes from. It also won't work if you already have artwork in place from another source so you'd have to remove that to make way for the iTunes artwork if you're wanting higher quality artwork than you could elsewhere.
    The thinking behind the categories change is that you have separate libraries so you can go straight to the appropriate one for movies, podcasts etc. The seach box features a drop-down menu to narrow your search down to All, Album, Artist, Composer or Song so whichever library or playlist you go into you can narrow a search with that.
    I am not finding iTunes 7 to be sluggish at all and having tested its cpu usage I know that's using about 1.5% when idle to 7-10% when playing a song.
    Clearly something is wrong with your installation so assuming you've done the usual practices of repairing permissions and even a reboot for good measure then maybe a reinstall of iT7 and QT is in order.
    I'm sure it's only a matter of time before you or Apple crack it and all will be well again.

Maybe you are looking for