2011-05-10 58 views

回答

2

沒有更多的信息,這樣的事情應該工作:

select brand, avg(price) 
from cars 
where brand in ('brand1', 'brand2') 
group by brand 
4
SELECT brand, avg(price) 
    FROM cars 
    WHERE brand IN ('SAAB', 'Volvo') 
    GROUP BY brand