DB Design Need Suggestions

Approach 1 and 2 Example.docx---DB Design Need Suggestions---
I have Order number XYZ123.
for this order  I have 15 editable grids( A,B,C ..etc
) were user enters data.
The grids are structured as column1 contains lables and remaining columns user enters values. The number of lables may vary for every grid like.
A has 2 columns 10 rows.
B has 3 columns  6 rows.
C has 4 columns  12 rows ...etc
Approach 1: maintain a separate  table for each grid (15 Tables) and write the values by maintaining the primary key of that Order number as relation.

or

Approach 2:Maintain a single table which is combination of all editable grids in a flat file format (Storing the data vertically) so that the number of columns will be constant in the table.
write the values by maintaining the primary key of Order number as relation.

Things to consider:
->We have to build records, where we to show the submitted data in paging Grids.
->After the submition of data user should be able to edit the data through related action(If we store data in single table way like flat file (Storing the data vertically) ,
to get the data and display in the UI again we have to Map the data to existing structure of XSD of the grid.

Please suggest the best approach.

Thanks in advance
 
 
 

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data