Follow the link below to see how I query every month's data from the SQL Server. The variables and tables have been changed, but the structure of the code is identical to what I use.
See the SQL code here.
Follow the link below to view my Khan Academy Projects and Challenges from the "Intro to SQL: Querying and managing data" course. They range from App impersonation to creating tables and everything in between.
See the Khan Academy items here.