152k views
0 votes
How do we store entities and relationships in a tabular form

A) JSON
B) XML
C) CSV
D) Relational database

1 Answer

3 votes

Final answer:

A relational database is the most suitable for storing entities and relationships in a tabular form.

Step-by-step explanation:

In order to store entities and relationships in a tabular form, the most appropriate option would be a relational database. A relational database allows you to create tables that represent entities and define relationships between them using keys.

For example, if you have a database that stores information about students and their courses, you can have a 'students' table and a 'courses' table. The 'students' table can have columns like 'student_id', 'name', and 'age', while the 'courses' table can have columns like 'course_id', 'course_name' and 'student_id' as a foreign key to establish the relationship between students and courses.

This form of tabular representation in a relational database allows for efficient querying and joining of data based on the established relationships.

User Jasmyn
by
7.9k points