You Can Do it in SQL, Stop Writing Extra Code for it - DEV Community