Database Midterm

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/32

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

33 Terms

1
New cards

A person's name, birthdate, and ssn are all examples of...

Attributes

2
New cards

Customers, cars, and parts are examples of:

entities

3
New cards

The number of entity types that participate in a unary relationship is

1

4
New cards

The total quiz points for a student for an entire semester is a(n) ________ attribute

derived

5
New cards

The entity type name should be all of the following except

abbreviated

6
New cards

an entity that associates the instance of one or more entity type and contains attributes specific to the relationship is called a

associative entity

7
New cards

the number of entity types that participate in the relationship is called the

degree

8
New cards

a simultaneous relationship among the instance of 3 entity types is called what kind of relationship

tertiary

9
New cards

a student can attend 5 classes each with a different professor, each professor has 30 students, the relationship between students and professor is a what relationship

many to many

10
New cards

a single occurrence of an entity is called an entity instance

true

11
New cards

which of the following is a generic entity type that has a relationship with one or more suptypes

supertype

12
New cards

an attribute or attribute that uniquely identifies each row in a relation is a

primary key

13
New cards

a primary key that consists of more than one attribute is called a

composite key/ concatenated key

14
New cards

a two-dimensional table of data sometimes is called a

relation

15
New cards

_____ is a component of the relational data model included to specify business rules to maintain the integrity of data when they are manipulated

constraints

16
New cards

which of the following are properties of relations

1. each relation/table has a unique name

2. each attribute/column has a unique name

3. each cell contains a single (atomic) value

4. each row (tuple) is unique

17
New cards

a rule that states each foreign key value must match a primary key value in the other relation is called the

referential integrity constraint

18
New cards

all of the following are goals of normalization except...

maximize storage space

19
New cards

When all multivalued attributes have been removed from a relation, it is said to be in...

First normal form

20
New cards

A relation that contains no multivalued attributes and has nonkey attributes solely dependent on the primary key but contains transitive dependencies is in which normal form?

Second normal form

21
New cards

functional dependencies in which one or more nonkey attributes are functionally dependent on part but not all of the primary key is called a ______ dependency.

partial

22
New cards

functional dependency between two or more nonkey attributes is called a

transitive dependency

23
New cards

Requiring a CustomerID to exist in a Primary table before it can exist in a foreign table is an example of:

referential integrity

24
New cards

______ are problems are encountered when removing data with transitive dependency

deletion anomalies

25
New cards

In the SQL language, the ________ statement is used to make table definitions.

create table

26
New cards

________ is a set of commands used to update and query a database.

DML

27
New cards

SQL command for adding one or more new columns to a table

ALTER TABLE table_name

ADD column_name data_type

28
New cards

DDL is typically used during which phases of the development process?

A) Implementation

B) Physical design

C) Analysis

D) All of the above

all of the above

29
New cards

Any create command can be reserved by using ____ command

DROP

30
New cards

INSERT is an example of _____ code

DML

31
New cards

In a SQL statement, which of the following parts states the conditions for row selection?

WHERE

32
New cards

The last part of SQL statement to be read is the ____ statement

ORDER BY

33
New cards

To eliminate duplicate rows in a query, the ________ qualifier is used in the SQL Select command.

DISTINCT