Is there a way to use a data.frame in JOIN condition using sqlQuery()?
I\'m connecting to SQL server using RODBC and need to limit the inital result set against a da
To reference R data in a SQL query over RODBC
, your options are:
paste
or a similar command to print relevant contents of your R dataframe into your SQL queryIn the case of #2 join
would not be the appropriate SQL operation however, since you're passing a string instead of a table. Try using where
, in
, and clauses like that which will work on a string of names in your query as opposed to a table.