403 - Database Flashcards

1
Q

What is the difference between data and information?

A

Data are raw facts; information is processed data that has meaning.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

List three advantages of using a database management system (DBMS) over manual file systems.

A

Improved data sharing, better data security, and efficient data access.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name and briefly describe two types of databases.

A

Relational database (structured into tables) and NoSQL database (handles unstructured data).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the main components of a database environment?

A

Hardware, software, people, procedure, and data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is ‘Big Data’ and why is it important?

A

Big Data is large structured and unstructured data used for analysis and decision-making.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are business rules in the context of database design? Provide an example.

A

Business rules define operational procedures; e.g., a customer can have multiple invoices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define an Entity and give two examples of entities in a university database.

A

An entity is a real-world object; examples: Student, Course.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the difference between a one-to-many and a many-to-many relationship? Give an example for each.

A

One-to-many: one department has many employees; many-to-many: students enroll in many courses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Explain what a conceptual model is and why it is important in database design.

A

A conceptual model visually represents data and relationships to capture requirements accurately.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

List two key objectives that good database design must meet.

A

Integrity and performance are key objectives of good database design.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the purpose of an ERD (Entity Relationship Diagram)?

A

ERD visually shows entities and relationships, helping to design databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Differentiate between composite attributes and multivalued attributes. Give an example of each.

A

Composite attribute: Full Address (street, city, zip); Multivalued attribute: Phone Numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is entity integrity and why is selecting a good primary key important?

A

Entity integrity ensures each table row is uniquely identifiable by a primary key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Briefly explain what inheritance means in the context of ER diagrams.

A

Inheritance allows entities to inherit attributes from a parent entity (e.g., Employee inherits from Person).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is entity clustering and when is it used?

A

Entity clustering groups related entities to simplify complex ERDs during design.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the purpose of normalization in databases?

A

Normalization organizes data to reduce redundancy and improve integrity.

17
Q

Explain the difference between partial dependency and transitive dependency.

A

Partial: attribute depends on part of composite key; Transitive: attribute depends on non-prime attribute.

18
Q

What does the acronym ACID stand for in database normalization? Briefly explain one of the principles.

A

ACID: Atomicity, Consistency, Isolation, Durability. Atomicity ensures all-or-nothing transactions.

19
Q

What is a multi-valued dependency and how is it addressed in normalization?

A

Multi-valued dependency occurs when one attribute depends on another; resolved by creating separate tables.

20
Q

What is the difference between an INNER JOIN and a LEFT OUTER JOIN in SQL?

A

INNER JOIN returns matching rows from both tables; LEFT OUTER JOIN returns all rows from the left table and matching ones from the right.