I have monthly revenue tables; with a new one created every month.
SELECT * FROM sampledb.revenue_201106;
SELECT * FROM sampledb.revenue_201105;
SELECT * FROM sampledb.revenue_201104;
I'd like to query only the last two month's tables. Is there a "smart" way to select these tables only?
i.e. SELECT * FROM sampledb.revenue_2011[MM];
Thanks,
SELECT * FROM sampledb.revenue_201106;
SELECT * FROM sampledb.revenue_201105;
SELECT * FROM sampledb.revenue_201104;
I'd like to query only the last two month's tables. Is there a "smart" way to select these tables only?
i.e. SELECT * FROM sampledb.revenue_2011[MM];
Thanks,