A user needs to store customer information including name, address, and order history. Which database type is most appropriate?
Trap 1: Hierarchical database
Hierarchical databases organize data in a tree structure, which is inflexible and not suitable for many-to-many relationships.
Trap 2: Flat-file database
Flat-file databases store data in a single table, leading to redundancy and difficulty in querying related data.
Trap 3: NoSQL database
NoSQL databases are designed for unstructured or semi-structured data, not ideal for structured relational data like customer orders.
- A
Hierarchical database
Why wrong: Hierarchical databases organize data in a tree structure, which is inflexible and not suitable for many-to-many relationships.
- B
Flat-file database
Why wrong: Flat-file databases store data in a single table, leading to redundancy and difficulty in querying related data.
- C
NoSQL database
Why wrong: NoSQL databases are designed for unstructured or semi-structured data, not ideal for structured relational data like customer orders.
- D
Relational database
Relational databases use tables, keys, and relationships to efficiently store and query structured data like customer info and orders.