Swapna,
Thanks for the further explanation.
To be honest, the concept of "maoin heading" and "subheading" shouldn't
come into a discussion about a table. For two reasons. First of all,
no-one should ever see the table. That's not what tables are for.
Tables are for data storage, and in fact the way in which the data is
stored in tables makes it impossible to regulate the order in which
"rows" are displayed. Secondly, if you have groupings such as headings
and subheadings would imply, it really indicates that you have data
elements which have a "one-to-many" relationship with each other. In a
database, this means only one thing - you need two tables, with the data
on the "one" side of the relationship stored in one table, and the data
on the "many" side of the relationship stored in the other. In fact, on
the basis of the information you have provided so far, I would think you
need 3 tables. I am still not sure what your database is all about, but
perhaps a spreadsheet would be more applicable to your requirements?