I want to store a lot of data (dates) for one row in my database, what is the right way to do that?
I will give an example:
If I have a variaty of fruits, and I want to count during the month, how much fruits I ate, and how much fruits my ate.
This is what I think of doing right now and I'm not sure this is the right and best way:
"Fruit" Table: f_id, f_name (fruit name), f_data (fruit count for each day). Then create a new table called
"Data": dat_id, dat_date, dat_count, dat_friend_count. and connect the unique fruit_id with dat_id. (1 : n)
and whenever I want to get for example: A display of all the apples I ate -> and apple ID is 7, I look up the ID number 7 in the "Data" table, and display them for the user with the dates.
Is this the right way working with this kind of data / table structure?