Hi Thanks for the reply.
But for my logic I should definitely write execute immediate statement which is a dynamic statement and is not allowed in Read only procedure.
When i try to include the syntax : reads sql data in my syntax I get an error while activating the procedure stating that execute immediate is not allowed.
Any more thoughts??