info <- paste("select count (*) as total
from ANNUAL_CROP a
where a.CROP_TYPE='Rye' and a.GEO = 'Canada'
and a.YEAR = '%1968' ")
query <- sqlQuery(conn,info,believeNRows = FALSE)
query
can i ask how can write sqlQuery in R under the condition with sub value, the original dataset has the year variable as a character and i required to query the total of the rows where CROP_TYPE='Rye' and a.GEO = 'Canada' and a.YEAR = 1968
and this the sample of Annual_crops the original dataset