CH2 Flashcards

1
Q

What is data abstraction ?

A

it is hiding details that are not useful

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

what is a data model?

A

it is a collection of concepts used to describe the structure of a database

DATA MODEL provides the requirement for data abstraction + basic operation for retrieval and update

and specify the behavior of the database application

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

what does the data model provide?

A

1) req for data abstraction
2) basic operations for data retrieval and update
3)specify the behavior of the database application
4) User-defined operations

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

categories of data models:

A

1) high-level or conceptual simple models provide data similar to how users understand it. ex: ER-mode
(used by typical end users)

2) low level or physical: describes details about how data is stored
(used by computer specialists)

3)representational: between conceptual and physical, not too hard to understand by most users and not hard to implement

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

what is a database schema

A

Schema: Defines the structure of data within a specific database.

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

what is a database state?

A

A database state refers to the data stored in the database at a specific point in time

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

what is the difference between initial state and the current state?

A

the initial state is how the database looks when it’s first set up, while the current state is the database as it is right now, after all the modifications.

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

catalog vs schema

A

Catalog:

Think of it as a high-level container or directory that holds multiple schemas.
It provides an overview of the entire database system and contains information about all the schemas and their associated objects (like tables, indexes, etc.).
A catalog helps manage and organize multiple schemas within a single database system.
Schema:

A schema is a specific organizational unit within a catalog.
It defines the structure of data, including tables, fields, and relationships between them.
Schemas are used to group related database objects and manage their organization and access.

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

what is the goal of the 3 schema architecture

A

separates the user application and the physical database to provide:

program data independence
support multiple views

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

what are the 3 levels of schema:

A

internal level (describes the physical storage )
conceptual(describes entities data type and relationships)
external/ view level(user views designed for particular users)

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

what is data independence?

A

Data independence refers to the ability to change the schema at one level without affecting other levels.

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

what are the two types of data independence?

A

logical and physical

logical = change conceptual - no change external

Physical change internal - no change in conceptual

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

what is DDL SDL DML?

A

DDL (Data Definition Language): Defines and manages database structure (e.g., CREATE, ALTER, DROP).

SDL (Storage Definition Language): Specifies how data is physically stored (handled internally by the system).

DML (Data Manipulation Language): Manages and retrieves data (e.g., INSERT, UPDATE, DELETE, SELECT).

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