Schema | Instance Flashcards

(15 cards)

1
Q

What is a schema in DBMS?

A

A schema is the logical structure or blueprint of a database. It defines how data is organized, including tables, fields, data types, and relationships.

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

What is an instance in DBMS?

A

An instance refers to the actual data stored in the database at a specific moment in time. It represents the current state of the database.

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

What is the difference between schema and instance?

A

Schema is the design or structure of the database, while instance is the actual data stored in the database at a given time.

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

What are the types of schema in DBMS?

A

The types of schema are: 1. Physical Schema (how data is stored physically), 2. Logical Schema (logical structure of the database), and 3. View Schema (user-specific views of the database).

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

What is schema evolution?

A

Schema evolution refers to the process of modifying the database schema over time, such as adding new tables or columns, to accommodate changing requirements.

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

What is an instance snapshot?

A

An instance snapshot is a copy of the database instance at a specific point in time, often used for backups or auditing purposes.

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

What is logical data independence?

A

Logical data independence is the ability to change the logical schema (e.g., adding a new column) without affecting the application programs or external schemas.

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

What is physical data independence?

A

Physical data independence is the ability to change the physical schema (e.g., storage structures) without affecting the logical schema or application programs.

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

Why is schema important in DBMS?

A

Schema is important because it provides a structured framework for organizing data, ensuring data integrity, and defining relationships between data elements.

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

What happens if the schema changes frequently?

A

Frequent schema changes can lead to data inconsistencies, application errors, and increased maintenance overhead. Proper planning is required to minimize disruptions.

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

What is a view schema?

A

A view schema represents a user-specific or application-specific view of the database, often created to simplify data access or restrict access to sensitive information.

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

Can an instance exist without a schema?

A

No, an instance cannot exist without a schema. The schema defines the structure, and the instance is the data that conforms to that structure.

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

What is the role of constraints in a schema?

A

Constraints in a schema enforce rules on the data, such as primary keys (uniqueness), foreign keys (relationships), and data type validations, ensuring data integrity.

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

What is the difference between logical schema and physical schema?

A

Logical schema defines the logical structure of the database (e.g., tables and relationships), while physical schema describes how the data is stored physically (e.g., files and indexes).

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

How does schema evolution impact database performance?

A

Schema evolution can impact performance if not managed properly. For example, adding indexes or partitioning tables can improve performance, while poorly designed changes can degrade it.

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