Find character in lower case

Hi,
I've this table TAB_ID:
ID.....................NAME
1......................AbCCCC
2.....................ABBBBB
3.....................ZxxxZZZZ
4.....................aaaaaaaB
5.....................CCCCCC
8.....................DDDDDD
0.....................AAAAAb
I'd like to find any string NAME with at least one character in lower case.
In my case I get:
ID.....................NAME
1......................AbCCCC
3.....................ZxxxZZZZ
4.....................aaaaaaaB
0.....................AAAAAb
How can I write my query to get this output?
Thanks in advance!

try this...
SQL> with tab_id as
2 (select 1 ID ,'AbCCCC' sname from dual union all
3 select 2,'ABBBBB' from dual union all
4 select 3,'ZxxxZZZZ' from dual union all
5 select 4,'aaaaaaaB' from dual union all
6 select 5,'CCCCCC' from dual union all
7 select 6,'aaaaaaa' from dual union all
8 select 8,'DDDDDD' from dual union all
9 select 9,'AAAAAb' from dual)
10 select * from tab_id
11 where upper(sname) != sname;
ID SNAME
1 AbCCCC
3 ZxxxZZZZ
4 aaaaaaaB
6 aaaaaaa
9 AAAAAb

Similar Messages

  • Case statement to find if 3rd character is lower case

    Hi,
    Im trying to write a query that checks if the value's 3rd character in not a capital print Y if it is print N.
    Select Name, (Case 3rd charter of Name is lower case then 'Y' else then 'N'), age from persons table;
    Results:
    John Y 50
    Mary Y 40
    TED N 30
    Any ideas?
    Thanks,
    Sean

    WITH PERSONS AS (
                     SELECT 'John' name,50 age from dual union all
                     SELECT 'Mary' name,40 age from dual union all
                     SELECT 'TED' name,30 age from dual
    SELECT  NAME,
            CASE SUBSTR(NAME,3,1) WHEN LOWER(SUBSTR(NAME,3,1)) THEN 'Y' ELSE 'N' END X,
            AGE
      FROM  PERSONS
    NAME X        AGE
    John Y         50
    Mary Y         40
    TED  N         30
    SQL> SY.

  • Upper to lower case in "false" list

    http://indesignsecrets.com/convert-text-to-lowercase-with-grep-utility.php
    Is a thread I found. It converts the first char in a “bullet list” para style to lower case.
    Works great, but often we have lists for which, for several reasons, we cannot use the automatic “list” function (copy paste issues with other programs etc). The first char is the — (alt +0151) followed by a space (no tab) or the • (alt+0149) char.
    I cannot figure it out with a grep function, because there’s no mention of “lower case” possibility.
    Any suggestions?

    I was able to modify Peter Kahrel's script fairly easily to change the third character instead of the first, which I think would do what you want.
    //Change THIRD character to lower case
    //Peter Kahrel wrote the original of this.
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.appliedParagraphStyle = "List";
    // Third letter in paragraph to lower case:
    app.findGrepPreferences.findWhat = "^.{3}";
    found = app.activeDocument.findGrep();
    for (i = 0; i < found.length; i++)
      found[i].characters[2].changecase (ChangecaseMode.lowercase);
    I changed
    app.findGrepPreferences.findWhat = "^."; to
    app.findGrepPreferences.findWhat = "^.{3}"; so it picks up the first three characters in the paragraph instead of only one
    and
    found[i].characters[0].changecase (ChangecaseMode.lowercase); to
    found[i].characters[2].changecase (ChangecaseMode.lowercase); so it changes the third character instead of the first.
    The script still depends on the text aving a named applied style (in this case I left it at "List") so you may need to edit more to change the style name to match your situation.
    And if you wanted, I think you could probably change app.findGrepPreferences.findWhat = "^."; to app.findGrepPreferences.findWhat = "^.+"; to find the entire paragraph, then change the index in the array to match any character position of your choice, but I don't think that has much purpose. One of the scripters could probably jazz this up with an interface that asks which character you want to change.

  • Auto-Capitalization: How can I set Pages v5.01 to auto-capitalize the first letter of the first word in a sentence and to automatically change lower case "i" to "I" appropriately. I'm unable to find a menu that offers me these.

    Auto-Capitalization: How can I set Pages v5.01 to auto-capitalize the first letter of the first word in a sentence and to automatically change lower case "i" to "I" appropriately. I'm unable to find a menu that offers me these.

    Gavin Lawrie wrote:
    Once it had been established that the iWork rewrite had resulted in some features being lost and others broken, and once Apple had acknowledged the concerns* and suggested they are working on fixes**, I'm not sure what else there is to achieve.
    You are writing that in the perspective of having read about it here already. Repeated often enough that you encountered it somewhere in the posts.
    Users are flooding in here and don't know any of this. Of course we have to repeat everything endlessly.
    Because I like to give precise, understandable and workable answers to repeated questions, and Apple doesn't allow sticky posts here, I created a separate forum which users can consult to look up real answers, and contribute for themselves if they have something valuable to add:
    http://www.freeforum101.com/iworktipsntrick/
    There is a section purely devoted to Pages 5. Add whatever answers you feel will lighten the problems of Apple's 'upgrades'.
    Peter
    * Where have they acknowledged anything?
    ** They have barely anything listed, compared to the massive list of deleted features, and nothing but an extraordinarily long time frame considering they created the problems here and now. Apple has not said they will do anything at all about fixing the real issues, the biggest of which is that the new iWork apps break virtually all the work of existing users.

  • X character doesn't type lower case

    After using a bluetooth phone with my MacBook the character "X" does not type the lower case. It only types in the upper case, so i know that the key is still functional but will not type when pressed alone....

    Open the Speech pane of System Preferences and check whether either the listening key or the speech key has become set to x; if so, change the setting.
    (17807)

  • Can Grep find duplicates in a list solving upper/lower case differences?

    The idea is isolate the info. Any grep that lead to these results will be enough to resolve the problem. Thanks.
    actual list
    option 1
    option 2
    option 3
    halogen
    halogen
    halogen
    Halogen
    Halogen
    Halogen
    thebaica
    therefore
    therefore
    their
    Therefore
    Therefore
    them
    they
    they
    therefore
    They
    They
    Therefore
    thermal
    These
    they
    They
    thin

    I hope it'll be clear. Maybe I complicate the issue but I do it quickly.
    1/ I apply the condition "All" to the entire text.
    2/ I apply a char style "Capitales", so that I can convert all in Lower case (see ID menu).
    3/ First Regex [for Option 1] (I forgot the screenshot):
    in French:
    Rechercher : ^(.+\r)\1+
    Remplacer par :      (nothing)
    Remplacer le format : select condition "Option 1"
    4/ 2nd Regex [for Option 2]
    4/ 3rd/4th/5th Regex [for Option 3 - in 3 steps]
    5/ 6th Regex: I delete all the Text with condition "All".
    6/ Now, we only have the Text with conditions Option 1/2 and 3 (see the colors).
    7/ If you want, you can delete the 3 conditions:
    DONE!
    I use a lot with Grep the possibilities Conditions offer us!!! More complex but more fun! 

  • How can you create a paragraph style that removes all spaces and forces everything to lower case?

    Hi,
    Is there anyway of using GREP (or some other magical wizardry) to create a paragraph style that automatically removes all spaces and forces words into lower case?
    Strange request i know....I'm wanting to use it for datamerged email addresses.
    Thanks

    so doing it through InDesign is a work around I'm exploring.
    Excel has the 'LOWER' function and the ability to record macros for a quick find/replace on the spaces - so that's definitely a good option if it can't be solved purely in InDesign.
    You can change case via scripting in InDesign. This AppleScript (OSX only) will set the case of the selected paragraph style to lower. It would be possible to add some code that would strip spaces as well:
    tell application "Adobe InDesign CS6"
        activate
            set StyleList to name of every paragraph style of active document
        set myDialog to make dialog with properties {name:"Document Paragraph Styles"}
        tell myDialog
            tell (make dialog column)
                tell (make border panel)
                    tell (make dialog column)
                        make static text with properties {static label:"Choose a Style", min width:150}
                    end tell
                    tell (make dialog column)
                        set myPresetsDropdown to make dropdown with properties {string list:StyleList, selected index:0, min width:150}
                    end tell
                end tell
            end tell
        end tell
        set myResult to show myDialog
        if myResult = true then
            --+1 gets the correct name because list starts at 0
            set myStyle to item ((selected index of myPresetsDropdown) + 1) of StyleList
        else
            return
        end if
        destroy myDialog
        tell active document
            set myStyle to paragraph style myStyle
            repeat with j from 1 to (count stories)
                repeat with i from 1 to (count paragraphs in story j)
                    if applied paragraph style of paragraph i of story j is myStyle then
                        --defines a variable to replace the generic this_text parameter in the handler
                        set SCText to the contents of paragraph i of story j
                        set contents of paragraph i of story j to my change_case_of(SCText)
                    end if
                end repeat
            end repeat
        end tell
    end tell
    on change_case_of(this_text)
        set the_comparison_string to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
        set the_source_string to "abcdefghijklmnopqrstuvwxyz"
        set the_new_text to ""
        repeat with thisChar in this_text
            set x to the offset of thisChar in the_comparison_string
            if x is not 0 then
                set the_new_text to (the_new_text & character x of the_source_string) as string
            else
                set the_new_text to (the_new_text & thisChar) as string
            end if
        end repeat
        return the_new_text
    end change_case_of

  • Lower Case File Names on 5D iii?

    Can I modify the filing naming on the 5D iii so that it is all lower case rather than uppercase? If that's not possible, it is at least possible to change the extension from JPG to jpg?

    Hi homeboy!
    Thanks for the post!
    The file name on the EOS 5D Mark III has four alphanumeric characters followed by a four-digit image number and extension.  The first four characters are set upon factory shipment and unique to the camera. 
    However, you can change them.  With [USER SETTING 1], you can change and register the four characters as desired.  With [USER SETTING 2], if you register three characters, the fourth character from the left will be appended automatically to indicate the image size.  Please follow these steps to access these settings:
    Press the MENU button
    Select the [Tools #1] tab.
    Select [File Name].
    Select [Change User Setting 1] or [Change User Setting 2].
    Enter any alphanumeric characters.
    This didn't answer your question or issue? Find more help at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Changing Mixed Case (Title) headings to Lower Case...

    Hi,
    I am converting several word documents into InDesign CS3 documents in order to create a book. Certain paragraph headings use mixed case (Title Case) and I wish to change each of these into lower case and then apply a character style using an expert font. This seems to be a great task for GREP. However, I have not had much success with creating the correct expression. Any tips or tricks for doing this sort of thing? Also, do you know if there is a shortcut assigned to (Title Case)? It may be the case I will have to use the shortcut key to apply Title Case.
    Thanks in advance for your assistance.
    Kind regards,
    Greg

    Hi Greg,<br /><br />Glad it helped. I was actually referring to the simple all-purpose one <br />which will use whatever grep settings you have. Just save the following <br />script as GrepToLowercase.jsx (or whatever you want), and after setting <br />your grep settings in the dialog, just run the script.<br /><br />finds = app.documents[0].findGrep();<br />for(i=0;i<finds.length;i++){<br />    finds[i].contents=finds[i].contents.toLowerCase();<br />    }<br /><br />-- <br />Harbs<br />http://www.in-tools.com<br />"Automated Publishing for the Rest of Us!"

  • Change Lower Case to Uppercase in Styles

    I have a document which uses lower case subheads throughout. Is it possible to make a character style sheet to change a subhead from lower case to upper case in a document?
    Or a way to search using find/change?
    Thanks for you help
    G4 OSX Tiger InDesign CS3

    You can use the paragraph style for the subheads.
    Open the paragraph style and go to Basci Character Formats.
    There's a setting for "Case".
    Choose All Caps from the menu.
    That should change all your subheads to All Caps.

  • Upper and Lower Case in J2EE

    Hi Friends!
    I have an oracle database and i want to do string comparision.
    But i have and problem.
    I can use these sql in oracle gui
    <b>select UPPER(BTITLE) from sapsr3db.bilim_blog
    select BTITLE from sapsr3db.bilim_blog where {fn LCASE(bilim_blog.BTITLE)}='test'</b>
    But i cannot use in J2ee sap portal application. It gives these error sequently
    <b>Upper Function are not allowed here</b>
    <b>SQL syntax error: an illegal character "{" has been found in the statement text </b>
    Also someone asked same question before and didnt get answer.
    <u>Re: Case insesitive String comparison in Open SQL</u>
    Best Regards
    Eray

    Hi
    here you can find all the functions permitted in the OpenSQL:
    http://help.sap.com/saphelp_nw04/helpdata/en/9b/f46cabaa874bc9a82234e8cf1d0696/frameset.htm
    So I think that Upper/Lower are not permitted... the work around is to get all the records and check the Upper and Lower case using Java Code functions into your business methods.
    Hoper this help.
    Vito

  • Find character between others

    hi,
    I want to find a characters that is between others character.
    e.g.
    This are the rows from my table
    x|y|z|a|b
    da|c|m|a|b
    I have a variable v_var and
    if v_var between | and | then
    dbms_output.put_line(v_var);
    end if;
    Thank you

    It won't work in the case where it's either first or last in the expression, where there will be no '|'.
    You could simplify the condition with regular expressions as follows:
    SQL> set serveroutput on
    SQL> declare
      2    v_row varchar2(100) := 'da|c|mda|a|b';
      3    v_var varchar2(100) := 'DA';
      4  begin
      5    if regexp_like(v_row, '(^|\|)'|| v_var ||'(\||$)', 'i') then
      6      dbms_output.put_line('''' || v_var || ''' was found in the string ''' || v_row || '''.');
      7    end if;
      8  end;
      9  /
    'DA' was found in the string 'da|c|mda|a|b'.
    PL/SQL procedure successfully completed
    SQL> Where the last parameter 'i' starnds for case Insensitive matching. If you omit that one it will only return exact matches with regards to upper and lower case.

  • How to convert a text file in lower case to upper case?

    I've a beginner in java world and I just come through the tutorial in http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html showing how to copy a text file:
    import java.io.*;
    public class Copy {
    public static void main(String[] args) throws IOException {
         File inputFile = new File("farrago.txt");
         File outputFile = new File("outagain.txt");
    FileReader in = new FileReader(inputFile);
    FileWriter out = new FileWriter(outputFile);
    int c;
    while ((c = in.read()) != -1)
    out.write(c);
    in.close();
    out.close();
    And I would like to ask how to covert all lower case letters in input file to upper case letter in output file at the same time of copying.
    I guess it'll be using Character.toUpperCase(c), but I don't know how to do it actually.
    Any help would be much appreciated.

    Hope this helps
    import java.io.*;
    public class Copy {
    public static void main(String[] args) throws IOException {
    File inputFile = new File("farrago.txt");
    File outputFile = new File("outagain.txt");
    FileReader in = new FileReader(inputFile);
    FileWriter out = new FileWriter(outputFile);
    BufferedReader buff = new BufferedReader(in);
    String c;
    while ((c = buff.readLine()) != null)
    out.write(c.toUpperCase());
    in.close();
    out.close();
    }

  • Is there a way to remove the dot in a lower case "i" using photoshop?

    I'm working on a poster for a concert, and don't want the dot to appear over the "i" in a word.  Does anyone know how to remove the dot?

    Sure
    You may be able to find a font without dots on lower case i
    You can rasterzise a text layer and remove the dot.
    You can convert the text layer to a shape layer and remove the dot by editing the shapes path.

  • PDF created with InDesign CS6, Helvetica Neue font, causes lower-case "r's" to be bold

    The pdf was created from InDesign CS6 using Windows 7. I cannot recreate the problem on my machine, but it is happening on a coworker's machine. The only character affected is the lower-case r. It appears bold when viewing the pdf of his machine. I am also running Windows 7 and it looks fine to me. My boss is using a Mac and it also looks fine to her. Does anyone know what might be causing this problem?

    Hmm...until it's isolated to the 'r' it surely sounds like the typical effect often caused by the "Enhance Thin Lines" preference setting in Acrobat/Reader/browser-x-plugin, which most commonly affects l's and i's.
    It's also true that various servings of Helvetica Neue are at the center of many such tales of woe.
    I'd recommend some simple testing on the co-worker's computer with PDF's produced under the same conditions using different fonts; perhaps some varied weights of the same Helvetica Neue.

Maybe you are looking for

  • Is there a way to only import video?

    Is there a way to only import video? In the import window, I can see a list of files from my SD cards. But they only everything, like photos or even system files sometimes. Is there a way to tell final cut pro to only list or show video files? Or pre

  • A function with a list of data

    I need to get a list of names from a function so that i can avoid creating seperate functions for each names... could anyone give a syntax for it? I dont want to have a procedure but a function will be good thanks

  • Back episodes not showing up in iTunes

    Since switching to a FeedBurner feed, only the most recent 3 of my 59 episodes are showing up in the iTunes Store. The RSS feed that iTunes reads from is still working fine, subscription is possible, so what could be causing this limited display? www

  • Monitor Flashes on Startup

    Hi, I've got a Dual 2.7Ghz G5 with a Radeon 9650 video card in it. Recently it's been doing something odd on startup. When the computer first starts (or if the monitor's been off for a while) the screen flashes between dark and normal. It does this f

  • Adding a blank row to a JTable when a user begins to edit a current row

    Hi, this may be a daft question, but I've been looking through the forum and didnt find anything that really helped me. So I'm posting this in the hope someone will be a ble to point me in the right direction. In my current application I have a JTabl