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

    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
    Toronto, Canada
    Quote Originally Posted by 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 | @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