Jump to content

[SOLVED] Update Statement


wayne

Recommended Posts

Hi

 

Sorry for simplistic question but new to mysql and having problems figuring how to write an update statement where my select has a group by, wonder if anyone can help as need urgently.

 

I have table called FLATRESULTS

 

column i need to populate with a 'Y' is called FAV

 

Now i need to populate this column for each row with a 'Y' where the racenumber for the row and decodds = min_odds from the query below

 

select racenumber, min(decodds) as min_odds

from flatresults

group by racenumber

 

hope that makes sense, help appreciated.

 

Wayne

 

Link to comment
https://forums.phpfreaks.com/topic/83028-solved-update-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.