The meta_value is not of an integer type for max to return proper values. You can use mysql cast
method to convert into integers as follows:
SELECT max(cast(meta_value as unsigned)) FROM wp_postmeta WHERE meta_key='price'
The meta_value is not of an integer type for max to return proper values. You can use mysql cast
method to convert into integers as follows:
SELECT max(cast(meta_value as unsigned)) FROM wp_postmeta WHERE meta_key='price'