I'm only really proficient in MySQL and only have access to a MySQL server anyway.
My assumption is that this would be possible, however, I don't really know where I should start or what functions would do it...
I imagine a for/foreach... but don't understand them

so it's a little hard to get started on my own