Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2009
    Posts
    14

    Unanswered: what is the use of max() function on a char field

    The fields of DEPT table are ID int, Description char or varchar


    what is the use/significance/advantage of using max function on a char/varchar field in the following query ?

    select max(Description) from DEPT
    Vikram RM

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Quote Originally Posted by vikram3.r@tcs.com View Post
    what is the use/significance/advantage of ...
    use:== finds highest collating description

    significance:== depends on the business application whether this means anything

    advantage:== easiest way to do it, built right in to SQL
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Tags for this Thread

Posting Permissions

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