Help, please! PL/SQL procedure to count the character more occurent

Hi guys,.

I'm new in pl/sql and I need your expertise for the solution of the following problem:

I have a string, for example: ' Hello, world! " How are you today? "and I wonder to find the character that occurs the most in this chain.

Do you have any idea how to understand? I guess I should use a PL/SQL procedure.

Thank you very much!

Welcome to the forum!

something like

select *
  from (
select ltr, count(*)
from (
select substr (str, rownum, 1) ltr
  from (select replace (str, ' ') str
         from test
       )
 connect by level <= length (str)
)
group by ltr
order by count(*) desc
)
 where rownum = 1

as in

SQL> with test as
  2  (select 'Hello, world! How are you today?' str from dual
  3  )
  4  select *
  5    from (
  6  select ltr, count(*)
  7  from (
  8  select substr (str, rownum, 1) ltr
  9    from (select replace (str, ' ') str
 10           from test
 11         )
 12   connect by level <= length (str)
 13  )
 14  group by ltr
 15  order by count(*) desc
 16  )
 17   where rownum = 1
 18  /

LTR    COUNT(*)
---- ----------
o             5

SQL> 

in Oracle 11 g, you can use REGEXP_COUNT

Tags: Database

Similar Questions

  • A1 7 "help please. I want to calibrate the touch screen

    help please. I want to calibrate the touch screen and I get touch calibration failed. "my tablet is lenovo ideapad a1 7"

    Oppressed accidentally touch calibration and restart the Tablet, but it is now very sencible and just put my finger is selected. I can not hardly touch the screen

    Sorry for my English. am Latino


  • Downloaded Photoshop Elements, I thought, made me buy my code, then said that my code was not valid. Help, please. You want to use the product.

    Downloaded Photoshop Elements, I thought, made me buy my code, then said that my code was not valid. Help, please. You want to use the product.

    you need a serial number and the installation file.

    the former, http://helpx.adobe.com/x-productkb/global/find-serial-number.html

    the latest,

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • Creating a PL/SQL procedure to run the following code but the landing upwards errors!

    Hey all!

    This is my first time with PL/SQL. I created the following procedure to load a major part of the update instructions at the same time to read the DB performance. I need to print a sysdate timestamp before and after the load so that I can know how long it takes for the DB update prescribed lines. I gave 100 lines initially and will keep changing. When I run this code, I came across some errors. Could you please help me with it.

    CODE:

    PROCEDURE FACT_UPDATE
    IS
    DECLARE
    CNT NUMBER: = 0;

    UPD CURSOR is
    SELECT
    'UPDATE XXAFL_MON_FACTS_F SET TASK_WID =' | NVL (TO_CHAR (TASK_WID), 'NULL') |', EXECUTION_PLAN_WID =' | NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL').
    ', DETAILS_WID =' | NVL (TO_CHAR (DETAILS_WID), 'NULL') |', SOURCE_WID =' | NVL (TO_CHAR (SOURCE_WID), 'NULL') |', TARGET_WID = ' | NVL (TO_CHAR (TARGET_WID), 'NULL').
    ', RUN_STATUS_WID =' | NVL (TO_CHAR (RUN_STATUS_WID), 'NULL') |', SEQ_NUM =' | NVL (TO_CHAR (SEQ_NUM), 'NULL') |', NAME = "' | NVL (TO_CHAR (NAME), 'NULL').
    "', NO_POSITION =" ' | NVL (TO_CHAR (INSTANCE_NUM), e ') | " ', INSTANCE_NAME = "' | NVL (TO_CHAR (INSTANCE_NAME), 'NULL').
    "', TYPE_CD =" ' | NVL (TO_CHAR (TYPE_CD), e ') | " ', STATUS_CD = "' | NVL (TO_CHAR (STATUS_CD), e ') | " ', START_TS =' | Decode (START_TS, null, "to_date('''|| to_char (START_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
    ', END_TS =' | Decode (END_TS, null, "to_date('''|| to_char (END_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', DURATION = ' | NVL (TO_CHAR (DURATION), 'NULL') |', STATUS_DESC = "' | NVL (TO_CHAR (STATUS_DESC), 'NULL').
    "', DBCONN_NAME =" ' | NVL (TO_CHAR (DBCONN_NAME), e ') | " ', SUCESS_ROWS =' | NVL (TO_CHAR (SUCESS_ROWS), 'NULL').
    ', FAILED_ROWS =' | NVL (TO_CHAR (FAILED_ROWS), 'NULL') |', ERROR_CODE = ' | NVL (TO_CHAR (ERROR_CODE), 'NULL') |', NUM_RETRIES =' | NVL (TO_CHAR (NUM_RETRIES), 'NULL').
    ', READ_THRUPUT =' | NVL (TO_CHAR (READ_THRUPUT), 'NULL') |', LAST_UPD = ' | Decode (LAST_UPD, null, "to_date('''|| to_char (LAST_UPD,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', RUN_STEP_WID = "' | NVL (TO_CHAR (RUN_STEP_WID), 'NULL').
    "', W_INSERT_DT = ' | Decode (W_INSERT_DT, null, "to_date('''|| to_char (W_INSERT_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', W_UPDATE_DT = ' | Decode (W_UPDATE_DT, null, "to_date('''|| to_char (W_UPDATE_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
    ', START_DATE_WID =' | NVL (TO_CHAR (START_DATE_WID), 'NULL') |', END_DATE_WID = ' | NVL (TO_CHAR (END_DATE_WID), 'NULL') |', START_TIME =' |
    NVL (TO_CHAR (START_TIME), 'NULL') |', END_TIME =' | NVL (TO_CHAR (END_TIME), 'NULL'). "WHERE INTEGRATION_ID ="' | INTEGRATION_ID | " « ; » AS a Column OF XXAFL_MON_FACTS_F;

    BEGIN
    dbms_output.put_line (sysdate);
    to record in a loop of the UPD

    dbms_output.put_line (record.col_name);
    immediately run record.col_name;

    CNT: = cnt + 1;
    If cnt > 1000
    and then commit;
    CNT: = 0;
    dbms_output.put_line (sysdate);
    end if;
    end loop;
    dbms_output.put_line (sysdate);


    END; -Procedure

    ERRORS:

    Error starting line: 1 at the controls.
    PROCEDURE FACT_UPDATE
    Error report-
    Unknown command

    Error from line: 2 in command.
    IS
    Error report-
    Unknown command
    Error from line: 3 in command.
    DECLARE
    CNT: = 0;

    UPD CURSOR is
    SELECT
    'UPDATE XXAFL_MON_FACTS_F SET TASK_WID =' | NVL (TO_CHAR (TASK_WID), 'NULL') |', EXECUTION_PLAN_WID =' | NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL').
    ', DETAILS_WID =' | NVL (TO_CHAR (DETAILS_WID), 'NULL') |', SOURCE_WID =' | NVL (TO_CHAR (SOURCE_WID), 'NULL') |', TARGET_WID = ' | NVL (TO_CHAR (TARGET_WID), 'NULL').
    ', RUN_STATUS_WID =' | NVL (TO_CHAR (RUN_STATUS_WID), 'NULL') |', SEQ_NUM =' | NVL (TO_CHAR (SEQ_NUM), 'NULL') |', NAME = "' | NVL (TO_CHAR (NAME), 'NULL').
    "', NO_POSITION =" ' | NVL (TO_CHAR (INSTANCE_NUM), e ') | " ', INSTANCE_NAME = "' | NVL (TO_CHAR (INSTANCE_NAME), 'NULL').
    "', TYPE_CD =" ' | NVL (TO_CHAR (TYPE_CD), e ') | " ', STATUS_CD = "' | NVL (TO_CHAR (STATUS_CD), e ') | " ', START_TS =' | Decode (START_TS, null, "to_date('''|| to_char (START_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
    ', END_TS =' | Decode (END_TS, null, "to_date('''|| to_char (END_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', DURATION = ' | NVL (TO_CHAR (DURATION), 'NULL') |', STATUS_DESC = "' | NVL (TO_CHAR (STATUS_DESC), 'NULL').
    "', DBCONN_NAME =" ' | NVL (TO_CHAR (DBCONN_NAME), e ') | " ', SUCESS_ROWS =' | NVL (TO_CHAR (SUCESS_ROWS), 'NULL').
    ', FAILED_ROWS =' | NVL (TO_CHAR (FAILED_ROWS), 'NULL') |', ERROR_CODE = ' | NVL (TO_CHAR (ERROR_CODE), 'NULL') |', NUM_RETRIES =' | NVL (TO_CHAR (NUM_RETRIES), 'NULL').
    ', READ_THRUPUT =' | NVL (TO_CHAR (READ_THRUPUT), 'NULL') |', LAST_UPD = ' | Decode (LAST_UPD, null, "to_date('''|| to_char (LAST_UPD,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', RUN_STEP_WID = "' | NVL (TO_CHAR (RUN_STEP_WID), 'NULL').
    "', W_INSERT_DT = ' | Decode (W_INSERT_DT, null, "to_date('''|| to_char (W_INSERT_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', W_UPDATE_DT = ' | Decode (W_UPDATE_DT, null, "to_date('''|| to_char (W_UPDATE_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
    ', START_DATE_WID =' | NVL (TO_CHAR (START_DATE_WID), 'NULL') |', END_DATE_WID = ' | NVL (TO_CHAR (END_DATE_WID), 'NULL') |', START_TIME =' |
    NVL (TO_CHAR (START_TIME), 'NULL') |', END_TIME =' | NVL (TO_CHAR (END_TIME), 'NULL'). "WHERE INTEGRATION_ID ="' | INTEGRATION_ID | " « ; » AS a Column OF XXAFL_MON_FACTS_F;

    BEGIN
    dbms_output.put_line (sysdate);
    to record in a loop of the UPD

    dbms_output.put_line (record.col_name);
    immediately run record.col_name;

    CNT: = cnt + 1;
    If cnt > 1000
    and then commit;
    CNT: = 0;
    dbms_output.put_line (sysdate);
    end if;
    end loop;
    dbms_output.put_line (sysdate);


    END; -Procedure
    Error report-
    ORA-06550: line 2, column 6:
    PLS-00103: encountered the symbol "=" when expecting one of the following conditions:

    constant exception < an ID >
    < a between double quote delimited identifiers > double long Ref table
    char time timestamp interval date binary national character
    NCHAR
    The symbol '< identifier >' has been substituted for "=" continue.
    06550 00000 - "line %s, column % s:\n%s".
    * Cause: Usually a PL/SQL compilation error.
    * Action:
    Error starting line: 1 at the controls.
    PROCEDURE FACT_UPDATE
    Error report-
    Unknown command

    Error from line: 2 in command.
    IS
    Error report-
    Unknown command
    Error from line: 3 in command.
    DECLARE
    CNT NUMBER: = 0;

    UPD CURSOR is
    SELECT
    'UPDATE XXAFL_MON_FACTS_F SET TASK_WID =' | NVL (TO_CHAR (TASK_WID), 'NULL') |', EXECUTION_PLAN_WID =' | NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL').
    ', DETAILS_WID =' | NVL (TO_CHAR (DETAILS_WID), 'NULL') |', SOURCE_WID =' | NVL (TO_CHAR (SOURCE_WID), 'NULL') |', TARGET_WID = ' | NVL (TO_CHAR (TARGET_WID), 'NULL').
    ', RUN_STATUS_WID =' | NVL (TO_CHAR (RUN_STATUS_WID), 'NULL') |', SEQ_NUM =' | NVL (TO_CHAR (SEQ_NUM), 'NULL') |', NAME = "' | NVL (TO_CHAR (NAME), 'NULL').
    "', NO_POSITION =" ' | NVL (TO_CHAR (INSTANCE_NUM), e ') | " ', INSTANCE_NAME = "' | NVL (TO_CHAR (INSTANCE_NAME), 'NULL').
    "', TYPE_CD =" ' | NVL (TO_CHAR (TYPE_CD), e ') | " ', STATUS_CD = "' | NVL (TO_CHAR (STATUS_CD), e ') | " ', START_TS =' | Decode (START_TS, null, "to_date('''|| to_char (START_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
    ', END_TS =' | Decode (END_TS, null, "to_date('''|| to_char (END_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', DURATION = ' | NVL (TO_CHAR (DURATION), 'NULL') |', STATUS_DESC = "' | NVL (TO_CHAR (STATUS_DESC), 'NULL').
    "', DBCONN_NAME =" ' | NVL (TO_CHAR (DBCONN_NAME), e ') | " ', SUCESS_ROWS =' | NVL (TO_CHAR (SUCESS_ROWS), 'NULL').
    ', FAILED_ROWS =' | NVL (TO_CHAR (FAILED_ROWS), 'NULL') |', ERROR_CODE = ' | NVL (TO_CHAR (ERROR_CODE), 'NULL') |', NUM_RETRIES =' | NVL (TO_CHAR (NUM_RETRIES), 'NULL').
    ', READ_THRUPUT =' | NVL (TO_CHAR (READ_THRUPUT), 'NULL') |', LAST_UPD = ' | Decode (LAST_UPD, null, "to_date('''|| to_char (LAST_UPD,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', RUN_STEP_WID = "' | NVL (TO_CHAR (RUN_STEP_WID), 'NULL').
    "', W_INSERT_DT = ' | Decode (W_INSERT_DT, null, "to_date('''|| to_char (W_INSERT_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', W_UPDATE_DT = ' | Decode (W_UPDATE_DT, null, "to_date('''|| to_char (W_UPDATE_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
    ', START_DATE_WID =' | NVL (TO_CHAR (START_DATE_WID), 'NULL') |', END_DATE_WID = ' | NVL (TO_CHAR (END_DATE_WID), 'NULL') |', START_TIME =' |
    NVL (TO_CHAR (START_TIME), 'NULL') |', END_TIME =' | NVL (TO_CHAR (END_TIME), 'NULL'). "WHERE INTEGRATION_ID ="' | INTEGRATION_ID | " « ; » AS a Column OF XXAFL_MON_FACTS_F;

    BEGIN
    dbms_output.put_line (sysdate);
    to record in a loop of the UPD

    dbms_output.put_line (record.col_name);
    immediately run record.col_name;

    CNT: = cnt + 1;
    If cnt > 1000
    and then commit;
    CNT: = 0;
    dbms_output.put_line (sysdate);
    end if;
    end loop;
    dbms_output.put_line (sysdate);


    END; -Procedure
    Error report-
    ORA-00911: invalid character
    ORA-06512: at line 24
    00911 00000 - "invalid character".
    * Cause: identifiers may not start with any character other than ASCII
    letters and numbers.  $# _ are allowed after the first
    character.  May contain identifiers surrounded by doublequotes
    any character other than a quotation mark.  Other quotes
    (q' #... #') cannot use spaces, tabs or as carriage returns
    delimiters.  For all other settings, consult the SQL language
    Reference manual.
    * Action:

    In addition to the other reviews, and apart from the quality of the code, you should really (really!) learn how to format your code for better "read-ability.  This will also contribute to a better quality.  If you are unsure how to format, then use a development as a SQL developer tool.  It will not format "as you type", but a frequent use of the shortened format keyboard (Ctrl + F7 in SQL Dev) will keep your code readable and coherent.

    And then you learn to keep this format when you post on the forum.

    Like this:

    PROCEDURE FACT_UPDATE

    IS

    DECLARE

    CNT NUMBER: = 0;

    CURSOR UPD

    IS

    SELECT "UPDATE XXAFL_MON_FACTS_F SET TASK_WID ='"

    || NVL (TO_CHAR (TASK_WID), 'NULL')

    |', EXECUTION_PLAN_WID ='

    || NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL')

    || ', DETAILS_WID ='

    || NVL (TO_CHAR (DETAILS_WID), 'NULL')

    |', SOURCE_WID ='

    || NVL (TO_CHAR (SOURCE_WID), 'NULL')

    |', TARGET_WID = '

    || NVL (TO_CHAR (TARGET_WID), 'NULL')

    || ', RUN_STATUS_WID ='

    || NVL (TO_CHAR (RUN_STATUS_WID), 'NULL')

    |', SEQ_NUM ='

    || NVL (TO_CHAR (SEQ_NUM), 'NULL')

    |', NAME = "'

    || NVL (TO_CHAR (NAME), 'NULL')

    || ' ', NO_POSITION = "'

    || NVL (TO_CHAR (INSTANCE_NUM), 'NULL')

    ||'' ', INSTANCE_NAME = "'

    || NVL (TO_CHAR (INSTANCE_NAME), 'NULL')

    || ' ', TYPE_CD = "'

    || NVL (TO_CHAR (TYPE_CD), 'NULL')

    ||'' ', STATUS_CD = "'

    || NVL (TO_CHAR (STATUS_CD), 'NULL')

    ||'' ', START_TS ='

    || DECODE (START_TS, ",' to_date(''e))

    || To_char (START_TS, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    || ', END_TS ='

    || DECODE (END_TS, ",' to_date(''e))

    || To_char (END_TS, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', DURATION = '

    || NVL (TO_CHAR (DURATION), 'NULL')

    |', STATUS_DESC = "'

    || NVL (TO_CHAR (STATUS_DESC), 'NULL')

    || ' ', DBCONN_NAME = "'

    || NVL (TO_CHAR (DBCONN_NAME), 'NULL')

    ||'' ', SUCESS_ROWS ='

    || NVL (TO_CHAR (SUCESS_ROWS), 'NULL')

    || ', FAILED_ROWS ='

    || NVL (TO_CHAR (FAILED_ROWS), 'NULL')

    |', ERROR_CODE = '

    || NVL (TO_CHAR (ERROR_CODE), 'NULL')

    |', NUM_RETRIES ='

    || NVL (TO_CHAR (NUM_RETRIES), 'NULL')

    || ', READ_THRUPUT ='

    || NVL (TO_CHAR (READ_THRUPUT), 'NULL')

    |', LAST_UPD = '

    || DECODE (LAST_UPD, ",' to_date(''e))

    || To_char (LAST_UPD, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', RUN_STEP_WID = "'

    || NVL (TO_CHAR (RUN_STEP_WID), 'NULL')

    || ' ', W_INSERT_DT = '

    || DECODE (W_INSERT_DT, ",' to_date(''e))

    || To_char (W_INSERT_DT, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    |', W_UPDATE_DT = '

    || DECODE (W_UPDATE_DT, ",' to_date(''e))

    || To_char (W_UPDATE_DT, "mm/dd/yyyy hh)

    ||'' ((', "dd/mm/yyyy hh")')

    || ', START_DATE_WID ='

    || NVL (TO_CHAR (START_DATE_WID), 'NULL')

    |', END_DATE_WID = '

    || NVL (TO_CHAR (END_DATE_WID), 'NULL')

    |', START_TIME ='

    || NVL (TO_CHAR (START_TIME), 'NULL')

    |', END_TIME ='

    || NVL (TO_CHAR (END_TIME), 'NULL')

    ||' WHERE INTEGRATION_ID = "'

    || INTEGRATION_ID

    ||''';' AS Column

    OF XXAFL_MON_FACTS_F;

    BEGIN

    dbms_output.put_line (sysdate);

    FOR registration in UPD

    LOOP

    dbms_output.put_line (record.col_name);

    EXECUTE immediate record.col_name;

    CNT: = cnt + 1;

    IF cnt > 1000 THEN

    COMMIT;

    CNT: = 0;

    dbms_output.put_line (sysdate);

    END IF;

    END LOOP;

    dbms_output.put_line (sysdate);

    END; -Procedure

  • Help, please! Stop: c000021a {fatal error} the process windows logon system ended unexpectedly with the status of 0xc0000034 (0x00000000) (0x00000000)

    Hi, I really really need help. I have a Dell Optiplex 330 with windows xp pro. I tried to restore to an update of the service pack, and while he was complete I got this blue screen. I'm sure its a mistake with winlogon.exe. However, I don't know exactly what to do to repair or replace. I have my recovery disk. Help, please.

    I no longer need help. It took a little while, however, I was able to remedy. Yes! I'm not a computer expert or anything, but I've never needed the Geek Squad. However, I called almost done for this one. Laughing out loud. I'm so happy that I didn't have to reinstall the operating system. I have all my info. Yes! I keep large files so all my disks are always within reach. I was able to replace all bad files for registration through the recovery console.  Once you understand the computer language, the easier. There is hope. If someone needs information just ask.

  • How to write a pl/sql procedure that checks the remote db?

    Hi all

    I have one criticism PROD remote database I want to check every 10 minutes for its connectivity. If the connection fails then an email and a text Message is sent to me.
    My question is what is the best way to check if the remote database is running?

    Can I use sqlplus system/manager@PROD? But sometimes this has taken so long and suspended. I want the best response time?

    How can I write a pl/sql procedure control connection? What do something like the ff:

    I created a table for my tnsname.ora entries.
    cursor is c1 select dbname from tnsnames_tbl;
    begin
        connect system/[email protected];
        print c1.dbname || 'DB Connection OK';
        exception
           when others;
            print c1.dbname || 'DB Connection Not OK';
        end;
    end;
    Something like that?

    Thank you
    Kinz

    Not really feasible at the level of PL/SQL.

    The reason is that the greatest strength of TCP's robustness. TCP will try as hard as possible to succeed, before failing. It was designed to still work on the severely damaged or broken communication as a result of nuclear infrastructure. A TCP connection can take up to 15 minutes, maybe even more, before failing. It can be as slow as a turtle-, but he's wearing a hardshell. (unlike the UDP, which is the opposite)

    So if you want to test the TCP connectivity, you must design your own custom code to implement your assumptions about the latency of packets, earthquakes and drops and so on.

    Otherwise, you will need to use a standard TCP socket, set a time limit, try to login - and hope for the best.

    This approach, I have demonstrated in {message identifier: = 10111306}.

    If the TCP test works, it means that the listener is in place. Does not mean that the database itself is in place. Which means then using a database link to be tested. And this in turn can hang due to problems with archive record being stuck, not enough idle servers shared, etc..

  • Help, please! Video clips nested under the navigation bar

    Hello world

    Only, I had my first lesson in flash a couple of days, but decided to venture building a toolbar of navigation with grouped clips. My intention is that once the mouse rolls, more clip of a particular movie, another video clip fades below (my version of a menu "drop-down"). Just to make that happen, the clip that fades, is also composed of particular video clips with their own behaviors (to the tween effects of reversal).

    I can make each individual movie clip behave as it should, but I can't make them work once they are assembled. I enclose a link that contains the file that I want to talk (submenu), in the hope that one of you, good Samaritans would take a glance and tell me where I was wrong.

    I hope that I've not absolutely shocked you guys with my level of ignorance.

    http://docs.Google.com/fileview?ID=0B09iy1xwVTUYZmY0NjdhM2EtZDRjYS00MGNlLWJmNmEtMDJmOTI4ZT ZjYWFi & hl = en


    Gaby

    It's just with picture labels you gave everywhere.

    and it's the same 'more' and 'out '.

    the player is confused to play including a fist

    I removed some lables and seen that it works partially. (not debug the entire fla)

    hope you get the way

  • Photoshop has become my default Photo Viewer and I need to STOP; Help, please! I can't regularly send jpegs more they all as PS files

    Suddenly, Photoshop has become my default for sending photos by email. I can open it on my computer in windows photo viewer, but they won't as Photoshop files. I need to cancel that. Help, please! Thank you!

    Yes, please restart windows and check.

    When you say e-mail, are you talking about icons in the e-mail?

  • Help with PL/SQL procedure...

    Hello world

    I'm new to PL/SQL and still to learn, so please bare with me.  Below, I've pasted my code for your consideration and assistance.  Everything seems to work as expected, however, I have a problem with a particular indicated section below...

    -Updated amount of film to add the amount

    UPDATE mm_movie

    SET movie_qty = v_movie_qty + 1

    WHERE movie_id = v_movie_id;


    When compiling this procedure, I don't get any errors and it is compiled successfully, but for some reason the amount of film is not added.  What I'm missing here?  Any help would be really appreciated.

    Here is the full procedure

    -Start of the procedure

    create or replace PROCEDURE MOVIE_RETURN_SP

    -Parameter declaration

    (p_rent_id IN mm_rental.rental_id%TYPE)

    IS

    -Variables

    v_title NUMBER;

    v_count_rentid NUMBER;

    v_movie_id NUMBER;

    v_checkin_date DATE;

    v_qty NUMBER;

    v_movie_qty NUMBER;

    ex_norent_record EXCEPTION;

    ex_already_returned EXCEPTION;

    BEGIN

    Select count (rental_id)

    in v_count_rentid

    of mm_rental

    where rental_id = p_rent_id;

    IF (v_count_rentid = 0) THEN

    RAISE ex_norent_record;

    END IF;

    -id check in date based on the record of rental and film

    SELECT movie_id, checkin_date

    IN v_movie_id, v_checkin_date

    OF mm_rental

    WHERE rental_id = p_rent_id;

    -Make sure that the film was not already returned

    IF v_checkin_date IS NOT NULL THEN

    RAISE ex_already_returned;

    END IF;

    Select movie_qty

    IN v_movie_qty

    of mm_movie

    where movie_id = v_movie_id;

    -Update folder location to register CHECKIN_DATE

    UPDATE mm_rental

    SET checkin_date = SYSDATE

    WHERE rental_id = p_rent_id;

    -Updated amount of film to add the amount

    UPDATE mm_movie

    SET movie_qty = v_movie_qty + 1

    WHERE movie_id = v_movie_id;

    EXCEPTION

    WHEN ex_norent_record THEN

    dbms_output.put_line (' rental ID ' | p_rent_id |) "does not exist!");

    WHEN ex_already_returned THEN

    dbms_output.put_line (' rental ' | p_rent_id |) "already back!");

    END;

    /

    -End of the procedure

    Hello

    I wanted to tell you the data type mismatch, just to run this code, let me know where you get the error, but remember that the values are not null.

    CREATE OR REPLACE PROCEDURE movie_return_sp
    -Parameter declaration
    (
    p_rent_id IN mm_rental.rental_id%TYPE
    )
    IS
    -Variables
    v_title NUMBER;
    v_count_rentid mm_rental.rental_id%TYPE;
    v_movie_id mm_rental.movie_id%TYPE;
    v_checkin_date mm_rental.checkin_date%TYPE;
    v_qty NUMBER;
    v_movie_qty mm_movie.movie_qty%TYPE;
    ex_norent_record EXCEPTION;
    ex_already_returned EXCEPTION;
    BEGIN
    BEGIN
    SELECT COUNT (rental_id)
    IN v_count_rentid
    OF mm_rental
    WHERE rental_id = p_rent_id;
    EXCEPTION
    WHILE OTHERS
    THEN
    Dbms_output.put_line ('error_in_first_block');
    END;

    IF (v_count_rentid = 0)
    THEN
    RAISE ex_norent_record;
    END IF;

    BEGIN
    -id check in date based on the record of rental and film
    SELECT movie_id, checkin_date
    IN v_movie_id, v_checkin_date
    OF mm_rental
    WHERE rental_id = p_rent_id;
    EXCEPTION
    WHILE OTHERS
    THEN
    Dbms_output.put_line ('error_in_second_block');
    END;

    -Make sure that the film was not already returned
    IF v_checkin_date IS NOT NULL
    THEN
    RAISE ex_already_returned;
    END IF;

    BEGIN
    SELECT movie_qty
    IN v_movie_qty
    OF mm_movie
    WHERE movie_id = v_movie_id;
    EXCEPTION
    WHILE OTHERS
    THEN
    Dbms_output.put_line ('error_in_third_block');
    END;

    BEGIN
    -Update folder location to register CHECKIN_DATE
    UPDATE mm_rental
    SET checkin_date = SYSDATE
    WHERE rental_id = p_rent_id;
    EXCEPTION
    WHILE OTHERS
    THEN
    Dbms_output.put_line ('error_during_update1');
    END;

    BEGIN
    -Updated amount of film to add the amount
    UPDATE mm_movie
    SET movie_qty = v_movie_qty + 1
    WHERE movie_id = v_movie_id;
    EXCEPTION
    WHILE OTHERS
    THEN
    Dbms_output.put_line ('error_during_update2');
    END;
    EXCEPTION
    WHEN ex_norent_record
    THEN
    Dbms_output.put_line ('Rental ID' | p_rent_id |) "does not exist!");
    WHEN ex_already_returned
    THEN
    Dbms_output.put_line ('Rent' | p_rent_id |) "already back!");
    WHILE OTHERS
    THEN
    Dbms_output.put_line ('unexpected error');
    END;
    /

  • Call objects (packages-Pl/SQL procedures) DB of the ADF

    Hello

    1. How can we call DB procedures/Packages using ADF?

    2 are there scenarios describing when to use what Layout? & Also any introduction of layouts in the ADF.

    Thank you.

    Hello

    You can expose your PL/SQL package in the form of web services as well and use it on your layout. Check this blog entry on the call of PL/SQL of the ADF, it may be useful
    http://baigsorcl.blogspot.com/2010/05/calling-PLSQL-procedure-and-function-in.html

    This presentation would help understand layouts http://blogs.oracle.com/shay/2010/05/adf_faces_layouts_demo_-ahid.html
    also, you can refer to the guide of the web user interface.

  • I can't open the pictures and need help please with my Windows Vista and the WindowsLivePhotogallery error Code: 0x8007007e. Carole

    I have a Windows Vista laptop with many pictures.  I can not open the photos on my Windows Live Photo gallery and have received

    Error code: 0x8007007e.

    How this can be solved?

    Thank you.  Carole

    This forum is for Microsoft Security Essentials.

    Please go to the Windows Live forum to get help.

    http://windowslivehelp.com/

  • Urgent help please! AJAX does not have the BB8900

    Hello world

    in a big trouble... I have developed a very simple web application using Java, Spring, and AJAX. Connection on the success page, a form appears when the user must fill out and save later.

    As a number of selection lists (list drop-down combobox) should be used. Some of them are disabled for the first time, by certain actions (for example a field filler text or by selecting another list), the lists must be activated and filled using AJAX to a servlet.

    This works with PC, iPhone, with HTC (IE, Firefox, Opera...). But in BB9000 emulator and a device BB8900 I faced with the following problems (although I have activated JavaScript):

    (1) text fields are enabled to disabled correctly, but drop-down lists are not disabled.

    (2) AJAX does not, for example, select a city leads AJAX to the streets of this city.

    (3) DOM does not work... for example a button, no news... elements are added to a table in the form.

    Please help since my deadline is coming and I'm short on time!

    Kind regards

    Hello

    Strangely, I could make it work 'more or less' in the Simulator and the BB 8900 device. Worked on the version used:

    strlist.options[strlist.options.length] = new Option("Text 1", "Value 1");
    

    ??? I had to disable the javascript first, clear the cache, close the browser, reopen, enable javascript, and re-run the web application. Since there is no Javascript errors when you fill out the lists, DOM works very well.

    I couldn't make the dropdowns 'disabled', however, the list object is set to true 'deactivated' property until the debugger showed? Somehow, I can live with that for a while :-)

    Thank you all for...

  • Help, please! Photoshop CS5 AND all THE OTHER PROGRAMS to CRASH!

    Hello

    So I have CS5 Adobe Creative Suite full on my iMac. I bought all of the programs in 2010 and the new iMac in 2015. Since I upgraded my iMac to the new OS (first Yosemite, then El Capitan) all my CS5 programs is high gel (aka crash) and I have to force quit them or manually shuts down my computer, or it will run smoothly, but when I go to exit the program, a window will appear saying that the program was forced to leave because he crashed (which obviously isn't the case).

    Why is this happening?

    I'm sure it's just a matter of my programs up to date are not enough to work with the newer operating system out there currently, which means I probably need to buy CS6, or unfortunately, I will have to pay monthly for these programs with this new creative cloud bs, but I wanted to check with others who know better, then I have.

    Someone please help! I tried to call Adobe and Apple about this but no answer or Apple puts all the blame on Adobe.

    I AM NOT happy that Adobe has NO phone or chat support with their technical team, so hopefully someone here will know what to do.

    Thank you

    Zach

    Hello Zach,

    Being in the Photoshop community, could you please post the report of accident for Photoshop here?

    Regarding the compatibility of Cs5 on OS X 10.11, see the Suite CS5 in OSX 10.11 El Capitan (Beta or future)

    See also El Capitan compatible with Adobe CS5? Apple Support communities

    Kind regards

    Assani

  • Help, please! I can't select the shape I drew with the pentool again... I have the selected layer, but there is no sign of my new shape in my path Panel?  I have been sitting here for days literally and simply cannot make it appear the race that I created

    HI - can help I'm going crazy! !

    I drew a shape with the tool pen (which took me Age..) and I go back an image that I imported, I cannot select once again it.  I can see it in red, but I'm not able to select once again it.  I have the selected layer, but there is no sign of it in my Panel of traces at all.  I tried clicking on the direct Selection tool (about 100 times), I tried the Brush tool.  I've tried everything.  The same thing happened to me the other day...    Please can someone help!  Tania

    It's the plug technique on the subject:

    Using Photoshop | Manage paths

    It contains this point under manage paths:

    When using a shape or pen tool to create a work path, the new path appears as the work path in the tracks Panel. The work path is temporary; You must save it to avoid losing its contents.

    OK, the red, you mentioned is a Stoke you added. Then quick mask is not involved.

  • Help of query SQL - inner joins and the separate results

    Hello

    ASP VB, SQL Server

    I have a structure of data base with 3 tables - users, albums and photos. each user has a identifier unique, each record has a unique albumid and also contains a column with the user name. each record in the photo has a unique id so that store the user name and the album in which the image belongs.

    I'm writing a query that returns a list of the albums for a particular user (based on a user name query string) and who will also bring back the id of the first record in the table for each of these albums photo.

    the closest I get is to run a query to select albumid albums where userid = varuserid with a join internal on the pictures table to remove the photo ID - problem I then it comes out all the photos from the photos table where userid = varuserid, so when I do a repeat region to display a list of albums for a certain user It produces a list of all the photos where userid = varuserid

    I really want to return just a list of ID album based on the username variable, but also to return the first record in the table of photos for each of these albumids

    I tried different combinations of inner joins, select distinct etc but no joy.

    any suggestion would be appreciated as am floundering here...




    First, you must define 'first' with regard to the photos. Is there a
    timestamp? They are numbered inside the album? Do you really care who is
    "first", or do you want simply a shot? You also neglected to indicate if they are
    empty photo albums have been allowed. I assumed that the empty albums are not
    allowed.

    Whatever you decide, the answer will be similar.
    SQL Server tends to get better results with joins with subqueries. You will have
    See such a written request more often with subqueries, and there isn't
    nothing wrong with that, but I'll use a join on a derived table. I have
    have not all column names (hint, hint), so I made them, but the
    Comments should help out you.

    SELECT A.Title, P.PhotoID, P.Caption, A.AlbumID, P.ImagePath
    FROM dbo. A albums
    -build a table derived, consisting of photo ID lowest for each
    album.
    INNER JOIN (SELECT AlbumID, MIN (PhotoID) AS FirstPhoto FROM dbo. Photos
    AlbumID GROUP) AS PM WE A.AlbumID = PM. AlbumID
    -details of the photo for the photo shown in the table above
    INNER JOIN dbo. Photos P on A.AlbumID = P.AlbumID AND
    H. FirstPhoto = P.PhotoID
    User A.UserID ='some WHERE '

    "tedstar" wrote in message
    News:ee4pfn$de$1@forums. Macromedia.com...
    > I am writing a query that returns a list of the albums for a
    > particular user (based on a user name query string) and also bring
    > return
    > the id of the first record in the table for each of these albums photo.

Maybe you are looking for

  • my default text will come out as question marks in a box

    I am on OS x EL Capitan Office. My default text will come out as question marks in a box for each character?

  • Impossible to pass to el captain

    I have a MacBook Pro with installed Yosemite. I should be able to upgrade to El Captain but for some reason I can't. Download it in the App Store does not yet (it says 0 bytes, calculation) and it has been like this for days. I have no idea what to d

  • How to use filezila

    Hawthorn, I can used program filezila

  • Disk Defragmenter help

    I'm running my Windows Disk Defragmenter.  I want to compress my files to increase the performance of my PC.  I'm not very savvy computer!  The error indicates... "Disk Defragmenter has detected that Chkdsk is scheduled to run on the volume: (c). Ple

  • How to get out of the Windows safe mode?

    When I try to install programs such as I Tunes, I get an error message saying that the installation could not be preformed because my computer in safe mode. How to make it out of SafeMode so I can install programs?