Hey Damon
Thanks for your reply and i appreciate your time and i did liked your code anyways my lead wants me to remove all the cursors use something else instead of cursor's so i dont want any cursor's
Thanks
if you can provide a solution without any cursor would be a great help