Meh, sorry. I started with the written statement and then switched to actual SQL and forgot to take that out. :/
For mskey just change "mcMSKEYVALUE" to "mcmskey as mskey". I was taught to always go "mcmskey as mskey", because jobs tend to not work when the result is not "mskey".