I have the following dataframe which contains the AxiomaID.
x<-c(0123, 234, 2348, 345, 3454)
And trying to run the following SQL Query withi
Try the following query:
SQL6<-data.frame(sqlQuery(myConn, paste("SELECT top 10 [AxiomaDate] ,[RiskModelID] ,[AxiomaID] ,[Factor1] FROM [PortfolioAnalytics].[Data_Axioma].[SecurityExposures] Where AxiomaID IN (", paste(x, collapse = ", "), ")")))
Hope it helps!