Good evening, Not sure if this is the correct forum to post this in as I'm farely new to SQL. My question is more about SQL Teradata code and it seems like it'd be a fairly simple answer, but I can't seem to figure it out. below is a segment of the SQL code. What I'm trying to figure out is how to ONLY pull data that is between the first day of the previous month to previous day. I've got the previous day figured out, but am having problems with coding the first day of previous month. Any help is appreciated. . And apologies if this question doesn't belong here. Select vm.visit_date BETWEEN (first day of previous month) AND CURRENT_DATE -1
↧