Re: Updating a record with MAX(value)

2003-07-25 Thread Victoria Reznichenko
Vikram Vaswani <[EMAIL PROTECTED]> wrote: > > Is there a way to update the record with maximum value in a table with > another value? > > I am trying this: > > mysql> update services set sfee = 1 where sfee = max(sfee); > Query OK, 0 rows affected (0.06 sec) > Rows matched: 0 Changed: 0 Warnin

Updating a record with MAX(value)

2003-07-24 Thread Vikram Vaswani
Hi all, Is there a way to update the record with maximum value in a table with another value? I am trying this: mysql> update services set sfee = 1 where sfee = max(sfee); Query OK, 0 rows affected (0.06 sec) Rows matched: 0 Changed: 0 Warnings: 0 But it doesn't make any changes to the data.