You might be surprised to find out the program you've been outlining and how it's written in SQL aren't so different:

If you'd like to learn how to code in SQL make sure to add it to your favorite tracks.