SELECT user_id, currency, SUM( price ) AS totalPrice, created
FROM accounts WHERE user_id IN ( SELECT users.id FROM users
WHERE country_id ='$con_id' )
AND created BETWEEN '2013-02-01' AND '2013-02-28' GROUP BY currency
这个查询给了我类似的结果
Curreny totalPrice
SEK 10
USD 10
我只想从 7 乘以瑞典克朗。我在数据库中只有美元汇率,所以我想在查询中将它乘以7以获得瑞典克朗汇率。我怎样才能在这个查询中做到这一点?