0
更新

我可以在 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包吗?

谢谢

4

0 回答 0