Question -
how to use apply function or for loop to run this query below over different values
run query
dbgetQuery(conn, " SELECT ID , Name , Date , Product
FROM table xyz
where Year = i ")
where i is years ( 2010 to 2016 )
how to get table.2011 = data for 2011( IDs , Names , Dates , Product) table.2012 = data for 2012( IDs , Names , Dates , Product) and so on..for each year.