Panduranga, people here volunteers time to answer questions but, in general we are not going to do your job - or homework.

If you have specific questions about issues you face as you develop your stored procedure, we will be happy to help.