Database Management System Chapter 8 – Flashcards

Unlock all answers in this set

Unlock answers
question
inner join
answer
a join operation in which only rows that meet a given criterion are selected. the join criterion can be an equality condition (natural join or equijoin) or an inequality condition (theta join). the most commonly used type of join
question
outer join
answer
a join operation that produces a table in which all unmatched pairs are retained; unmatched values in the related table are left null
question
cross join
answer
a join that performs a relational product (or Cartesian product) of two tables
question
correlated subquery
answer
a subquery that executes once for each row in the outer query
question
set-oriented
answer
dealing with or related to sets, or groups of things. in the relational model, SQL operators are this because they operate over entire sets of rows and columns at once
question
union-compatible
answer
two or more tables that share the same number of columns and have columns with compatible data types or domains
question
view
answer
a virtual table based on a SELECT query that is saved as an object in the database
question
base table
answer
the table on which a view is based
question
CREATE VIEW
answer
a SQL command that creates a logical, "virtual" table. the view can be treated as a real table
question
batch update routine
answer
a routine that pools transactions into a single group to update a master table in a single operation
question
updatable view
answer
a view that can update attributes in base tables that are used in the view
question
persistent stored module (PSM)
answer
a block of code with standard SQL statements and procedural extensions that is stored and executed at the DBMS server
question
Procedural Language SQL (PL/SQL)
answer
an Oracle-specific programming language based on SQL with procedural extensions designed to run inside the Oracle database
question
anonymous PL/SQL block
answer
a PL/SQL block that has not been given a specific name
question
trigger
answer
a procedural SQL code that is automatically invoked by the relational database management system when a data manipulation event occurs
question
statement-level trigger
answer
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
question
row-level trigger
answer
a trigger that is executed once for each row affected by the triggering SQL statement. requires the use of the FOR EACH ROW keywords in the trigger declaration
question
stored procedure
answer
(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
question
cursor
answer
a specific construct used in procedural SQL to hold the data rows returned by a SQL query. may be considered a reserved area of memory in which query output is stored, like an array holding columns and rows. are held in a reserved memory area in the DBMS server, not in the client computer
question
implicit cursor
answer
a cursor that is automatically created in procedural SQL when the SQL statement returns only one row
question
explicit cursor
answer
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
question
stored function
answer
a named group of procedural and SQL statements that returns a value, as indicated by a RETURN statement in its program code
question
embedded SQL
answer
SQL statements contained within application programming languages such as COBOL, C++, ASP, Java, and ColdFusion
question
host language
answer
any language that contains embedded SQL statements
question
static SQL
answer
a style of embedded SQL in which the SQL statements do not change while the application is running
question
dynamic SQL
answer
an environment in which the SQL statement is not known in advance, but instead is generated at run time. a program can generate the SQL statements that are required to respond to ad hoc queries
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New