Thanx for the replies all of you
I tried it and got the answer. My concept of partitioning was not that sound . But gettin better.!!