entity - Difference between entities and relations in databases -


i want know if entity table in database modelling context? , difference between entity , relation? know relation base concept of relational databases , has tabular presentation. entity , relation same thing? note: not confuse relation relshionship.

an entity somting object, can put name entity. relation "link" beetwen entity, can put verb entity, in mcd of databases. exemple :

in mcd dog end entity end part of relation

+-------+                +-----+ |dog    |                |race | |-------|                |-----| |name   |---(part of)----|name | |age    |                +-----+ +-------+    

in mpd mcd become :

+--------+                         +---------+ |tdog    |                         |trace    | |--------|                         |---------| |id_tdog |                      +--|id_trace | |namedog |  +--(trace_to_tdog)--|  |namerace | |agedog  |  |                      +---------+ |fk_trace|<-+ +--------+ 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -