D
D
darkglare2020-12-03 10:09:02
SQL
darkglare, 2020-12-03 10:09:02

Is the connection correct?

5fc88dec88a7c176038037.png
There are 3 tables: News, Comment, User

The User table has a one-to-many relationship with the News table (Because one author can post multiple news items)
The Comment table has a one-to-one relationship with the News table (because one comment can be related to one news)
BUT one news item can have multiple comments, then looking at my tables, what is the relationship between the Comment and News tables?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question