Format MYSQL query

I am new to Graffana, I have a use-case that is based on mysql like I am having metrics table created everyday in mysql for eg for day 23-02-2019 the format of the table is traffic_summary_23_02_2019 and for day 24-02-2019 the table is traffic_summary_24_02_2019. So is there any possible way to rollover the table in grafana dashboard