i am new in the SQL field and i have a dumb question. Lets pretend I have a table in my database, which contains the following information:
ID name food
1 Max apple
2 Anne banana
3 Tom kiwi
lets pretend that this is a kindergarden group that ate these foods. 2 Hors later Max ate strawberries and i want ot add this in the list as well. I want the list to look like this:
ID name food
1 Max apple, strawberries
2 Anne banana
3 Tom kiwi
I already tried it with the UPDATE statement in SQL, but all of them want an if statement, which i personally dont understand. Does someone has an idea, how i can do it in one statement? Thanks!