我可以在netezza数据库中的sql查询下面运行,但在R中的sqldf包中出错了
> sqldf("SELECT TEXT,
+ VEH_MAKE_NM,
+ NEW_USED_CD,
+ PRODUCT,
+ OVERALL_SUBV_IND,
+ AS_OF_DATE,
+ CATEGORY,
+ ROW_NUMBER() OVER(PARTITION BY TEXT, VEH_MAKE_NM, NEW_USED_CD, PRODUCT, OVERALL_SUBV_IND, AS_OF_DATE ORDER BY CATEGORY DESC) RN_CATEGORY,
+ SUBCATEGORY,
+ ROW_NUMBER() OVER(PARTITION BY TEXT, VEH_MAKE_NM, NEW_USED_CD, PRODUCT, OVERALL_SUBV_IND, AS_OF_DATE ORDER BY SUBCATEGORY DESC) RN_SUBCATEGORY
+ FROM output
+ --GROUP BY 1,2,3,4,5,6")
Error in sqliteSendQuery(con, statement, bind.data) :
error in statement: near "(": syntax error
我认为这可能是因为sqldf包不支持netezza SQL。 R中是否有netezza sql包?
由于