1
jy02201949 2014-08-20 22:30:27 +08:00 1
这上面有你跑的SQL语句?我读书少你不要骗我
|
2
msg7086 2014-08-21 06:30:43 +08:00 1
这上面有你问的问题?我读书少你不要骗我
|
3
javaluo 2014-08-21 08:59:13 +08:00 via Android 1
我读书少你不要骗我 获取差值的绝对最大值?
比如state不需要你干嘛放出来 |
4
javaluo 2014-08-21 09:08:48 +08:00 via Android 1
select Pro_id,Pro_name,max(abs(price-baseprice))
from (select Pro_id, Pro_name,min(price) as baseprice from price_table a join pro_table b on a.Pro_id=b.Id group by Pro_id,Pro_name) m join price_table n on m.Pro_id=n.Pro_id group by Pro_id,Pro_name 飞机要起飞了 还没写完 回头再说 |