Rrrrrr!

Hi can anyone help with this problem.
I reinstalled Mac OS X 3.7 onto my mini Mac as my password locked me out.
I couldn't help but notice that the "D" key was not working on my keyboard which coursed the password to not be recognised.
Once I had Mac OS up and running on a new install I found that the "R" key would not work on my keyboard.
I thought it maybe the keyboard at fault as it's brand new. but much to my surprise my old keyboard was doing the same.
If I press the "R" key while typing the unit will bing a few times as if it does not recognise that key input.
If I do shift and "R" a capital "R" will appear on the screen, however this will not work with caps lock.
I feel it's the OS a fault here, maybe a function that I have turned on by mistake.
I fear another install of the OS just in case the "J" key or something doesn't work.
Could anyone advise?

Check System Preferences/Speech to make sure all this is turned off.

Similar Messages

  • How to avoid the duplicate values, I do not want the duplicate............

    i have one database table called "sms1" that table is updated every day or on daily basis it has the following fields in it:
    SQL> desc sms1;
    Name Null? Type
    MOBILE NUMBER
    RCSTCNATCNATCNATCNAWTHER VARCHAR2(39 CHAR)
    SNO NUMBER
    INDATE DATE
    From this table the is one column "RCSTCNATCNATCNATCNAWTHER VARCHAR2(39 CHAR)" . I am splitting it into different columns like :
    SQL> desc smssplit;
    Name Null? Type
    R VARCHAR2(2 CHAR)
    C VARCHAR2(2 CHAR)
    S VARCHAR2(1 CHAR)
    TC VARCHAR2(3 CHAR)
    NA VARCHAR2(3 CHAR)
    TC2 VARCHAR2(3 CHAR)
    NA2 VARCHAR2(3 CHAR)
    TC3 VARCHAR2(3 CHAR)
    NA3 VARCHAR2(3 CHAR)
    TC4 VARCHAR2(3 CHAR)
    NA4 VARCHAR2(3 CHAR)
    WTHER VARCHAR2(10 CHAR)
    SNO NUMBER
    INSERTDATA VARCHAR2(25 CHAR)
    Now I am written a procedure to insert the data from "Sms1" table to smssplit table...
    CREATE OR REPLACE PROCEDURE SPLITSMS
    AS
    BEGIN
    INSERT INTO scott.SMSSPLIT ( R,C,S,TC,NA,TC2,NA2,TC3,NA3,TC4,NA4,WTHER,SNO)
    SELECT SUBSTR(RCSTCNATCNATCNATCNAWTHER,1,2) R,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,3,2) C,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,5,1) S,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,6,3) TC,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,9,3) NA,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,12,3) TC2,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,15,3) NA2,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,18,3) TC3,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,21,3) NA3,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,24,3) TC4,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,27,3) NA4,
    SUBSTR(RCSTCNATCNATCNATCNAWTHER,30,10) WTHER, SNO
    FROM scott.SMS1 where SNO=(select MAX (sno) from SMS1);
    END;
    Now in order to update the second table with data from first table on regular basis I have written a job scheduler and I am using oracle 9.0. version...
    DECLARE
    X NUMBER;
    JobNumber NUMBER;
    BEGIN
    SYS.DBMS_JOB.SUBMIT
    job => X
    ,what => 'scott.SPLITSMS;'
    ,next_date => SYSDATE+1/1440
    ,interval => 'SYSDATE+1/1440 '
    ,no_parse => FALSE
    :JobNumber := to_char(X);
    END;
    Now this job scheduler is working properly and updating the data for every one minute but it is taking or updating the duplicate values also ..like example:
    R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
    INSERTDATA
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:49:16
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:49:16
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:50:17
    R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
    INSERTDATA
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:50:17
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:51:19
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:51:19
    R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
    INSERTDATA
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:52:20
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:52:20
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:53:22
    R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
    INSERTDATA
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:53:22
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:54:45
    33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
    06-SEP-2012 03:54:45
    Now I do not want the duplicate values to be updated ...and want them to ignore them.....
    please I need a help on this query........How to avoid the duplicate values............

    Look at the posts closely:might not be needed if formatted ;)
    create or replace procedure splitsms as
    begin
      insert into scott.smssplit (r,c,s,tc,na,tc2,na2,tc3,na3,tc4,na4,wther,sno)
      select substr(rcstcnatcnatcnatcnawther,1,2) r,
             substr(rcstcnatcnatcnatcnawther,3,2) c,
             substr(rcstcnatcnatcnatcnawther,5,1) s,
             substr(rcstcnatcnatcnatcnawther,6,3) tc,
             substr(rcstcnatcnatcnatcnawther,9,3) na,
             substr(rcstcnatcnatcnatcnawther,12,3) tc2,
             substr(rcstcnatcnatcnatcnawther,15,3) na2,
             substr(rcstcnatcnatcnatcnawther,18,3) tc3,
             substr(rcstcnatcnatcnatcnawther,21,3) na3,
             substr(rcstcnatcnatcnatcnawther,24,3) tc4,
             substr(rcstcnatcnatcnatcnawther,27,3) na4,
             substr(rcstcnatcnatcnatcnawther,30,10) wther,
             sno
        from scott.sms1 a
       where sno = (select max(sno)
                      from sms1
                     where sno != a.sno
                   ); ---------------> added where clause with table alias.
    end;Regards
    Etbin

  • Need help with Regular Expressions

    This is my XML code
    *<name>J. E. O'Rrrrrr, S. Mmmmmmmmmm, B. G. Mmmmmmmm, A. B. C. Xxxxxx Yyyyy, A. B. C. Zzzz and C. R. McCcccc</name>*
    This is my source code
    Regex = Pattern.compile("<name>.*?</name>");
    RegexMatcher = Regex.matcher(fetchWholeFile);
    while(RegexMatcher.find())
    chkEnty = RegexMatcher.group();
    Pattern RegexTry1 = Pattern.compile("([A-Z]{1}\\.[A-Z]{1}\\.[A-Z]{1}\\.){color:#ff6600}|{color}([A-Z]{1}\\.\\s[A-Z]{1}\\.\\s[A-Z]{1}\\.){color:#ff6600}|{color}([A-Z]{1}\\.[A-Z]{1}\\.){color:#ff6600}|{color}([A-Z]{1}\\.\\s[A-Z]{1}\\.){color:#ff6600}|{color}([A-Z]{1}\\.)");
    //In the above line I am trying to catch all the initials (3 initals, 2 initials & 1 initial)
    Matcher RegexMatcherTry1 = RegexTry1.matcher(chkEnty);
    while(RegexMatcherTry1.find())
    String chkEntyTry1 = RegexMatcherTry1.group();
    Tagged11="<fname>"+chkEntyTry1+"</fname>";
    fetchWholeFile=fetchWholeFile.replace(chkEntyTry1,Tagged11);
    After executing the above code, my out is
    *<name><fname>J.</fname>* E. O'Rrrrrr, *<fname>S.</fname>* Mmmmmmmmmm, *<fname><fname><fname><fname>B.</fname></fname></fname></fname> <fname>G.</fname>* Mmmmmmmm, *<fname>A.</fname>* *<fname><fname><fname><fname>B.</fname></fname></fname></fname>* *<fname>C.</fname>* Xxxxxx Yyyyy, *<fname>A.</fname>* *<fname><fname><fname><fname>B.</fname></fname></fname></fname>* *<fname>C.</fname>* Zzzz and *<fname>C.</fname>* *<fname><fname>R.</fname></fname>* McCcccc*</name>*
    But I need my out as below
    *<name><fname>J. E. </fname><sname>O'Rrrrrr</sname>,* *<fname>S. </fname><sname>Mmmmmmmmmm</sname>*, *<fname>B. G. </fname><sname>Mmmmmmmm</sname>*, *<fname>A. B. C. </fname><sname>Xxxxxx Yyyyy</sname>*, *<fname>A. B. C. </fname><sname>Zzzz </sname>and <fname>C. R. </fname><sname>McCcccc</sname></name>*
    Could some also tell me how do I apply *<sname>*

    prometheuzz my source code as suggested by you is
    public void lineread(String FileName)
         try
              File asciiFile1 = new File(FileName);
              File tmp = new File(asciiFile1.getParent(),"Temp.xml");
              BufferedReader br = new BufferedReader(new FileReader(asciiFile1));
              BufferedWriter bw = new BufferedWriter(new FileWriter(tmp));
              String line = "";
              while((line = br.readLine()) != null)
                   fetchWholeFile+=line;
              Pattern Regex = Pattern.compile("<ref.list>.*?</ref.list>");
              Matcher RegexMatcher = Regex.matcher(fetchWholeFile);
              while(RegexMatcher.find())
                   chkEnty = RegexMatcher.group();
              Regex = Pattern.compile("<name>.*?</name>");
              RegexMatcher = Regex.matcher(chkEnty);
              while(RegexMatcher.find())
                   chkEnty = RegexMatcher.group();
                   Matcher m1 = Pattern.compile("([A-Z]\\.\\s?)+").matcher(chkEnty);
                   while(m1.find())
                        String Fname1=(m1.group());
                        String Fname2=("<fname>"+m1.group()+"</fname>");
                        FnameVector1.addElement(Fname1);
                        FnameVector2.addElement(Fname2);
                   Matcher m2 = Pattern.compile("([A-Z]['a-z]+\\s?)+").matcher(chkEnty);
                   while(m2.find())
                        String Sname1=(m2.group());
                        String Sname2=("<sname>"+m2.group()+"</sname>");
                        SnameVector1.addElement(Sname1);
                        SnameVector2.addElement(Sname2);
              for(int v=0;v<FnameVector1.size();v++)
         System.out.println(FnameVector1.elementAt(v));//It's printing fine here      
              for(int v=0;v<FnameVector2.size();v++)
                   System.out.println(FnameVector2.elementAt(v));//It's printing fine here
                   fetchWholeFile=fetchWholeFile.replace(FnameVector1.elementAt(v).toString(), FnameVector2.elementAt(v).toString());//But if I update to input XML file, it's wrong as shown below
              for(int v=0;v<SnameVector1.size();v++)
         System.out.println(SnameVector1.elementAt(v));//It's printing fine here
              for(int v=0;v<SnameVector2.size();v++)
                   System.out.println(SnameVector2.elementAt(v));//It's printing fine here
                   fetchWholeFile=fetchWholeFile.replace(SnameVector1.elementAt(v).toString(), SnameVector2.elementAt(v).toString());//But if I update to input XML file, it's wrong as shown below
              bw.write(fetchWholeFile);
              bw.flush();
              bw.close();
              br.close();
              File org = new File(FileName);
              System.gc();
              System.out.println(asciiFile1.delete());
              tmp.renameTo(org);
         catch(IOException ioe)
              System.out.println(ioe);
    This is my XML file
    <?xml version="1.0" encoding="UTF-8"?>
    <ref-list>
    <name>A. B. Cccccc and X. Y. Zzzzzz</name>
    <name>K. Name</name>
    The output after executing the above source code is
    <?xml version="1.0" encoding="UTF-8"?>
    <ref-list>
    <name><fname>A. </fname>B. <sname>Cccccc</sname>and <fname>X. <fname>Y. </fname></fname><sname>Zzzzzz</sname></name>
    <name><fname><fname><fname><fname><fname><fname>K. </fname></fname></fname></fname></fname></fname><sname>Name</sname></name>
    But I need my output as
    <?xml version="1.0" encoding="UTF-8"?>
    <ref-list>
    <name><fname>A. B. </fname><sname>Cccccc</sname>and <fname>X. Y. </fname><sname>Zzzzzz</sname></name>
    <name><fname>K. </fname><sname>Name</sname></name>
    Please tell me where have I gone wrong.

  • Large Sawpping in Solaris 10

    We have SUN SPARC t4 hosting INFORLN ERP with 256GB of RAM and 2 socket 16 core (120vcpU) Machine in a cluster.
    There is huge amount of swapping happening in the server, THe process use 800mb but the swapping is thrice the memory , allmost all the process are swapping and all are from the same apps....
    any clue?
    prstat -t shows
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU
        10 bsp      2892M  918M   0.4%   1:36:23 1.0%
       102 root     2648M  459M   0.2%   4:58:59 0.0%
         3 mpatanen 2134M  163M   0.1%   0:00:03 0.0%
         1 dtownsen 2189M  218M   0.1%   0:00:14 0.0%
         2 rrrrrr    2147M  176M   0.1%   0:00:16 0.0%
         3 svacinfo 2315M  345M   0.1%   0:00:30 0.0%
         1 lp       1360K 4520K   0.0%   0:00:00 0.0%
         1 z0weeeee 2085M  113M   0.0%   0:00:01 0.0%
         1 nobody   1200K 3544K   0.0%   0:00:00 0.0%
         1 uracherl 2117M  146M   0.1%   0:00:02 0.0%
         1 noaccess  157M  144M   0.1%   0:16:06 0.0%
         2 ion      2081M  110M   0.0%   0:00:02 0.0%
         1 smmsp    3088K   11M   0.0%   0:00:10 0.0%
         6 daemon   8368K   11M   0.0%   0:01:05 0.0%Edited by: Maran Viswarayar on Sep 18, 2012 9:42 PM

    Maran Viswarayar wrote:
    We have SUN SPARC t4 hosting INFORLN ERP with 256GB of RAM and 2 socket 16 core (120vcpU) Machine in a cluster.
    There is huge amount of swapping happening in the server, THe process use 800mb but the swapping is thrice the memory , allmost all the process are swapping and all are from the same apps....
    any clue?
    prstat -t shows
    NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU
    10 bsp      2892M  918M   0.4%   1:36:23 1.0%
    102 root     2648M  459M   0.2%   4:58:59 0.0%
    3 mpatanen 2134M  163M   0.1%   0:00:03 0.0%
    1 dtownsen 2189M  218M   0.1%   0:00:14 0.0%
    2 rrrrrr    2147M  176M   0.1%   0:00:16 0.0%
    3 svacinfo 2315M  345M   0.1%   0:00:30 0.0%
    1 lp       1360K 4520K   0.0%   0:00:00 0.0%
    1 z0weeeee 2085M  113M   0.0%   0:00:01 0.0%
    1 nobody   1200K 3544K   0.0%   0:00:00 0.0%
    1 uracherl 2117M  146M   0.1%   0:00:02 0.0%
    1 noaccess  157M  144M   0.1%   0:16:06 0.0%
    2 ion      2081M  110M   0.0%   0:00:02 0.0%
    1 smmsp    3088K   11M   0.0%   0:00:10 0.0%
    6 daemon   8368K   11M   0.0%   0:01:05 0.0%Edited by: Maran Viswarayar on Sep 18, 2012 9:42 PMpost FORMATTED results from OS command below
    vmstat 6 10

  • Create view...very very difficult....

    I have this view:
    CREATE OR REPLACE VIEW ANAGR ( SITE_ID,
    COD_ID, NOP, ADDRESS, PROP) AS
    SELECT SITE.SITE_ID, COD_IMM.COD_ID,
    'AA',
    SITE.ADDRESS1, LS.PROPRIETA
    FROM LS, COD_IMM, SITE, RM, DP
    WHERE RM.LS_ID = COD_IMM.LS_ID
    AND SITE.SITE_ID = COD_IMM.SITE_ID
    AND LS.LS_ID = RM.LS_ID
    AND SITE.SITE_ID = RM.SITE_ID
    AND RM.DV_ID = DP.DV_ID
    AND RM.DP_ID = DP.DP_ID
    AND (DP.FLAG_GR='2' OR
    (DP.FLAG_GR='1' AND COD_IMM.ADMIN IN ('AAAA','TTTT')))
    GROUP BY SITE.SITE_ID, COD_IMM.COD_ID,
    'AA',
    SITE.ADDRESS1,
    LS.PROPRIETA
    TABLE cod_imm is create every night with a stored procedure:
    (INSERT INTO COD_IMM (COD_ID,LS_ID,BL_ID,SITE_ID,ADMIN)
                             SELECT BL.COD_CONV_BL||'-'||RM.LS_ID COD_ID ,RM.LS_ID,RM.BL_ID,RM.SITE_ID, BL.AMMINISTRATORE
                             FROM RM,BL
                             WHERE RM.BL_ID=BL.BL_ID
                             AND BL.COD_CONV_BL IS NOT NULL
                             AND RM.SITE_ID IS NOT NULL
                             AND RM.LS_ID IS NOT NULL
                             GROUP BY BL.COD_CONV_BL,RM.LS_ID,RM.BL_ID,RM.SITE_ID, BL.AMMINISTRATORE;
                             COMMIT;
    COD_ID...........LS_ID........BL_ID.......SITE_ID.......ADMIN
    A00-0-000001.....000001........000022......000002........AAAA
    A00-1-000001.....000001........000023......000002........AAAA
    A00-2-000001.....000001........000024......000002........AAAA
    A00-3-000001.....000001........000025......000002........AAAA
    B00-0-123456.....123456........123111......000009........AAAA
    B00-1-123456.....123456........123112......000009........AAAA
    S00-0-567890.....567890........222222......567890........AAAA
    T01-0-567888.....567888........222233......567890........AAAA
    T01-1-567888.....567888........222234......567890........AAAA
    R01-0-111111.....111111........000003......999999........AAAA
    R01-1-111111.....111111........000004......999999........AAAA
    R01-2-111111.....111111........000008......999999........AAAA
    Z01-0-333333.....333333........333333......333333........AAAA
    the cod xxx-y is a autoincrement for each bl_id
    TABLE SITE:
    SITE_ID PRIMARY KEY
    TABLE LS
    LS_ID PRIMARY KEY
    TABLE DP:
    DV_ID PRIMARY KEY
    DV_ID
    COR
    DOM
    TEM
    FEN
    ALA
    ALB
    ACE
    TABLE RM (25000 RECORDS):
    RM_ID PRIMARY KEY
    BL_ID FK ON BL
    SITE_ID FK ON SITE
    LS_ID FK ON LS
    DV_ID FK ON DP
    RM_ID......BL_ID.......SITE_ID.........LS_ID.......DV_ID
    0001.......000022.......000002.........000001.......COR
    0002.......000023.......000002.........000001.......DOM
    0003.......000024.......000002.........000001.......INT
    0004.......000025.......000002.........000001.......TEM
    0009.......123111.......000009.........123456.......COR
    0010.......123112.......000009.........123456.......FEN
    0020.......123113.......000009.........123456.......DOM
    0031.......222222.......567890.........567890.......TEM
    0035.......222233.......567888.........567888.......TEM
    0036.......222234.......567888.........567888.......FEN
    0037.......000003.......999999.........111111.......ALB
    0038.......000004.......999999.........111111.......ACE
    0042.......000008.......999999.........111111.......ALA
    0055.......333333.......333333.........333333.......FEN
    in my view I have these values:
    COD_ID...........SITE_ID...NOP.....ADDRESS.....PROP
    A00-0-000001.....000002....AA......SSSSSS.......XX
    A00-1-000001.....000002....AA......NNNNNN.......XX
    A00-2-000001.....000002....AA......CCCCCC.......YY
    A00-3-000001.....000002....AA......CVVVVV.......DD
    B00-0-123456.....000009....AA......RRRRRR.......XX
    B00-1-123456.....000009....AA......RRRRRR.......XX
    S00-0-567890.....567890....AA......RRRRRR.......XX
    T01-0-567888.....567890....AA......RRRRRR.......VV
    T01-1-567888.....567890....AA......RRRRRR.......BB
    R01-0-111111.....999999....AA......RRRRRR.......XX
    R01-1-111111.....999999....AA......FFFFFF.......XX
    R01-2-111111.....999999....AA......RRRRRR.......XX
    Z01-0-333333.....333333....AA......RRRRRR.......XX
    BUT I'D LIKE TO GET THESE VALUES:
    COD_ID...........SITE_ID...NOP.....ADDRESS.....PROP
    A00-0-000001.....000002....EMS......SSSSSS.......XX
    A00-1-000001.....000002....EMS......NNNNNN.......XX
    A00-2-000001.....000002....EMS......CCCCCC.......YY
    A00-3-000001.....000002....EMS......CVVVVV.......DD
    B00-0-123456.....000009....EMS......RRRRRR.......XX
    B00-1-123456.....000009....EMS......RRRRRR.......XX
    S00-0-567890.....567890....TIM......RRRRRR.......XX
    T01-0-567888.....567890....FIN......RRRRRR.......VV
    T01-1-567888.....567890....FIN......RRRRRR.......BB
    R01-0-111111.....999999....EMS......RRRRRR.......XX
    R01-1-111111.....999999....EMS......FFFFFF.......XX
    R01-2-111111.....999999....EMS......RRRRRR.......XX
    Z01-0-333333.....333333....FIN......RRRRRR.......XX
    I'd like to get these values in col NOP:
    - IF cod_id has DV_ID <> 'FEN' AND DV_ID <> 'TEM' THEN NOP='EMS' (111111)
    - IF cod_id has just DV_ID=FEN THEN NOP='FIN' (333333)
    - IF cod_id has just DV_ID='TEM' then NOP='TIM' (567890)
    - if cod_id has DV_ID='TEM' or DV_ID='FEN' or DV_ID in ('FEN','TEM') but in this cod_id
    exists at least an other DV_ID <> from 'FEN' and 'TEM' then NOP='EMS' (000001), (123456)
    - if cod_id has just DV_ID='TEM' and DV_ID='FEN' then NOP='FIN' (567888)
    I tried with this code but it doesn't run correctly:
    CREATE OR REPLACE VIEW ANAGR ( SITE_ID,
    COD_ID, NOP, ADDRESS, PROP) AS
    SELECT SITE.SITE_ID, COD_IMM.COD_ID,
    case when DP.dv_id <> 'FEN' and DP.dv_id <> 'TEM' then 'EMS'
                   WHEN DP.dv_id = 'TEM' AND COUNT(DISTINCT DP.dv_id)=1 then 'TIM'
                   WHEN DP.dv_id = 'FEN' AND COUNT(DISTINCT DP.dv_id)=1 then 'FIN'
                   WHEN DP.dv_id = 'FEN' and DP.dv_id = 'TEM' THEN 'FIN'
                   WHEN DP.dv_id = 'FEN' OR DP.dv_id = 'TEM' AND COUNT(DISTINCT DP.dv_id)> 1 THEN 'EMS'
                        ELSE 'EMS' END,
    SITE.ADDRESS1, LS.PROPRIETA
    FROM LS, COD_IMM, SITE, RM, DP
    WHERE RM.LS_ID = COD_IMM.LS_ID
    AND SITE.SITE_ID = COD_IMM.SITE_ID
    AND LS.LS_ID = RM.LS_ID
    AND SITE.SITE_ID = RM.SITE_ID
    AND RM.DV_ID = DP.DV_ID
    AND RM.DP_ID = DP.DP_ID
    AND (DP.FLAG_GR='2' OR
    (DP.FLAG_GR='1' AND COD_IMM.ADMIN IN ('AAAA','TTTT')))
    GROUP BY SITE.SITE_ID, COD_IMM.COD_ID,
    dp.dv_id,
    SITE.ADDRESS1,     
    LS.PROPRIETA
    Create this view is very difficult for me....
    Could you help me?
    Thank you very much!!!

    You've posted something like this before haven't you. To be honest it seems a bit like gibberish to me, but then we all understand our own system's business requirements best.
    Given that I'm not quite sure what it is you want, I think some variation on what I show below may or may not be what you're looking for.
    Good luck, APC
    SQL> CREATE TABLE g1 (cod number, dv_id VARCHAR2(3))
      2  /
    Table created.
    SQL> INSERT INTO g1 VALUES (1, 'APC')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (2, 'FEN')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (3, 'TEM')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (4, 'APC')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (4, 'FEN')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (5, 'APC')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (5, 'TEM')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (6, 'TEM')
      2  /
    1 row created.
    SQL> INSERT INTO g1 VALUES (6, 'FEN')
      2  /
    1 row created.
    SQL>
    SQL> CREATE OR REPLACE VIEW v1 AS
      2  SELECT cod, sum(decode(dv_id, 'FEN', 1, 'TEM', 2, 4)) AS r
      3  FROM   g1
      4  GROUP  BY cod
      5  /
    View created.
    SQL>
    SQL> SELECT g1.cod, g1.dv_id, decode(v1.r, 4, 'EMS'
      2                                      , 1, 'FIN'
      3                                      , 2, 'TIM'
      4                                      , 5, 'EMS'
      5                                      , 6, 'EMS'
      6                                      , 3, 'FIN'
      7                                      , 'DEF' ) AS nop
      8  FROM   v1, g1
      9  WHERE  g1.cod = v1.cod
    10  /
           COD DV_ NOP
             1 APC EMS
             2 FEN FIN
             3 TEM TIM
             4 APC EMS
             4 FEN EMS
             5 APC EMS
             5 TEM EMS
             6 TEM FIN
             6 FEN FIN
    9 rows selected.
    SQL>

  • Its That Kid With That Project Due Again Help Please,I'll apreciate it

    * Initials.java 11/19/07
    * Darron Jones
    * 4th Period
    * ID 2497430
    * I recieved help from the Java Software Solutions Book and the internet
    * Initials
    public class Initials
         public static void main (String[] args )
    System.out.println("DDDDDDDDDDDDDDDDDDDDD      RRRRRRRRRRRRRRRRRRRRR         JJJJJJJJJJJJJJJJJJJJJJJJJ");
    System.out.println("DDDDDDDDDDDDDDDDDDD        RRRRRRRRRRRRRRRRRRRRR          JJJJJJJJJJJJJJJJJJJJJJJ");
    System.out.println("DDD                DDD     RRR               RRRR        JJJJJJJJJJJJJJJJJJJJJJJJJ");
    System.out.println("DDD                 DDD    RRR             RRRRR         JJJJJJJJJJJJJJJJJJJJJJJJJ");
    System.out.println("DDD                  DD    RRR            RRRRR                  JJJJJJJJJJJJ");
    System.out.println("DDD                   DDD  RRR            RRRRR                  JJJJJJJJJJJJ");
    System.out.println("DDD                  DDD   RRR            RRRRRR                 JJJJJJJJJJJJ");
    System.out.println("DDD                  DDD   RRRRRRRRRRRRRRRRRRRRR                 JJJJJJJJJJJJ");
    System.out.println("DDD                 DDD    RRRRRRRRRRRRRRRRRRRRR                JJJJJJJJJJJJJ");
    System.out.println("DDD                 DDD    RRRR             RRRR         J      JJJJJJJJJJJJJ");
    System.out.println("DDD                 DDD    RRRR             RRRR        JJ     JJJJJJJJJJJJJ");
    System.out.println("DDD              DDD       RRRR             RRRR       JJJ     JJJJJJJJJJJJJ");
    System.out.println("DDD              DDD       RRRR             RRRR       JJJJ    JJJJJJJJJJJJJJ");
    System.out.println("DDD             DDD        RRRR             RRRR       JJJJJJJJJJJJJJJJJJJJJJ");
    System.out.println("DDD             DDD        RRRR             RRRR  R    JJJJJJJJJJJJJJJJJJJJJJ");
    System.out.println("DDDDDDDDDDDDDDDDDDD        RRRR             RRRR  RR    JJJJJJJJJJJJJJJJJJJJJ");
    System.out.println("DDDDDDDDDDDDDDDDDDD        RRRRR             RRRRRRR    JJJJJJJJJJJJJJJJJJJJJ");
         Why does my D's on my program have J's in it and why do some of my letters have spaces in it

    You're just learning all sorts of posting rules today, but since you are here asking for free advice, you might as well do it by the rules.
    Next rule: don't make multiple threads when you've already started one for this very question.
    Anyway, I don't see anything wrong with your program. The letters print without extra spaces and without misplaced letters. What specifically is going wrong for you when you run this?

  • Migrating Oracle Forms to BC4J Architecture

    Hi,
    i'am currently searching for people/guidelines who experienced the migration
    from Oracle Forms to a BC4J architecture; with a JavaSwing client interface.
    Did they succeed ?
    What we're the pitfalls ?
    What did they do with the typical Oracle Forms built-ins ?
    Which framework, migration products,etc did they use ?
    All info is welcome.
    chris

    we just had a workshop validating the tool from Informatic Atelier.
    We were disappointed as the tool gives poor or no solution for the Business Logic in the form module.
    User Interface - Oke moreOrLess (Jtable rrrrrr!!!)
    Data - oke; BC4J ;Entity object no problem; View objects no problem
    Business Logic - NOT oke; trigger code and program units are dumped into a java file; the rest is up to you.
    This leaves a lot code to translated and reviewed. Don't forget that our client forms contains lots, lots of business logic.
    Chris

  • Page does not "focus" on open Panel in Accordion

    Hello Everyone,
    This is my first attempt at using AJAX/Spry so "be gentle".
    I've built a rather long accordion to hold a large list of links.
    If you click on the panel tabs at the lower part of the accordion, the panels open, however the page "moves up" to to display the first panel tab (which is closed), forcing the user to then scroll down to find the open panel.
    Is this normal.
    Thanks!
    Here's the link to the page:
    http://www.airee.org/pages/useful_linksCopy.html

    Thanks for the compliment. I'm struggling to learn design and your compliment is a great boost!
    If you scroll to the bottom of the accordion, and click on "Projectors" (last tab) the page magically moves its self up so that "Education Related" (first tab) appears at the top of the screen. In doing so, the screen can not display "Projectors" tab (which is now open) forcing the user to scroll down to find it.
    It's almost as if the "Projectors" (last tab) needs to push the tabs above it up so that the panel can display but instead of pushing the other panels up it simply opens and the some how takes you to the top of the accordion.
    _____adendum_____
    AHHH HA!!! I think I've narrowed it down. I tested the page in Safari 5.0.3 and FF 5.0 and it works just fine (other than an ungly blue border appearing in Safari, get to that later)
    But in IE8,8comp,and 7 I get the bug. Stupid 'ol IE! rrrrrr
    So any ideas out there?

  • Loose DC jack on T61.

    In order to charge my battery, I have to hold my power cord at the perfect position, otherwise it will not charge.  I can also wiggle the plug around.  How difficult is this to fix?

    RRrrrr wrote:
    I'm helping someone with a screwed up power jack... and so, similar to another post, I think it would be good of those who post that they've fixed something... to give some info on how they did it, where they found the part, what kind of part number to look for, the special quirks to getting the thing disassembled/installed, etc., etc.
    If I posted... "yeah, me too, I fixed it" ...it wouldn't help anyone here.  When, and if, I do fix it, I hope I'll come back and give the kind of summary I've suggested, above.  Right now, I need to google a schematic or parts list... or disassembly guide, etc... to see if it's doable, worth the trouble, how much it'll cost, part/shipping, etc., etc., etc.
    (All I'm saying is... give a little, people... not just a "me too", and "it's a chore".
    One repair place told the guy I'm helping that they could solder a new jack... he decided it'd cost too much, etc... now I read here that it's a 'solderless' connection.   I'm not a circuit board guy, but I did manage to fix a dead westinghouse flat screen tv by disassembling it, removing and replacing a capacitor (thanks to info on the 'net from other users, 'cause westinghouse won't fix it)... works great now ...thought I'd give this laptop a try.  
    Just sayin'...
    i think that should be the spirit of things. However, not everyone is inclined in writing this up into a proper article due to several reasons. One of that maybe due to the fact that some people doesn't have the time to write up an article, while others may find it as a chore to write such a long piece of article since they have no experience in doing so. 
    But, i guess you could take the initiative to write this up, once you have done fixing the power jack of the T61.
    By the way, you can get this part from ebay for around 10 USD 'just google T61 power jack'. 
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Other means to charge the HP Touchpad tablet ?

    Other than the flawed charger that we are provided by HP that has had numerous problems are there other ways we can try to charger the device ?  Also is the cord with the charger provided by HP a USB to microUSB ?   Heck is there even such a thing ?  Is this cord proprietary and thus we can't use anything else out there ?  Will a PS3 Controller cord work ?  It is looks like USB to microUSB.  Update:  It is not the same rrrrrr
    Post relates to: HP TouchPad (WiFi)
    This question was solved.
    View Solution.

    DeViLzzz - some information and answers:
    1. This forum is of a "peer to peer" design, aka "users helping users". I can't tell you what repairs were done.. Asking "HP" for a direct answer will yield no results. :-(
    2. You apparently know about a Touchstone. As you may have read in other posts, there was a bad batch of cables sent out by mistake. (I received one myself). That is probably what is wrong with your TouchPad (as long as it hasn't been damaged accidentally by dropping or yanking the cord out abruptly).. As I replied in another of your posts, they are a stock item in most computer stores, or HP has replaced them for other users.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

Maybe you are looking for

  • Logisim not loading correctly in Xmonad

    I am having a bit of trouble trying to get logisim running in Xmonad. It's a jar file, so I open it with java -jar logisim. The loading screen shows up correctly, and the window is made, but it is completely filled in with white. If I randomly click

  • E-recruiting - CX_WD_GENERAL exception

    Hello, when trying to run the startpage of e-recruiting (Webdynpro for ABAP) I get the following error: Method: RAISE of program CX_WD_GENERAL=================CP Method: IF_WDR_RUNTIME~GET_RR_APPLICATION of program CL_WDR_MAIN_TASK==============CP Me

  • 6233 low volume alarm tone

    I'm facing a problem with low volume of the alarm tone. In fact it is not reliable enough for waking me up ! I know the alarm tone is ascending by default, but when it reach its highest level it is a bit lower than a ringing tone for incoming calls f

  • Authorization check activation for infoprovider

    Hello SDN Experts,                                     I am using BW 3.5 and I want to activate authorization on one infoprovider. I created authorization object using RSSM in dev server and selected only that object in infoprovider. My problem is, I

  • ITunes 7.7 Won't Install/Error message

    Every time I attempt to upgrade I get this error message after the download finishes: "Errors occurred when installing the updates. If there problem persists update manually" So is there a way to fix this or how do I upgrade manually?