http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#Gro
up_by_functions

max(x) works with the group by clause.

> -----Original Message-----
> From: Roman Arefiev [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 02, 2001 10:25 AM
> To: [EMAIL PROTECTED]
> Subject: Max value
>
>
> Hello, I'm a newbie in MySql, it would be great if you can help me ..
> the problem is :
> I have a Mysql table like:
>
> create table users (user varchar(20), debt int(10));
>
> How can I select user with the greatest value of debt ?
> I have this function (max) in MS Access database and it works perfectly.
> I've read all docs about MySql, but I couldn't find the same function in
> MySql.
> If it is difficult to you, can you supply me with the exact SQL-query (for
> this example).
>
> Thanx a lot,
> sorry for my English,
> Roman Arefiev,
> Sochi. Russia.
>
>
>
> ---------------------------------------------------------------------
> 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
>
>
>


---------------------------------------------------------------------
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