Tedious stored procedure example. I was wondering if anyone would be able to help me make the equ...