Hi Imran and welcome to the InfoPath Dev forums.
Code is typically what you need to work with repeating data in the way you described.
We have actaully created a tool called qRules that lets you leverage code we have written already to work with repeating tables and delete/insert. You don't actually need to know code to use qRules, you use the InfoPath rules to call the code. You can find the product here: http://www.qdabra.com/en/products/qRules.aspx
We have a free trial version (time limited) so you should be able to try it out and see how it works.
Ted