• I have sent the stored procedure and SQL query to you in an e-mail.

    Thanks.