By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 1 Duplicates: 0 Warnings: 0
| date(concat(substring_index(qtr,'Q',-1),'-01-01')) + interval substring_index(qtr,'Q',1)*3 month - interval 1 day |
|---|
| 2013-03-31 |