Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2009
    Posts
    20

    Question Unanswered: Getting certain letters. TRIM function?

    I have results of a column where the cities and states appear such as: Los Angeles, CA.

    How can I retrieve only the state's abbreviation?

    I'm using Oracle 10g, SQL Plus.

    Thanks.

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    SUBSTR

    Your answer is just a few clicks beyond the URL below.
    Search and Download Oracle Database, Application Server, and Collaboration Suite Documentation
    Let us know when you have found your answer.
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Apr 2009
    Posts
    20
    I'll check it out. Thanks for the link.

  4. #4
    Join Date
    Apr 2009
    Posts
    20
    SUBSTR worked perfectly. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •