Thanks for the comment. I am not advocating putting any logic in DB. The code still stays in your git repo. I am just trying to demonstrate the power of SQL for simple tasks can be a lifesaver.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.