• Attached the proc for your review; please let me know how I can replace the cursors to set based operations.

    Thnks