I have been trying to write a SQL in TERR in Data Function Window of Spotfire. I have 2 tables in Spotfire (Teradata and Xls). I have to join the both on common columns (left) and then perform an aggregation. I pulled the column that i needed from the xls into the teraData Table via Insert>>Columns option. Now the sql that I want to run is: "SELECT prod,sub_prod,year,month,week,count(id)/avg(rate) cnt FROM ip1 group by prod,sub_prod,year,month,week"
When I just say op1 <- sqldf("SELECT prod,sub_prod,year,month,week,count(id)/avg(rate) cnt FROM ip1 group by prod,sub_prod,year,month,week") It throws an error. "TIBCO Spotfire Statistics Services returned an error: 'Error in library(sqldf) : there is no package called 'sqldf''"
What am I doing wrong?
Regards, Subro
Assuming you have statistic service installed for deployment...https://docs.tibco.com/products/tibco-spotfire-statistics-services-7-5-0
This should resolve your error.