Skip to content
Advertisement

How can I select data from last 13 months?

I have two tables with exactly same structure

Now I need to ‘union all’ these two tables and I want only last 13 month data every time I run below query

I have to run this every month and need only last 13 month data. How can I apply the filter? I have a date column ‘date’ in both the tables.

Advertisement

Answer

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement