I'm using RSQLite to combine two tables. I check every single step, but still didn't figure out what went wrong. Here is my script:
ol5_H3K4me1_mesc_common<-dbGetQuery(con,"select* from H3K4me1_mesc where H3K4me1_mesc.V2=H3K4me1_mesc_common.V2 and H3K4me1_mesc.V3=H3K4me1_mesc_common.V3")
Error in sqliteSendQuery(con, statement, bind.data) :
error in statement: no such column: H3K4me1_mesc_common.V2
> dbListFields(con,"H3K4me1_mesc_common")
[1] "V1" "V2" "V3"
In your posted query table
H3K4me1_mesc_common
is not part ofFROM
clause and so is the error. You wanted your query to look like below wheret1
andt2
are table alias for respective tables