Do people often use the word "entity" to refer to what will latter become a table? If yes, isn't this technically incorrect because it's the entity sets that typically become tables?

It seems to me that often times people say entity when they mean entity set. When I see a square on a diagram, that actually represents an entity set right? For example if there were a square that said movies that wouldn't be one particular movie (like an entity) but a collection of movies (entity set), right?

For example this is the first website that came up on Google when I typed in E/R diagram tutorial and it claims that squares represents entities, which is technically wrong.

有帮助吗?

解决方案

The E/R diagram wording is in the singular - e.g. 'A teacher teaches a class'.

So there would be a rectangle for 'teacher', a rectangle for 'class' and a diamond for 'teaches'.

However strictly speaking, yes, the modelling is of the sets, and is translated to tables such that 'teacher' is the table (set) of 'teachers' and 'class' is the table (set) of 'classes' and depending on the cardinality, the 'teaches' would probably be a 'teacher-class' table

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top