Hey Guys,
I've got a table called Outcomes. With 3 columns and 15 rows
1st col 2nd col 3rdcol
outcome date price
There are 15 rows for each record, each row accounts for a different type of outcome
I'm having trouble with MySQL date comparison. I'm looking for some kind of query that will compare
the all date column and only give me the latest date. Then once I have it, captured that particular
row to output. I've looked in http://forums.devshed.com/search.php? and there are methods to
compare two dates but what about 15? Also take into account that sometimes the dates fields are
empty.
I was thinking should I out put everything to a key=>value array then sort it. Or figure out a
query that does all this for me. Any ideas how to tackle this? Thanx.
I've got a table called Outcomes. With 3 columns and 15 rows
1st col 2nd col 3rdcol
outcome date price
There are 15 rows for each record, each row accounts for a different type of outcome
I'm having trouble with MySQL date comparison. I'm looking for some kind of query that will compare
the all date column and only give me the latest date. Then once I have it, captured that particular
row to output. I've looked in http://forums.devshed.com/search.php? and there are methods to
compare two dates but what about 15? Also take into account that sometimes the dates fields are
empty.
I was thinking should I out put everything to a key=>value array then sort it. Or figure out a
query that does all this for me. Any ideas how to tackle this? Thanx.
Comment