Lecture 2 Flashcards

1
Q

data model is

A

a set of concepts that describes the structure of the database, the operations for manipulating these structures and certain constraints that the database should obey

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

T or F

constraints specify some restrictions on valid data these constraints must be enforced at all time.

A

True

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

Data model operations are

A

Operations are used for specifying database retrievals and updates by referring to the constraints of the data model

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

operations may include

  • ……. operations
  • ……operations
A

basic model

user defined

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

Categories of a data models

A
  • conceptual (high level semantic)
    (provides concepts that are close the way many users can perceive data)
  • physical (low-level internal) data model
    (provides concepts that describes details how data is stored in the computer implementations)
  • Implementations (representational) data model
    (provides concepts that are intermediate between conceptual, physical)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Now used data model is

A

relational model

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

what is a database schema?

A

description of database, includes descriptions of the database structure and datatypes and the constraints on the database

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

schema diagram is

A

an illustrative display that illustrates el description

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

schema construct is

A

a component of the schema

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

database state (instance)

A

actual data stored in database at a particular moment in time (occurrence, snapshot)

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

does database state change with each transaction?

A

yes, that’s why it requires a time stamp

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

what is an empty database state?

A

the beginning database after creation immediately with no data

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

what is an initial database state?

A

refers to loading with the initial data into the system

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

what is a valid state?

A

satisfies that structure and constraints (DBMS Is responsible for this)

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

Schema VS State (changes perspective)

A

schema doesnt change frequently

state changes every transaction (every time the database is updated)

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

what is the goal of three schema architecture?

A

to separate the user application from the physical database.

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

DBMS three level

A

internal, conceptual, external schema

  • internal : describe physical storage structure and access paths
  • conceptual : describes the structure and constraints for the whole database for a community of users
  • external: describes the various user views (the part that the user group is interested in )
18
Q

internal schema describes the structure and constraints ?

A

false , it describes physical storage structures and access paths

19
Q

conceptual schema describes the structure and constraints for the whole database?

20
Q

which schema level describes the various user views ?

A

external schema level

21
Q

which schema level describes the physical storage structure and access paths ?

A

internal schema level

22
Q

schema changes with the occurrence of each transaction ?

A

false, schema doesn’t change frequently

23
Q

name the categories or types of data models

A
  • conceptual
  • physical
  • implementations
24
Q

data independence types

A
  • logical

- physical data independence

25
logical data independence is
capacity to change the conceptual schema without changing the external schema and their associated application programs (change el conceptual without the external ) - conceptual cared about the structure - external cared about user views
26
physical data independence is
capacity to change the internal schema without having to change the conceptual schemas (change internal lw7do mn8yr conceptual) [internal describes the physical storage structure and access paths ]
27
internal schema may be changed when certain file structures are reorganized?
yes, internal schema cares about physical storage structure so if you changed the file structure it will change.
28
when a schema at the lower level is changed what is needed to be changed?
only the mapping between this schema and higher-level schema need to be changed in a DBMS
29
if the lower level schema is changed then the application programs need to be changed
false, they needn't be changed since they refer to the external schema
30
DBMS Languages
- Data Definition Language - Data Manipulation Language - Data Control language - Data retrieval languages
31
Data Definition Language is used by
the DBA or Database designers
32
DDL is used to
specify the conceptual schema of a database or the internal and external schemas
33
Storage Definition language is used to
# define internal schema (realized via DBMS commands provided to the DBA and database designers)
34
View Definition Language is used to
define external schema
35
Data Manipulation Languages is used to
specify database retrievals and updates. - it's commands can be embedded in a general purpose programming
36
Stand-alone DML Commands can be applied directly ( named?)
query language
37
Types of DML
``` high level (non procedural) language low level (procedural) language ```
38
the high level language is
set oriented and specify what data to retrieve rather than how to retrieve it can also be called declarative language
39
the low language is
retrieves data one record at a time | constricts such as looping are needed to retrieve multiple records along with positioning pointers
40
PL/SQL is considered a ... language (a) procedural (b) non procedural
(a) procedural, it is considered a low level language created by oracle
41
DBMS interfaces examples
Stand-alone query language interfaces, programmer interfaces for embedding DML in programming languages , user-friendly interfaces, interfaces for the DBA
42
Data Control Language is
roll back and commit