This shows how to run SQL queries using sqldf package in R programming using an example It a simple way of running SQL queries using R on a database for analysts and gives you a chance to perform analyses your data.
This is an example from a Youtube tuitorial (https://www.youtube.com/watch?v=s2oTUsAJfjI) by Randy Zwitch. He use the sqldf package in R that allows one to run SQL queries within R to explain step by step how to query csv files.