I am pretty new with databases, I've been working on a school windows forms .NET project in C# and I came to a problem.
I have a table in a SQL Server database with patients (animals) and I need to add a list (unknown length) of vaccines dosages that each patient has gotten. Each animal will have different length and values in its list of vaccines.
Can someone please tell me how can I store the list in the database column?
A core principle of relational database design (database normalization process) is a column should contain atomic data.
Rather than storing multiple values (vaccine dosages) in a column, store those as rows in a separate related table (animal foreign key). That will inherently provide a list of varying and unlimited size.
If you have different types of vaccines, you should probably have additional tables as well.