所以我在下面的SQL中做了一个例子:
SELECT A_NAME,
NVL(ROUND(AVG(CASE
WHEN M_TYPE_NAME = 'OldMarket' THEN A_PRICE END)), 0) AS OldMarket,
NVL(ROUND(AVG(CASE
WHEN M_TYPE_NAME = 'NewMarket' THEN A_PRICE END)), 0) AS NewMarket
FROM PRICE
GROUP BY A_NAME;
我尝试使用
将其更改为R.install.packages("googleVis")
library(googleVis)
如何将两个条件合并为一个?(R中是否可以?)