DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: SQL query Very urgent

  1. #1
    Join Date
    Jul 2001
    Posts
    334
    Hi,
    we have more than 3000 vendors stored in a table 'VENDOR', the name of the column 'VENDOR_NAME' width 80. I need to find the vendor who is containing maximum # of charecters.

    Please advise by writing query.

    Thanks
    aph.

  2. #2
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    select vendor_name, max(lenght(vendor_name)) from vendor;

  3. #3
    Join Date
    Jul 2001
    Posts
    334
    Thanks for the soloution

Posting Permissions

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


Click Here to Expand Forum to Full Width