Forum Moderators: open
It is then supposed to be stored in a databse with all the info.
Since we can have different types of order forms and need a way to store and retrieve all user current cases.
I am looking for an opinion on what is the best way to handle such info on the database.
I think the best way is to have on table for all different order types (Rather than having one table per form/order type and having to search all tables when retrieving all user cases/orders).
So what I can think of is either having one table with fields for all possible data and set NULL in the fields which don't apply for a certain form or to have just a DATA column and store the data from the forms as a string (Like "type=mobile;model=#*$!x....") and do string parsing when retrieving the data.
What is considered the best and most effective (In other words 'proper') way to do it?
Thanks
Best Regards
NooK
For more on database normalization see:
[databasejournal.com...]
Would not a table filled with NULL fields be inneficient rather than having one table per order type and getting the proper table according the type of order in the order_type table?
Best Regards
NooK