I need to build a form to send to several clients. Each client will answer 5 questions, relative to their current suppliers. They will be able to select the suppliers they are working with from a dropdown list and, for each supplier, the client will answer each question ticking a radio button number from 1 to 5 depending on the quality of the service they receive from the supplier. The question are the identical for every supplier.
How to build the Sql table structure for this?
I thought about building two tables, clients and suppliers. The client table has a client per row, which has one column with the name of the client and the other with (an array?) the suppliers they have.
The suppliers table, instead, would be a supplier per row with its name and the 5 questions and the relative answers as columns. The Client table would have the foreign key in the suppliers column, that would communicate with the suppliers table.
The problem is, every client has different entries for the questions column of the suppliers so I don't know how to differentiate the single supplier for each client who will fill the form.
How would your approach be on this?
Thanks in advance
See Question&Answers more detail:os