Is it possible to fetch column2 values for max(column1). help me. I got to find the date corresponding to the max(price) and min(price) in database.
$str="select MAX(psq_price),MIN(psq_price),AVG(psq_price) from crawl_archives where p_id=2570";
I found max , min values from this query.. Need to find the date column corresponding to the maximum price ..
try this