mysql - Trying to select all fields in a row with the lowest MIN( ) -
i'm having trouble trying select lowest price , unique url that's in same row, @ moment it's getting unique_url first row.
select min( price ), `unique_url` `product_price` `barcode` = '" . $product_barcode . "' , `active` = '1' group `user_id` order `price` asc limit 1
help!
try this
select min( price ) mprice, `unique_url` `product_price` `barcode` = '" . $product_barcode . "' , `active` = '1' group `user_id` order mprice asc limit 1
Comments
Post a Comment