I actually took my university's compiler course at the same time as this DB course, and that was my favorite class out of all four years, hands down. Honestly, the parsing portion of my DB class was helped out by the knowledge I got from the compiler class earlier in the semester, so at least it worked out!
Those compilers classes turned out to be pretty useful. I ended up having to build custom parsers several times in my career... including an SQL parser.