Rather than writing 3 stored procedures, I'd like to write a single one with some conditional logic in the WHERE clause. However, what I wrote (based upon bits and pieces of code samples I found) ...