CIS 323 Exam 2

5.0(1)
studied byStudied by 24 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/51

flashcard set

Earn XP

Description and Tags

CIS 323 with Eric Sutherland. Based on the slides/textbook

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

52 Terms

1
New cards

relation

named, two-dimensional table of data. consists of rows (records) and columns (attributes)

2
New cards

requirements for a relation

  • unique name

  • be atomic

  • row must be unique

  • attributes must have unique names

  • order of columns/rows are irrelevant

3
New cards

primary keys

unique identifiers of a relation

4
New cards

foreign keys

identifiers that enable a dependent relation

5
New cards

domain constraints

allowable values for an attribute

6
New cards

entity integrity

no primary key attribute may be null. all primary key fields must contain data values.

7
New cards

referential integrity

rule that states that any foreign key value must match a primary key value in the relation of the one side

8
New cards

data normalization

primary tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of data

9
New cards

first normal form

no multivalued attributes; every attribute value is atomic

10
New cards

second normal form

1NF plus every non-key attribute is fully functionally dependent on the entire primary key

11
New cards

third normal form

2NF plus no transitive dependencies (functional dependencies on non primary key attributes)

12
New cards

relational database management systems (RDBMS)

a database management system that manages data as a collection of tables in which all relationships are represented by common values in related tables

13
New cards

benefits of a standardized relational language

  • reduced training costs

  • productivity

  • application portability

  • application longevity

  • reduced dependence on a single vendor

  • cross-system communication

14
New cards

SQL data types

  • strings

  • binary

  • number

  • temporal

  • boolean

15
New cards

SQL environment

  • catalog - description of the database

  • schema - contains desc. of objects created by the user (tables, views, constraints)

  • data definition language (DDL) - creating, altering, dropping tables; establishing constraints

  • data manipulation language (DML) - maintain and query a database

  • data control language (DCL) - control a database; administering privileges and committing data

16
New cards

join

relational operation that causes two or more tables with a common domain to be combined into a single table or view

17
New cards

equi-join

a join in which the joining condition is based on equality between values in the common columns; common columns appear redundantly in the result table

18
New cards

natural (inner) join

an equi-join in which one of the duplicate columns is eliminated in the result table

19
New cards

outer join

join in which rows that do not have matching values in common columns are nonetheless included in the result table

20
New cards

union join

includes all data from each table that was joined

21
New cards

subquery

placing an inner query (SELECT statement) inside an outer query. they can be non-correlated (executed once for the entire outer query) or correlated (executed once for each row returned by the outer query)

22
New cards

dynamic view

a “virtual table“ created dynamically upon request by a user. no data is actually stored; instead data from base table made available to the user

23
New cards

materialized view

copy or replication of data, data is actually stored. must be refreshed periodically to match corresponding base tables

24
New cards

advantages of dynamic views

  • simplify query commands

  • assist with data security

  • enhance programming productivity

  • contain most current base table data

  • use little storage space

  • provide customized view for user

  • established physical data independence

  • use processing time each time view is referenced

  • may or may not be directly updateable

25
New cards

routines

program modules that execute on demand

26
New cards

functions

routines that return values and take input parameters

27
New cards

procedures

routines that do not return values and can take input or output parameters

28
New cards

triggers

routines that execute in response to a database event

29
New cards

data dictionary facilities

  • system tables that store metadata

  • users usually can view some of these tables

  • users are restricted from updating them

30
New cards

SQL extensions

  • user-defined data types (UDT) - subclasses of standard types or an object type

  • analytical functions (for OLAP)

  • new data types

  • CREATE TABLE LIKE

  • MERGE

  • programming extensions

31
New cards

data structure

tables (relations), rows, columns

32
New cards

data manipulation

powerful SQL operations for retrieving and modifying data

33
New cards

data integrity

mechanisms for implementing business rules that maintain integrity of manipulated data

34
New cards

fat client

client PC that is responsible for processing presentation logic, extensive application and business rules logic, and many DBMS functions

35
New cards

thin client

an application where the client (PC) accessing the application primarily provides the user interfaces and some application processing, usually with no or limited local data storage

36
New cards

web application components

  • database server - hosts DBMS

  • web server - receives and responds to browser requests using HTTP protocol

  • application server - software building blocks for creating dynamic web sites

  • web browser - client program that sends web requests and receives web pages

37
New cards

middleware

software that allows an application to interoperate with other software without requiring user to understand and code low-level operations

38
New cards

application program interface (API)

routines that an application uses to direct the performance of procedures by the computer’s operating system

39
New cards

atomic (ACID rules)

transaction cannot be subdivided

40
New cards

consistent (ACID rules)

constraints don’t change from before transaction to after transaction

41
New cards

isolated (ACID rules)

database changes not revealed to users until after transaction has completed

42
New cards

durable (ACID rules)

database changes are permanent

43
New cards

concurrency control

the process of managing simultaneous operations against a database so that data integrity is maintained and the operations do not interfere with each other in a multi-user environment

44
New cards

controlling concurrent access problems

simultaneous access to data can result in interference and data loss

45
New cards

controlling concurrent access solution - concurrency control

managing simultaneous operations against a database so that data integrity is maintained and the operations do not interfere with each other in a multi-user environment

46
New cards

serializability (concurrency control technique)

finish one transaction before starting another

47
New cards

locking mechanisms (concurrency control technique)

data that is retrieved for the purpose of updating is locked for the updater

48
New cards

shared lock

read but no update permitted. used when just reading to prevent another user from placing an exclusive lock on record

49
New cards

exclusive lock

no access permitted. used when preparing to update

50
New cards

deadlock

an impasse that results when two or more transactions have locked common resources, and each waits for the other to unlock their resources

51
New cards

versioning

optimistic approach to concurrency control instead of locking; the system will create a new version of a record instead of replacing the old one

52
New cards

database security

protection of the data against accidental or intentional loss, destruction, or misuse