Lecture Ch. 4: Relational databases Flashcards

(29 cards)

1
Q

a set up interrelated, centrally coordinated files

A

database

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

intereface betweeen the database and the application programs that access the data

A

Database Management System (DBMS)

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

what are the 4 advantages of database system over a file based system

A
  1. allows for data integration
  2. minimizes data redundancies and inconsistencies
  3. centralized management of the database
  4. seperates the logical view from the physical view
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ways users conceptualize and organize the data

A

logical view

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

how and where the data is stored

A

physical view

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

logical organization of database describing the data elements and their relationships

A

schema

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

how many levels of schema

A

3

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

what are the 3 levels of schema

A
  1. conceptual level of schema
  2. external level schema
  3. internal level schema
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

(which of the 3 levels of schema is this)
organization-wide view of all data elements stored in database and the relationship between them

A

conceptual level schema

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

(which of the 3 levels of schema is this)
set of individual user views of portions of database
* logical views

A

external level schema

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

(which of the 3 levels of schema is this)
low level view describing how/where data is stored
* physical view

A

internal level schema

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

decribes the structure of the database and the data elements stored

A

data dictionary

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

set of commands that all for:
1. creating the database
2. changing the database
3. queerying the database

A

DBMS languages

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

how many DBMS languages

A

3

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

what are the 3 DBMS languages

A
  1. data definition language
  2. data manipulation language
  3. data query language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

(which of the 3 DBMS languages is this)
set of commands use to create the database
* used to create the data dictionary
* used to establish the logical views of different users
* used to set security restriction, limiting where users can go in the database

A

data definition language (DDL)

17
Q

(which of the 3 DBMS languages is this)
set of commands to change the database (updating, inserting or deleting)

A

data manipulation language (DML)

18
Q

(which of the 3 DBMS languages is this)
set of commands used to query or interagate the database

A

data quiery language (DQL)

19
Q

(which of the DBMS languages you would use for this)
used to create the data dictionary

A

data definition language (DDL)

20
Q

abstract representation of the contents of the database

21
Q

represents the contents of the database as being stored in the forms of tables

A

relational data model

22
Q

each row is called a

23
Q

each row in the table contains data about

A

1 instince of the entity

24
Q

each column of the table contains data about

A

a single attribute

25
attribute or combination of contributes that uniquely identify each tuple
primary key
26
every table must have
a primary key
27
an attribute in one table that serves as the primary key in another table - serves to connect the tables in the database
foreign key
28
does every table require a foreign key
no
29
4 key things about tables
1. each cell must be single valued 2. primary key can not be blank 3. foreign keys can be blank, if they arent they must have values that correspond to a primary key in another table 4. all non-key attributes must contain data related to the primary key