Select only words with capitals

If I have data stored in my Database much like this Sentence, with Some words containing uppercase letters and some not, what is the simplest Way to select only those words which contain upperCase letters?
From the above sentence, for example, I would want to see the result :
If I Database Sentence Some Way upperCase
Note that the uppercase letter(s) will not always be at the start of a word.
Is there a simple way to achieve this? I started dabbling with REGEXP_LIKE, but my regular expressions are pretty hopeless at the best of times :-(

I've seen more regular expression syntax explanation documents in my time than you've had hot dinners, probably. I'm afraid I still plead complete ignorance and find constructing anything other than the very simplest incredibly difficult, even with the help of various freebie utilities and tools you can download to help you do the job. It's a blind spot I have, and it's not going away any time soon. So yes, I have seen before at least the first of those pages you linked to, but I can't say it's helped me much.
For the rest, I gave an example of the input and output I'd like to achieve. Your suggestion regarding the lastname column from the EMP table doesn't help in that regard, and even when I translate it into something approaching my actual situation, it doesn't do what I need it to do:
create table test_t1 (col1 varchar2(4000));
insert into test_t1 values ('If I have data stored in my Database much like this Sentence, with Some words containing uppercase letters and some not, what is the simplest Way to select only those words which contain upperCase letters?');
commit;
SQL> select * from test_t1 where col1 like '^[A-Z]%';
no rows selectedAlso, you've apparently used the "^" character to indicate that it's the beginning of the string that should be checked for containing an uppercase character, but as I mentioned, my uppercase characters can appear anywhere within the string.
Anyone else, please?

Similar Messages

  • Hi.i want to select only rows with no child rows

    Hi.i want to select only rows with no child rows in hierarchical queries.

    http://www.rampant-books.com/10g_80.htm
    bye
    TPD

  • In SQL Worksheet, when I double click to select whole word with underscore

    Hi All
    I'm using SQL Developer 2.1 in XP. After I changed various preferences, I fid when I double click a variable such as ls_test_column, it considered it as 3 words instead of one. I know in TOAD there's a setup to consider word with underscore as one word so that when double click, the whole word can be selected. Now I have to use mouse or shift key to select variables with underscore. it's inconvenient.
    Does anyone know which preference control this? Thanks.

    It is based on the "Use Change of Case as Word Boundry" preference in the Code Editor section - if this is on, then an _ is considered a "change of case" for double click selection, amongst other things.
    theFurryOne

  • Need to select only words

    Hi,
    I have a simple question, i have a column with a lot of non-word entries. All i need to select from that column are entries which are valid english characters. I tried this but this does not work:
    select a from abctest where not (regexp_instr(a, '[A-Z|a-z]+')= 0);
    and a few other variations. But to no avail. Can anyone help out here...
    Some of the entries i need removed are like have 'inverted question marks' in them - which might have gotten there due to some encoding issues. But i dont need them in my result. any help would be appreciated.
    thanks

    Hi,
    For DB version below 10g it can be achieved as below
    SQL> with data as(
      2      select '143abd' as col from dual union all
      3      select 'abd' as col from dual union all
      4      select 'abd32' as col from dual union all
      5      select 'ab4ed' as col from dual)
      6      select col from data
      7      where nvl(length(translate(upper(col),'*ABCDEFGHIJKLMNOPQRSTUVWXYZ','*')),0)=0;
    COL
    abd

  • Bookmark/Links only word with basic URL not extended URL

    Why when I put this in my url field and an error message comes up:
    http://www.berardchiropractic.com/BerardFamily_Chiropractic/Methuen_Chiropractor_Christopher_BerardDC.html
    Then, I put this in the url field and the website comes up
    http://www.berardchiropractic.com
    Why is this happening and why does it only happen w/ the home page?
    It doesn't happen when I use the extended url on any other page like this one:
    http://www.berardchiropractic.com/BerardFamily_Chiropractic/Dr._Christopher_Berard_Methuenchiropractor.html
    How do I fix this. People are bookmarking it then later on they get an error and have to manually type in www.berardchiropractic.com
    Message was edited by: amyboston

    The homepage really isn't just www.berardchiropractic.com. You can use that to get to it directly but when you get there the actual address shows up as http://www.berardchiropractic.com/BerardFamily_Chiropractic/MethuenChiropractor.html
    I think it is because I am using .mac to host my own domain. Since I am publishing to .Mac my .Mac base URL http://web.mac.com/berardamy/ and not my registered domain name http://www.berardchiropractic.com
    www.berardchiropractic.com is registered with GoDaddy. I have the domain set up to forward to the .mac account.
    I think the bookmarking problem has something to do with the domain masking/forwarding I described above.
    I just want to make sure when people type in www.berardchiropractic.com to visit the site that they can bookmark it and have their bookmark show up as www.berardchiropractic.com and not http://www.berardchiropractic.com/BerardFamily_Chiropractic/MethuenChiropractor.html
    because this longer extended url name or actual website designation doesn't show up when accessed from favorites or bookmark. Can anyone explain why it doesn't and what can I do to fix it?

  • How do you select multiple words using a Magic Trackpad?

    I know how to select multiple words with my mouse, but cannot figure out how to do it using my new Magic Trackpad. Here's the deal:
    Let's say you want to select "cannot figure out how to" in the sentence above. With my mouse, I'd place the cursor somewhere over the word "cannot," double-left-click and keep holding the button down. Then, dragging to the right, it would select each word in its entirety as I moved along the sentence. I do this all the time since it is a very quick way to select text.
    Okay, so how do you do this with the Magic Trackpad?
    I try a similar behavior, but it doesn't work. If I double-tap on "cannot," for example, one of two things happens. Either only the word "cannot" is highlighted and dragging does nothing to highlight more text. Or, if I'm quicker with the drag (aka swipe) right, it will select one character at a time starting from the cursor position when I double-tapped and not entire words, as I want.
    I'm stumped. Anyone?

    Jeffrey,
    The only good way seems to be by using the physical click on the Trackpad. Double physical click then drag. Much the way it's done on the mouse.
    Regards
    Captfred

  • Why won't words with friends download?

    It keeps saying "the item you tried to buy is no longer available". I purchase the app months ago but I want to re-download it as it was not working properly.

    I am experiencing the same problem. It became apparent when I updated my apps this morning. I received the  "The item you tried to buy is no longer available" and only "Words with Friends" failed to update. 14 other apps updated without problem. I have tried the solutions mentioned above, but the problem persists and I receive the error every time I attempt to update or download "Words with Friends". I suspect that this must be a problem with the "Words with Friends" app and not a more generalized issue.

  • HT204216 Used to highlight just the portion of an article that I wanted to print and press print selection only.  How do you do that with a MAC?

    Used to highlight just the portion of an article that I wanted to print and press print selection only.  How do you do that with a MAC?

    Depends to some extent what application you're printing from, and what printer you're using, but here's the dialogue box for ⌘P in Firefox -
    Note the option to print selection only.
    Haven't looked before, but I can't find anything similar in Pages print options.
    It does appear in Word though.
    Message was edited by: noondaywitch

  • Help with this sql. Select only employees from a distinct Org??

    Hi guys, simple query.
    create table balancetest(emp_id number, balance_id number, balance number, org number);
    insert into balancetest values (111, 1, 1, 0);
    insert into balancetest values (111, 1, 1, 0);
    insert into balancetest values (111, 2, 1, 1);
    insert into balancetest values (222, 1, 2, 1);
    insert into balancetest values (333, 3, 4, 3);
    insert into balancetest values (333, 3, 4, 2);
    commit;
    SQL> select * from balancetest;
        EMP_ID BALANCE_ID    BALANCE        ORG
           111          1          1          0
           111          1          1          0
           111          2          1          1
           222          1          2          1
           333          3          4          3
           333          3          4          2
    6 rows selected.As you can see, emp_id 111 appears on different Org (0 and 1). I need to calculate the balance but the requirement says that I need to retrieve employees appearing only in 1 org.. It won't matter which org is selected (the business rules ensure balance will be the same), as long as if an employee is in multiple org, this employee is selected only once for an org. So, my result will be something like:
        EMP_ID BALANCE_ID    BALANCE        ORG
           111          1          1          0
           111          1          1          0
           222          1          2          1
           333          3          4          3
           333          3          4          2or,
        EMP_ID BALANCE_ID    BALANCE        ORG
           111          2          1          1
           222          1          2          1
           333          3          4          3
           333          3          4          2In other words, an employee must appear only in 1 org in my result.
    any ideas? I tried:
    select * from balancetest bal1
    where not exists ( select bal2.emp_id from
                               balancetest bal2
                               where bal2.emp_id = bal1.emp_id
                               and bal2.org <> bal1.org
                               );But I guess it won't be that simple!!

    Hi,
    You can find the lowest-numbered org for each employee like this:
    SELECT    emp_id
    ,         MIN (org)  AS min_org
    FROM      balancetest
    GROUP BY  emp_id;You can get the results you want by selecting only rows from balancetest that match a row in this the result set above. There are many ways to do that, such as a join:
    WITH  g  AS
        SELECT    emp_id
        ,         MIN (org)  AS min_org
        FROM      balancetest
        GROUP BY  emp_id
    SELECT  b.*
    FROM    balancetest  b
    JOIN                 g  ON  b.emp_id = g.emp_id
                            AND b.org    = g.min_org;

  • Every since I have upgraded to IOS7, Words with Friends only displays in the portrait position.  Cannot seem to change it to landscape.  Can anyone help?

    Every since I have upgraded to IOS7 on my ipad, Words with Friends only displays in the portrait position.  I cannot get it to be landscape.  Can anyone help me out.  I have turned it off and started again and keep turning the ipad only to have it go to portrait in the opposite side.

    The "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.
    Firefox shows "Use custom settings for history" as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".
    "Never Remember History" means that Private Browsing is active and "Always use private browsing mode" gets a checkmark.
    The default settings mean that cookies are enabled and thus should work.
    Did you try to delete the cookies from the bank site?
    Details like websites remembering you (log you in automatically) are stored in a cookie.
    *Create a cookie 'allow' exception to keep such cookies, especially in case of secure websites and when cookies expire when Firefox is closed.
    *Tools > Options > Privacy > "Use custom settings for history" > Cookies: Exceptions
    In case you use "Clear history when Firefox closes" or otherwise clear history:
    *do not clear the Cookies
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/remove-recent-browsing-search-and-download-history
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you would like to keep.

  • How ı use wiktionary and google translate 6.3.2 with firefox os or android with all functions.ı want to select a word and then want to see the translate.

    ı am using wiktionary and Google translate 6.3.2 add on at Firefox.it makes my work very easy.ı only double click on a word and then opens a window near the word and ı can see the meanings.ı really really want a Firefox OS Mobil device.and ı want to use a Google translate easy like this.ı do not want to copy text to clipboard and then type to search area and then search.when ı select a word browsing at the web.ı must easily translate and see the meaning.ı do not want to copy to clipboard.ı am wanting Firefox os like crazy.ı want to use Firefox OS like using Firefox at PC at my Mobil device.ı want a tablet with Firefox OS.thanks.good works.

    ı am using wiktionary and Google translate 6.3.2 add on at Firefox.it makes my work very easy.ı only double click on a word and then opens a window near the word and ı can see the meanings.ı really really want a Firefox OS Mobil device.and ı want to use a Google translate easy like this.ı do not want to copy text to clipboard and then type to search area and then search.when ı select a word browsing at the web.ı must easily translate and see the meaning.ı do not want to copy to clipboard.ı am wanting Firefox os like crazy.ı want to use Firefox OS like using Firefox at PC at my Mobil device.ı want a tablet with Firefox OS.thanks.good works.

  • I do not want all of the playlists in iTunes to be synced to my iPhone. With iCloud I do not seem to have a choice. How do I select only certain playlists for my iPone?

    I have many songs and playlists in my iTunes account.  I do not want all of them synced to my iPhone 5S, but that has happened via iCloud, and it has caused a storage problem on my phone.  How do I select only certain playlists to be synced to my iPhone? 

    You need to start over with Music. On the iPhone Music screen uncheck sync music. Also, on the Summary screen uncheck "Manually manage music and videos", then sync and it should clear off your phone.
    Next, choose the music you want to sync. If you want to fit more on check "Convert higher bit rate songs to 128 kbps AAC". This will reduce quality slightly, but it won't be noticable unless you are using $300 headphones.

  • Out of the blue, unable to open Word attachment in Mail with double click. Have to Right click, open with, select Microsoft Word. Am running Snow Leopard and Microsoft Office for Mac 08. Cheers

    Out of the blue, am unable to open Word attachments in Mail with the usual double click. (Get a longwinded error message)
    Need to right click, select open with, and select Microsoft Word. Have been using Microsoft Office for Mac 08 for years.
    I have reinstalled the Office software. A couple of tech people have been unable to fix it. Any suggestion?? debsuemy

    Please re-post in the Office for Mac Product Forums .

  • When double clicking a word with an adjacent br Firefox is reporting the endContainer of the selected range as the parent div, but when selecting with a mouse drag Firefox reports the endContainer is a text node. Is this expected behavior?

    Double click on break and the end container appears to be the parent div, but if you select just break with mouse the end container is a text node. If you continue to drag your mouse past the end of break you also get the parent div. Sample html:<br />
    <br />
    <pre><nowiki><!doctype html>
    <html>
    <body>
    <div id="surroundingDiv1">
    Break<br/>
    </div>
    <p>
    <a href="#" onclick="showSelectionInfo()">Show Selection Info</a>
    </p>
    <label for="output"></label><textarea id="output" rows="20" cols="50"></textarea>
    <script>
    function showSelectionInfo() {
    var range = null;
    var sel = window.getSelection();
    if (sel.rangeCount > 0 && sel.getRangeAt(0).toString() != "") {
    range = sel.getRangeAt(0);
    if (range != null) {
    document.getElementById("output").innerHTML =
    "Text: " + range.toString() +
    "\n\nendContainer - " +
    "\n\tid: " + range.endContainer.id +
    "\n\tnodeName: " + range.endContainer.nodeName +
    "\n\tnodeValue: " + range.endContainer.nodeValue +
    "\n\tnodeType: " + range.endContainer.nodeType +
    "\n\nstartContainer - " +
    "\n\tid: " + range.startContainer.id +
    "\n\tnodeName: " + range.startContainer.nodeName +
    "\n\tnodeValue: " + range.startContainer.nodeValue +
    "\n\tnodeType: " + range.startContainer.nodeType;
    </script>
    </body>
    </html></nowiki></pre>

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • Can a dblink be created with select only privilege

    I have created dblink from one instance to another instance.With dblink we can perform dml operations on a table.But i want to restrict insert,update,delete rights and grant only select.Is this possible

    my problem is there is a user named ABC in mango instance with >insert,update,delete privs.
    there is another user CDE in apple instance with insert,update,delete privs.
    Now i have created a dblink on user ABC to CDE as a fixed user.So now user >ABC can do all insert,update,delete operations on user CDE tables.This I want to >restrict.I want user ABC to just view CDE tables instead of update,insert and >delete operations. Create a new user CDE1 and grant select only privilege on all tables of CDE.
    create a dblink using CDE1 this will solve the issue?
    Justin explains the same in his previous reply.
    HTH

Maybe you are looking for