An _______ relationship allows a single entity to inherit properties from multiple superclasses.
- Aggregation
- Association
- Dependency
- Inheritance
An Inheritance relationship allows a single entity to inherit properties from multiple superclasses. It is a key concept in object-oriented data modeling, enabling the creation of a more flexible and reusable data model.
The _______ statement in SQL is used to retrieve data from a database.
- DELETE
- INSERT
- SELECT
- UPDATE
The SELECT statement in SQL is used to retrieve data from a database. It allows you to specify the columns you want to retrieve and the conditions for selecting specific rows. This statement is fundamental for querying and extracting information from a database.
One advantage of MySQL Workbench over Microsoft Visio is its built-in support for _______.
- Entity-Relationship Diagrams (ERDs)
- Flowcharts
- Gantt charts
- UML Diagrams
MySQL Workbench has a built-in support for creating Entity-Relationship Diagrams (ERDs), which is an advantage over Microsoft Visio for database design purposes. ERDs are essential for visualizing and planning the relationships between entities in a database.
Dimension tables typically contain _______ data that provides context to the metrics in the fact table.
- Categorical
- Historical
- Numerical
- Predictive
Dimension tables typically contain categorical data that provides context to the metrics in the fact table. Categorical data helps in categorizing and organizing information, allowing for meaningful analysis and reporting. Dimension tables are linked to the fact table through keys, creating a relationship between descriptive information and measurable metrics.
How does a many-to-many relationship affect the database schema?
- It doesn't impact the schema
- It eliminates the need for foreign keys
- It requires the use of a junction table
- It simplifies the schema structure
A many-to-many relationship affects the database schema by necessitating the use of a junction table. This table resolves the complexity of such relationships by breaking them down into two one-to-many relationships, linking the original entities through an intermediary table.
Type 3 Slowly Changing Dimensions (SCD) stores only the _______ value and the _______ value in the dimension table.
- current, original
- current, previous
- latest, former
- new, old
In Type 3 Slowly Changing Dimensions (SCD), only the current value and the previous value are stored in the dimension table. This allows for limited historical tracking by capturing the immediate previous state of the dimension attribute.
In Forward Engineering, what is the initial step after creating a conceptual data model?
- Create a logical data model
- Design the user interface
- Generate a physical data model
- Optimize the database schema
After creating a conceptual data model in Forward Engineering, the next step is to generate a logical data model. The logical data model further refines the structure and relationships before moving on to the creation of the physical data model.
What is the effect of indexing on database performance?
- Decreases performance
- Improves performance for retrieval but slows down updates
- Improves performance for updates but slows down retrieval
- No effect on performance
Indexing in a database improves performance for data retrieval by allowing the system to quickly locate records. However, it may slightly slow down updates due to the need to maintain the index structure whenever data is added, modified, or deleted.
What are the different types of indexing methods available in modern database systems?
- B-Tree, Hashing, Bitmap, and Clustered
- Dense, Sparse, Composite, and Unique
- Linear, Binary, Exponential, and Interpolation
- Primary, Secondary, Clustered, and Non-clustered
The different types of indexing methods in modern database systems include B-Tree, Hashing, Bitmap, and Clustered indexing. Each method serves specific purposes, such as efficient searching and sorting of data.
Which schema is more denormalized: Star Schema or Snowflake Schema?
- Both have the same level of normalization
- Neither is denormalized
- Snowflake Schema
- Star Schema
The Star Schema is more denormalized compared to the Snowflake Schema. In a Star Schema, the dimension tables are directly connected to the fact table, resulting in a simpler and more denormalized structure. This makes query performance better for analytical purposes.