This code sets variables to define a time period (previous calendar month) dynamically changing the SQL statement sent to source