CIS 323 Exam 2

studied byStudied by 24 people
5.0(1)
Get a hint
Hint

relation

1 / 51

flashcard set

Earn XP

Description and Tags

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

52 Terms

1

relation

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

New cards
2

requirements for a relation

  • unique name

  • be atomic

  • row must be unique

  • attributes must have unique names

  • order of columns/rows are irrelevant

New cards
3

primary keys

unique identifiers of a relation

New cards
4

foreign keys

identifiers that enable a dependent relation

New cards
5

domain constraints

allowable values for an attribute

New cards
6

entity integrity

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

New cards
7

referential integrity

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

New cards
8

data normalization

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

New cards
9

first normal form

no multivalued attributes; every attribute value is atomic

New cards
10

second normal form

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

New cards
11

third normal form

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

New cards
12

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

New cards
13

benefits of a standardized relational language

  • reduced training costs

  • productivity

  • application portability

  • application longevity

  • reduced dependence on a single vendor

  • cross-system communication

New cards
14

SQL data types

  • strings

  • binary

  • number

  • temporal

  • boolean

New cards
15

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

New cards
16

join

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

New cards
17

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

New cards
18

natural (inner) join

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

New cards
19

outer join

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

New cards
20

union join

includes all data from each table that was joined

New cards
21

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)

New cards
22

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

New cards
23

materialized view

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

New cards
24

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

New cards
25

routines

program modules that execute on demand

New cards
26

functions

routines that return values and take input parameters

New cards
27

procedures

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

New cards
28

triggers

routines that execute in response to a database event

New cards
29

data dictionary facilities

  • system tables that store metadata

  • users usually can view some of these tables

  • users are restricted from updating them

New cards
30

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

New cards
31

data structure

tables (relations), rows, columns

New cards
32

data manipulation

powerful SQL operations for retrieving and modifying data

New cards
33

data integrity

mechanisms for implementing business rules that maintain integrity of manipulated data

New cards
34

fat client

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

New cards
35

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

New cards
36

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

New cards
37

middleware

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

New cards
38

application program interface (API)

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

New cards
39

atomic (ACID rules)

transaction cannot be subdivided

New cards
40

consistent (ACID rules)

constraints don’t change from before transaction to after transaction

New cards
41

isolated (ACID rules)

database changes not revealed to users until after transaction has completed

New cards
42

durable (ACID rules)

database changes are permanent

New cards
43

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

New cards
44

controlling concurrent access problems

simultaneous access to data can result in interference and data loss

New cards
45

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

New cards
46

serializability (concurrency control technique)

finish one transaction before starting another

New cards
47

locking mechanisms (concurrency control technique)

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

New cards
48

shared lock

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

New cards
49

exclusive lock

no access permitted. used when preparing to update

New cards
50

deadlock

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

New cards
51

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

New cards
52

database security

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

New cards

Explore top notes

note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 234 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 75 people
... ago
5.0(1)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 111147 people
... ago
4.9(686)

Explore top flashcards

flashcards Flashcard (94)
studied byStudied by 24 people
... ago
5.0(1)
flashcards Flashcard (39)
studied byStudied by 236 people
... ago
4.5(2)
flashcards Flashcard (69)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (237)
studied byStudied by 14 people
... ago
5.0(1)
flashcards Flashcard (100)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (67)
studied byStudied by 34 people
... ago
5.0(2)
flashcards Flashcard (80)
studied byStudied by 9 people
... ago
5.0(1)
robot