On Monday 17 February 2003 04:20, Lewis Watson wrote:

> I have a table with three fields. In the first field I have a range of
> numbers 1-20; all repeated more than once. In the third field I have a
> number ranging from 10000 to 200000 in each row. I need to choose the
> lowest amount in the third column for each distinct value in the fist
> column. Will someone help me out with this query?

Something like:

SELECT MIN(third_column) FROM table_name GROUP BY first_column;



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to