Definitions SQL TEST 1 (1) Flashcards Preview

Sql Advanced DataBase > Definitions SQL TEST 1 (1) > Flashcards

Flashcards in Definitions SQL TEST 1 (1) Deck (142)
Loading flashcards...
1
Q

anonymous PL/SQL block

A

A PL/SQL block that has not been given a specific name.

2
Q

base table

A

The table on which a view is based.

3
Q

batch update routine

A

A routine that pools transactions into a single batch to update a master table in a single operation.

4
Q

correlated subquery

A

A subquery that executes once for each row in the outer query.

5
Q

CREATE VIEW

A

A SQL command that creates a logical, virtual table based on stored end-user tables. The view can be treated as a real table.

6
Q

cross join

A

A join that performs a relational product of two tables.

7
Q

cursor

A

A special construct used in procedural SQL to hold the data rows returned by a SQL query. A cursor may be considered a reserved area of memory in which query output is stored, like an array holding columns and rows. Cursors are held in a reserved memory area in the DBMS server, not in the client computer.

8
Q

dynamic SQL

A

An environment in which the SQL statement is not known in advance, but instead is generated at run time. In a dynamic SQL environment, a program can generate the SQL statements that are required to respond to ad hoc queries.

9
Q

embedded SQL

A

SQL statements contained within application programming languages such as COBOL, C++, ASP, Java, and ColdFusion.

10
Q

explicit cursor

A

In procedural SQL, a cursor created to hold the output of a SQL statement that may return two or more rows, but could return zero or only one row.

11
Q

host language

A

Any language that contains embedded SQL statements.

12
Q

implicit cursor

A

A cursor that is automatically created in procedural SQL when the SQL statement returns only one value.

13
Q

inner join

A

A join operation in which only rows that meet a given criterion are selected. The join criterion can be an equality condition or an inequality condition. The inner join is the most commonly used type of join. Contrast with outer join.

14
Q

outer join

A

A relational algebra JOIN operation that produces a table in which all unmatched pairs are retained; unmatched values in the related table are left null. Contrast with inner join.

15
Q

persistent stored module (PSM)

A

A block of code with standard SQL statements and procedural extensions that is stored and executed at the DBMS server.

16
Q

Procedural Language SQL (PL/SQL)

A

A type of SQL that allows the use of procedural code and in which SQL statements are stored in a database as a single callable object that can be invoked by name.

17
Q

row-level trigger

A

A trigger that is executed once for each row affected by the triggering SQL statement. A row-level trigger requires the use of the FOR EACH ROW keywords in the trigger declaration.

18
Q

set-oriented

A

Dealing with or related to sets, or groups of things. In the relational model, SQL operators are set-oriented because they operate over entire sets of rows and columns at once.

19
Q

statement-level trigger

A

A SQL trigger that is assumed if the FOR EACH ROW keywords are omitted. This type of trigger is executed once, before or after the triggering statement completes, and is the default case.

20
Q

static SQL

A

A style of embedded SQL in which the SQL statements do not change while the application is running.

21
Q

stored function

A

A named group of procedural and SQL statements that returns a value, as indicated by a RETURN statement in its program code.

22
Q

stored procedure

A

1- A named collection of procedural and SQL statements. 2- Business logic stored on a server in the form of SQL code or another DBMS-specific procedural language.

23
Q

trigger

A

A procedural SQL code that is automatically invoked by the relational database management system when a data manipulation event occurs.

24
Q

union-compatible

A

Two or more tables that share the same column names and have columns with compatible data types or domains.

25
Q

updatable view

A

A view that can update attributes in base tables that are used in the view.

26
Q

view

A

A virtual table based on a SELECT query.

27
Q

bottom-up design

A

A design philosophy that begins by identifying individual design components and then aggregates them into larger units. In database design, the process begins by defining attributes and then groups them into entities. Compare to top-down design.

28
Q

boundaries

A

The external limits to which any proposed system is subjected. These limits include budgets, personnel, and existing hardware and software.

29
Q

centralized design

A

A process in which a single conceptual design is modeled to match an organization’s database requirements. It is typically used when a data component consists of a relatively small number of objects and procedures. Compare to decentralized design.

30
Q

clustered table

A

A storage technique that stores related rows from two related tables in adjacent data blocks on disk.

31
Q

cohesivity

A

The strength of the relationships between a module’s components. Module cohesivity must be high.

32
Q

computer-aided systems engineering (CASE)

A

Tools used to automate part or all of the Systems Development Life Cycle.

33
Q

conceptual design

A

A process that uses data-modeling techniques to create a model of a database structure that represents real-world objects as realistically as possible. The techniques are both software- and hardware-independent.

34
Q

database development

A

The process of database design and implementation.

35
Q

database fragment

A

A subset of a distributed database. Although the fragments may be stored at different sites within a computer network, the set of all fragments is treated as a single database.

36
Q

Database Life Cycle (DBLC)

A

A cycle that traces the history of a database within an information system. The cycle is divided into six phases: initial study, design, implementation and loading, testing and evaluation, operation and maintenance, and evolution.

37
Q

database role

A

A set of database privileges that could be assigned as a unit to a user or group.

38
Q

decentralized design

A

A process in which conceptual design is used to model subsets of an organization’s database requirements. After verification of the views, processes, and constraints, the subsets are then aggregated into a complete design. Such modular designs are typical of complex systems in which the data component has a relatively large number of objects and procedures. Compare to centralized design.

39
Q

description of operations

A

A document that provides a precise, detailed, up-to-date, and thoroughly reviewed description of the activities that define an organization’s operating environment.

40
Q

differential backup

A

A level of database backup in which only the last modifications to the database are copied.

41
Q

full backup (database dump)

A

A complete copy of an entire database saved and periodically updated in a separate memory location. A full backup ensures a full recovery of all data after a physical disaster or database integrity failure.

42
Q

information system

A

A system that provides for data collection, storage, and retrieval; facilitates the transformation of data into information; and manages both data and information. An information system is composed of hardware, the DBMS and other software, databases, people, and procedures.

43
Q

logical design

A

A stage in the design phase that matches the conceptual design to the requirements of the selected DBMS and is therefore software-dependent. Logical design is used to translate the conceptual design into the internal model for a selected database management system, such as DB2, SQL Server, Oracle, IMS, Informix, Access, or Ingress.

44
Q

minimal data rule

A

Defined as All that is needed is there, and all that is there is needed. In other words, all data elements required by database transactions must be defined in the model, and all data elements defined in the model must be used by at least one database transaction.

45
Q

module

A

1 - A design segment that can be implemented as an autonomous unit, and is sometimes linked to produce a system. 2 - An information system component that handles a specific function, such as inventory, orders, or payroll.

46
Q

module coupling

A

The extent to which modules are independent of one another.

47
Q

physical design

A

A stage of database design that maps the data storage and access characteristics of a database. Because these characteristics are a function of the types of devices supported by the hardware, the data access methods supported by the system physical design are both hardware- and software-dependent.

48
Q

scope

A

The part of a system that defines the extent of the design, according to operational requirements.

49
Q

systems analysis

A

The process that establishes the need for an information system and its extent.

50
Q

systems development

A

The process of creating an information system.

51
Q

Systems Development Life Cycle (SDLC)

A

The cycle that traces the history of an information system. The SDLC provides the big picture within which database design and application development can be mapped out and evaluated.

52
Q

top-down design

A

A design philosophy that begins by defining the main structures of a system and then moves to define the smaller units within those structures. In database design, this process first identifies entities and then defines the attributes within the entities. Compare to bottom-up design.

53
Q

transaction log backup

A

A backup of only the transaction log operations that are not reflected in a previous backup copy of the database.

54
Q

virtualization

A

A technique that creates logical representations of computing resources that are independent of the underlying physical computing resources.

55
Q

atomic transaction property

A

A property that requires all parts of a transaction to be treated as a single, logical unit of work in which all operations must be completed to produce a consistent database.

56
Q

binary lock

A

A lock that has only two states: locked and unlocked. If a data item is locked by a transaction, no other transaction can use that data item.

57
Q

checkpoint

A

In transaction management, an operation in which the database management system writes all of its updated buffers to disk.

58
Q

concurrency control

A

A DBMS feature that coordinates the simultaneous execution of transactions in a multiprocessing database system while preserving data integrity.

59
Q

consistency

A

A database condition in which all data integrity constraints are satisfied. To ensure consistency of a database, every transaction must begin with the database in a known consistent state. If not, the transaction will yield an inconsistent database that violates its integrity and business rules.

60
Q

consistent database state

A

A database state in which all data integrity constraints are satisfied.

61
Q

database recovery

A

The process of restoring a database to a previous consistent state.

62
Q

database request

A

The equivalent of a single SQL statement in an application program or a transaction.

63
Q

database-level lock

A

A type of lock that restricts database access to the owner of the lock and allows only one user at a time to access the database. This lock works for batch processes but is unsuitable for online multiuser DBMSs.

64
Q

deadlock

A

A condition in which two or more transactions wait indefinitely for the other to release the lock on a previously locked data item.

65
Q

deferred update

A

In transaction management, a condition in which transaction operations do not immediately update a physical database.

66
Q

dirty read

A

In transaction management, when a transaction reads data that is not yet committed.

67
Q

diskpage

A

In permanent storage, the equivalent of a disk block, which can be described as a directly addressable section of a disk. A diskpage has a fixed size, such as 4K, 8K, or 16K.

68
Q

durability

A

The transaction property that indicates the permanence of a database’s consistent state. Transactions that have been completed will not be lost in a system failure if the database has proper durability.

69
Q

exclusive lock

A

A lock that is reserved by a transaction. An exclusive lock is issued when a transaction requests permission to update a data item and no locks are held on that data item by any other transaction. An exclusive lock does not allow other transactions to access the database.

70
Q

field-level lock

A

A lock that allows concurrent transactions to access the same row as long as they require the use of different fields within that row. This type of lock yields the most flexible multiuser data access but requires a high level of computer overhead.

71
Q

immediate update

A

A database update that is performed immediately during a transaction’s execution, even before the transaction reaches its commit point.

72
Q

inconsistent retrievals

A

A concurrency control problem that arises when a transaction-calculating summary functions over a set of data while other transactions are updating the data, yielding erroneous results.

73
Q

isolation

A

A property of a database transaction in which a data item used by one transaction is not available to other transactions until the first one ends.

74
Q

lock

A

A device that guarantees unique use of a data item in a particular transaction operation. A transaction requires a lock prior to data access; the lock is released after the operation’s execution to enable other transactions to lock the data item for their own use.

75
Q

lock granularity

A

The level of lock use. Locking can take place at the following levels: database, table, page, row, and field.

76
Q

lock manager

A

A DBMS component that is responsible for assigning and releasing locks.

77
Q

lost updates

A

A concurrency control problem in which data updates are lost during the concurrent execution of transactions.

78
Q

monotonicity

A

A quality that ensures that timestamp values always increase.

79
Q

mutual exclusive rule

A

A condition in which only one transaction at a time can own an exclusive lock on the same object.

80
Q

nonrepeatable read

A

In transaction management, when a transaction reads a given row at time t1, then reads the same row at time t2, yielding different results because the original row may have been updated or deleted.

81
Q

optimistic approach

A

In transaction management, a concurrency control technique based on the assumption that most database operations do not conflict.

82
Q

page-level lock

A

In this type of lock, the database management system locks an entire diskpage, or section of a disk. A diskpage can contain data for one or more rows and from one or more tables.

83
Q

pessimistic locking

A

The use of locks based on the assumption that conflict between transactions is likely.

84
Q

phantom read

A

In transaction management, when a transaction executes a query at time t1, then runs the same query at time t2, yielding additional rows that satisfy the query.

85
Q

Read Committed

A

An ANSI SQL transaction isolation level that allows transactions to read only committed data. This is the default mode of operations for most databases.

86
Q

Read Uncommitted

A

An ANSI SQL transaction isolation level that allows transactions to read uncommitted data from other transactions, and which allows nonrepeatable reads and phantom reads. The least restrictive level defined by ANSI SQL.

87
Q

redundant transaction logs

A

Multiple copies of the transaction log kept by database management systems to ensure that the physical failure of a disk will not impair the DBMS’s ability to recover data.

88
Q

Repeatable Read

A

An ANSI SQL transaction isolation level that uses shared locks to ensure that other transactions do not update a row after the original query updates it. However, phantom reads are allowed.

89
Q

row-level lock

A

A less restrictive database lock in which the DBMS allows concurrent transactions to access different rows of the same table, even when the rows are on the same page.

90
Q

scheduler

A

The DBMS component that establishes the order in which concurrent transaction operations are executed. The scheduler interleaves the execution of database operations in a specific sequence to ensure serializability.

91
Q

serializability

A

A property in which the selected order of transaction operations creates the same final database state that would have been produced if the transactions had been executed in a serial fashion.

92
Q

serializable

A

An ANSI SQL transaction isolation level that does not allow dirty reads, nonrepeatable reads, or phantom reads; the most restrictive level defined by the ANSI SQL standard.

93
Q

serializable schedule

A

In transaction management, a schedule of operations in which the interleaved execution of the transactions yields the same result as if they were executed in serial order.

94
Q

shared lock

A

A lock that is issued when a transaction requests permission to read data from a database and no exclusive locks are held on the data by another transaction. A shared lock allows other read-only transactions to access the database.

95
Q

table-level lock

A

A locking scheme that allows only one transaction at a time to access a table. A table-level lock locks an entire table, preventing access to any row by transaction T2 while transaction T1 is using the table.

96
Q

timestamping

A

In transaction management, a technique used in scheduling concurrent transactions that assigns a global unique timestamp to each transaction.

97
Q

transaction

A

A sequence of database requests that accesses the database. A transaction is a logical unit of work; that is, it must be entirely completed or abortedno intermediate ending states are accepted. All transactions must have the properties of atomicity, consistency, isolation, and durability.

98
Q

transaction log

A

A feature used by the DBMS to keep track of all transaction operations that update the database. The information stored in this log is used by the DBMS for recovery purposes.

99
Q

two-phase locking

A

A set of rules that governs how transactions acquire and relinquish locks. Two-phase locking guarantees serializability, but it does not prevent deadlocks. The two-phase locking protocol is divided into two phases: 1- A growing phase occurs when the transaction acquires the locks it needs without unlocking any existing data locks. Once all locks have been acquired, the transaction is in its locked point. 2 - A shrinking phase occurs when the transaction releases all locks and cannot obtain a new lock.

100
Q

uncommitted data

A

When you are trying to achieve concurrency control, uncommitted data cause problems with data integrity and consistency. These problems occur when two transactions are executed concurrently and the first transaction is rolled back after the second transaction has already accessed the uncommitted data, thus violating the isolation property of transactions.

101
Q

uniqueness

A

In concurrency control, a property of timestamping that ensures no equal timestamp values can exist.

102
Q

wait/die

A

A concurrency control scheme in which an older transaction must wait for the younger transaction to complete and release the locks before requesting the locks itself. Otherwise, the newer transaction dies and is rescheduled.

103
Q

wound/wait

A

A concurrency control scheme in which an older transaction can request the lock, preempt the younger transaction, and reschedule it. Otherwise, the newer transaction waits until the older transaction finishes.

104
Q

write-ahead-log protocol

A

In concurrency control, a process that ensures transaction logs are written to permanent storage before any database data are actually updated. Also called a write-ahead protocol.

105
Q

write-through technique

A

In concurrency control, a process that ensures a database is immediately updated by operations during the transaction’s execution, even before the transaction reaches its commit point.

106
Q

access plan

A

A set of instructions generated at application compilation time that is created and managed by a DBMS. The access plan predetermines how an application’s query will access the database at run time.

107
Q

automatic query optimization

A

A method by which a DBMS finds the most efficient access path for the execution of a query.

108
Q

b-tree index

A

An ordered data structure organized as an upside-down tree.

109
Q

bitmap index

A

An index that uses a bit array to represent the existence of a value or condition.

110
Q

buffer cache

A

A shared, reserved memory area that stores the most recently accessed data blocks in RAM. A buffer cache takes advantage of a computer’s fast primary memory compared to the slower secondary memory, minimizing the number of input/output operations between primary and secondary memory. Also called data cache.

111
Q

cluster indexed table

A

In a DBMS, a type of table storage organization that stores end-user data and index data in consecutive locations in permanent storage.

112
Q

cluster organized table

A

In a DBMS, a type of table storage organization that stores end-user data and index data in consecutive locations in permanent storage.

113
Q

cost-based optimizer

A

A query optimizer technique that uses an algorithm based on statistics about the objects being accessed, including number of rows, indexes available, index sparsity, and so on.

114
Q

data cache

A

A shared, reserved memory area that stores the most recently accessed data blocks in RAM. Also called buffer cache.

115
Q

data file

A

A named physical storage space that stores a database’s data. It can reside in a different directory on a hard disk or on one or more hard disks. All data in a database are stored in data files. A typical enterprise database is normally composed of several data files. A data file can contain rows from one or more tables.

116
Q

data sparsity

A

A column distribution of values or the number of different values a column can have.

117
Q

database performance tuning

A

A set of activities and procedures designed to reduce the response time of a database systemthat is, to ensure that an end-user query is processed by the DBMS in the minimum amount of time.

118
Q

database statistics

A

In query optimization, measurements about database objects, such as the number of rows in a table, number of disk blocks used, maximum and average row length, number of columns in each row, and number of distinct values in each column. Such statistics provide a snapshot of database characteristics.

119
Q

DBMS performance tuning

A

Activities to ensure that clients’ requests are addressed as quickly as possible while making optimum use of existing resources.

120
Q

dynamic query optimization

A

The process of determining the SQL access strategy at run time, using the most up-to-date information about the database. Contrast with static query optimization.

121
Q

dynamic statistical generation mode

A

In a DBMS, the capability to automatically evaluate and update the database access statistics after each data access.

122
Q

extends

A

In a DBMS environment, refers to the ability of data files to expand in size automatically using predefined increments.

123
Q

function-based index

A

A type of index based on a specific SQL function or expression.

124
Q

hash index

A

An index based on an ordered list of hash values.

125
Q

in-memory database

A

A database optimized to store large portions of the database in primary storage rather than secondary storage.

126
Q

index organized table

A

In a DBMS, a type of table storage organization that stores end-user data and index data in consecutive locations in permanent storage.

127
Q

index selectivity

A

A measure of how likely an index is to be used in query processing.

128
Q

input/output (I/O) request

A

A low-level operation that reads or writes data to and from computer devices such as memory, hard disks, video, and printers.

129
Q

manual query optimization

A

An operation mode that requires the end user or programmer to define the access path for the execution of a query.

130
Q

manual statistical generation mode

A

A mode of generating statistical data access information for query optimization. In this mode, the DBA must periodically run a routine to generate the data access statisticsfor example, running the RUNSTAT command in an IBM DB2 database.

131
Q

optimizer hints

A

Special instructions for the query optimizer that are embedded inside the SQL command text.

132
Q

procedure cache

A

A shared, reserved memory area that stores the most recently executed SQL statements or PL/SQL procedures, including triggers and functions. Also called SQL cache.

133
Q

query optimizer

A

A DBMS process that analyzes SQL queries and finds the most efficient way to access the data. The query optimizer generates the access or execution plan for the query.

134
Q

query processing bottleneck

A

In query optimization, a delay introduced in the processing of an I/O operation that causes the overall system to slow down.

135
Q

RAID

A

An acronym for Redundant Array of Independent Disks. RAID systems use multiple disks to create virtual disks from several individual disks. RAID systems provide performance improvement, fault tolerance, and a balance between the two.

136
Q

rule-based optimizer

A

A query optimization mode based on the rule-based query optimization algorithm.

137
Q

rule-based query optimization algorithm

A

A query optimization technique that uses preset rules and points to determine the best approach to executing a query.

138
Q

SQL cache

A

A shared, reserved memory area that stores the most recently executed SQL statements or PL/SQL procedures, including triggers and functions. Also called procedure cache.

139
Q

SQL performance tuning

A

Activities to help generate a SQL query that returns the correct answer in the least amount of time, using the minimum amount of resources at the server end.

140
Q

static query optimization

A

A query optimization mode in which the access path to a database is predetermined at compilation time. Contrast with dynamic query optimization.

141
Q

statistically based query optimization algorithm

A

A query optimization technique that uses statistical information about a database. The DBMS then uses these statistics to determine the best access strategy.

142
Q

table space

A

In a DBMS, a logical storage space used to group related data. Also known as a file group.