[R] Joining R Local Dataset with Table from Database

Madana_Babu madana_babu at infosys.com
Thu Aug 2 23:58:16 CEST 2012


Hi All,

I want to join a table (Dataset) that is created in R with a table that is
in oracle database. Can some one help me in accomplishing this task in R?

Example Code:

library(RODBC)
DB_CONNECT <- odbcConnect("DSN_NAME")

TABLE_JOIN <- sqlQuery(DB_CONNECT, "SELECT * FROM DB_TABLE WHERE COL_1 NOT
IN (SELECT COL_1 FROM DATA_SET_R) ")

Regards,
Madana



--
View this message in context: http://r.789695.n4.nabble.com/Joining-R-Local-Dataset-with-Table-from-Database-tp4638967.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list