database midterm Flashcards

1
Q

purpose of a database

A

to store data

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

instance in a database

A

is a single occurrence within that table eg. a row in the student table

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

attribute

A

is each column in the table

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

microsoft access is a what?

A

Good database for beginners but not for professionals

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

what is the dominant database model

A

relational database model

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

SQL

A

structured query language was developed by IBM in the 70’s. Not a full program language it is a sublanguage.

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

2 categories of SQL

A

data definition language and data manipulation language.

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

Data definition language:

A

statemns used for creating tables, relationships and other structures

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

Data manipulaion language

A

statements used for reading writing deleting and updating records

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

SQL select statement

A

select columnName
from: TableName
Where: conditions

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

How do you select all columns in table

A

asterisk in the select part

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

Entity

A

is some identifiable thing that users want to track: Students, factulty, courses, schools

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

functional dependency

A

ocurs when the value of one attribute determines the value of a second attribute

EX: StudentId is a determinant of name

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

composite determinant

A

a determinant of a functional dependency that consists of more than one attribute

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

Unique determinant:

A

is only when it determines every other column in the relation.

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

Candidate key:

A

is a key that determines all of the other columns in a relation. from the candidate keys one will be the primary key.

17
Q

primary key

A

is a candidate key that is selected to uniquely identify a row in a relation. must be unique

18
Q

Surrogate Key

A

is an artificial column added to a relation to serve as a primary key. this is done with a good PK cannot be found.

19
Q

foreign key

A

is the primary key of one relation that is placed in another relation to form a link between the relations. the foreign key of one table must be a PK in another table

20
Q

Referential integrity constraint

A

limts the foreign key to be a PK in another table

21
Q

multi-valued dependency

A

occurs when a determinant is matched with a particular set of values

22
Q

how do you count the number of rows in a table

A

COUNT (*)

23
Q

when does it not matter if they database is in BCNF or not

A

if it is a updateable database or not

24
Q

how do you copy info to another table?

A

use the command insert into tableName

25
Q

Read-only databases:

A

are nonoperational databases using data extracted from operational databases. used for querying reporting and data mining applications they are never updated.

26
Q

denormalization

A

is the joining of the data in normalized tables prior to storing the data.

27
Q

multivalue, multicolumn problem

A

occurs when multiple values of an attribute are stored in more than one column. solution to this is to use a separate table to store the multiple values

28
Q

inconsistent values

A

occur when different users or different data sources use slightly different forms of the same data value

29
Q

missing values or null value:

A

is a value that has never been provided

30
Q

general purpose remarks column

A

is a column with a name such as remaks comments or notes. it often contains important data stored in an inconsistant verbal way.

31
Q

Data model

A

is a plan or blueprint for a database design

32
Q

entity relationship model

A

is a set of concepts and graphical symbols that can be used to create conceptual schemas

33
Q

attributes:

A

describe an entity’s characteristics. all entity instances of a gien entity class have the same attributes but vary in the value of those attributes.

34
Q

identifiers

A

are attributes that name or identify entity instances.

35
Q

cardinality

A

means count as is expressed as a number it is the number of entity instances that can participate in a relationship. I.E. maximum and minimum cardinality

36
Q

maximum cardinality

A

one-one, one-many, many-many

37
Q

minimum cardinality

A

is the minimum number of entity instances that must participate in a relatioship. usually stated as 0 or 1

38
Q

SQL

A

is internationaly recongnized standard database language that is used by all commercial dbms’s

39
Q

composite identifiers

A

are identifiers that consist of two or more attributes.