Results 1 to 4 of 4
  1. #1
    Join Date
    May 2005
    Posts
    37

    Unanswered: Finding the charecters query

    Hi Guys

    I am having problems with a query. I like to find out the number of characters in the longest department name. Not sure how to do this. At first I thought is was max but that displays the number of jobs in the table

    select max(job) Jobs
    from emp

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    why are you querying JOB when the question involves a different field?
    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
    Jun 2004
    Location
    Liverpool, NY USA
    Posts
    2,509
    wHAT EVER THE COLUMN IS, SIMPLY DO

    SELECT MAX(LENGTH(DEPT_NAME)) FROM MY_TABLE;
    Bill
    You do not need a parachute to skydive. You only need a parachute to skydive twice.

  4. #4
    Join Date
    May 2005
    Posts
    37
    Thanks beilstwh

    Know how the character string is done

Posting Permissions

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