1
我正在使用MySQL 5.5。我有一个查询返回这样如何从MySql中的选择查询中选择数据?
quantity| maxPrice| minPrice |avgPrice| counts
"10" "23.50" "23.50" "23.500000" "1"
"15" "15.75" "15.75" "15.750000" "1"
"23" "100.71" "100.71" "100.710000" "1"
"25" "210.00" "200.00" "205.000000" "2"
现在从这个数据我想提取所有计数的最大数量的元组与和
结果......,这样的结果是这样的
quantity| maxPrice| minPrice |avgPrice| counts
"25" "210.00" "200.00" "205.000000" 5
我该如何编写查询?
谢谢,这真的很有帮助,聪明:) – Shreyash
欢迎来到stackoverflow :)。如果您觉得这是正确的答案,请不要忘记接受它。 –