Section 1

Preview this deck

UNIQUE (attribute)

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (71)

Section 1

(50 cards)

UNIQUE (attribute)

Front

specifies alternate (unique) keys, also known as candidate keys

Back

CLOB

Front

variable-length string data type that is used for large text values, such as documents

Back

Data Definition Language (DDL)

Front

syntax similar for defining data structures, especially database schemas

Back

DELETE

Front

removes tuples from a relation; often used with a WHERE clause that specifies a condition on which to remove tuples

Back

EXCEPT ALL

Front

set operation that returns all rows in the first SELECT statement without removing duplicates that are not returned by the second SELECT statement

Back

CHECK

Front

specifies row-based constraint that is applied to each row individually and checked whenever a row is inserted or modified

Back

CONSTRAINT

Front

used to specify rules for data in a table

Back

qualify

Front

this is what you do when you need to specify an attribute name with a particular table; represented by dot notation

Back

SQL data types

Front

numeric, character string, bit string, Boolean, date, and time

Back

inner join

Front

type of join where tuple is included in the result only if a matching tuple exists in the other relation

Back

DISTINCT

Front

keyword used in SELECT clause to remove duplicate tuples from query result

Back

CASCADE ON UPDATE

Front

change the value of the referencing foreign key attribute(s) to the updated (new) primary key value for all the referencing tuples

Back

CASCADE ON DELETE

Front

delete all the referencing tuples

Back

EXISTS

Front

boolean function added to WHERE clause to select tuples in an outer query based on the empty/non-empty result of a correlated nested query

Back

LEFT OUTER JOIN

Front

every tuple in the left table must appear in the result; if it does not have a matching tuple, it is padded with NULL values for the attributes of the right table

Back

catalog

Front

named collection of schemas

Back

join condition

Front

type of condition that matches a column in one table with a column in another table; usually by the same attribute name

Back

INTERSECT

Front

set operation that only returns the rows selected by all queries

Back

SET NULL, CASCADE, and SET DEFAULT

Front

types of referential triggered actions

Back

GROUP BY

Front

specifies the grouping attributes so that the value resulting from applying each aggregate function to a group of tuples appears along with the value of the grouping attribute(s)

Back

selection condition

Front

type of condition that matches a column in a single table

Back

UPDATE

Front

used to modify attribute values of one or more selected tuples; used with SET and WHERE

Back

BETWEEN

Front

comparison operator used to compare with range of values

Back

EXCEPT

Front

set operation that returns all rows in the first SELECT statement that are not returned by the second SELECT statement; can also be referred to as MINUS because it's applying set difference

Back

NULL types

Front

unknown value, unavailable/withheld value, N/A attribute

Back

CREATE TABLE

Front

specify a new relation by giving it a name and specifying its attributes and initial constraints

Back

UNIQUE (query)

Front

boolean function used in WHERE clause which returns TRUE if there are no duplicate tuples in the result

Back

BLOB

Front

variable-length bitstring data type that is used for large binary values, such as images

Back

select-project-join query

Front

query that involves only selection and join conditions plus projection attributes

Back

base tables

Front

relations declared through CREATE TABLE statements and are stored as a files by the DBMS

Back

UNION

Front

set operation that combines the result sets of 2 or more SELECT statements, removing duplicates

Back

RIGHT OUTER JOIN

Front

every tuple in the right table must appear in the result; if it does not have a matching tuple, it is padded with NULL values for the attributes of the left table

Back

view / virtual tables

Front

relations created through the CREATE VIEW statement and which may or may not correspond to actual physical files; single table that is derived from other tables

Back

SQL schema

Front

identified by a name and includes an authorization identifier to indicate the ownership user or account, as well as descriptors for each element

Back

WITH

Front

allows a user to define a table that will only be used in a particular query

Back

grouping attributes

Front

attributes that tuples in a partition/group share the same value of

Back

mapping

Front

describes the basic form of a SELECT statement and thus, all SQL queries

Back

aggregate functions

Front

used to summarize information from multiple tuples into a single-tuple summary; used in conjunction with grouping, but they can also be applied to all the selected tuples in a query without a GROUP BY clause

Back

INFORMATION_SCHEMA

Front

special schema which provides information on all the schemas in the catalog and all the element descriptors in these schemas

Back

Data Manipulation Language (DML)

Front

computer programming language used for inserting, deleting, and updating data in a database

Back

LIKE

Front

comparison used after an attribute name to match a string

Back

ORDER BY

Front

specifies an order for displaying the result of a query

Back

CROSS JOIN

Front

specifies Cartesian product

Back

INSERT INTO

Front

used to add a single tuple (row) to a relation (table)

Back

PRIMARY KEY

Front

specifies one or more attributes that make up the primary key of a relation

Back

HAVING

Front

specifies a condition on the groups being selected rather than on the individual tuples

Back

FOREIGN KEY

Front

specifies referential integrity

Back

alias

Front

a name that is given to a table in FROM clause in order to rename it

Back

elements

Front

tables, types, constraints, views, domains, and other constructs (such as authorization grants) that describe the schema

Back

correlated queries

Front

describes a set of queries where a condition in the WHERE clause of a nested query references some attribute of a relation declared in the outer query; nested query is evaluated once for each tuple (or combination of tuples) in the outer query

Back

Section 2

(21 cards)

CASE

Front

used when a value can be different based on certain conditions

Back

view materialization

Front

optimization technique for views performed by the DBMS that involves physically creating a temporary or permanent view table when the view is first queried/created and keeping that table on the assumption that other queries on the view will follow

Back

base query

Front

first part of a recursive query that defines the top-level before recursion begins

Back

ALTER

Front

used to change definition of a base table or of other named schema elements

Back

CREATE TRIGGER

Front

used to specify automatic actions that the database system will perform when certain events and conditions occur

Back

fixed point

Front

last part of a recursive query that is reached when no more tuples are added to the view

Back

CREATE ASSERTION

Front

used to specify additional types of constraints that are outside the scope of the built-in relational model constraints (primary and unique keys, entity integrity, and referential integrity)

Back

RECURSIVE WITH

Front

defines a recursive table

Back

FROM

Front

mandatory clause that specifies all relations (tables) needed in the query, including joined relations, but not those in nested queries

Back

WHERE

Front

clause that specifies the conditions for selecting the tuples from these relations, including join conditions if needed

Back

WITH CHECK OPTION

Front

used to ensure that no changes to the underlying data can be made through the view that would cause data not to conform to the definitions of the view; more strict than rules mentioned in textbook

Back

DROP

Front

used to drop named schema elements, such as tables, domains, types, or constraints

Back

query modification

Front

optimization technique for views performed by the DBMS that involves modifying the original query used on the base tables

Back

NATURAL JOIN

Front

joins tables by selecting only the rows with common values in their common attributes; same as using a equality comparison between attributes of different tables in WHERE clause

Back

defining tables

Front

the tables that compose a view

Back

schema evolution commands

Front

name for category of SQL commands that are used to alter a schema by adding or dropping tables, attributes, constraints, and other schema elements

Back

_

Front

matches any single character

Back

%

Front

matches any string, including string of length zero

Back

in-line view

Front

a view defined in the FROM clause of an SQL query

Back

SELECT

Front

mandatory clause that lists the attributes or functions to be retrieved

Back

recursive relationship

Front

when tuples from the same relationship have a foreign key that is the primary key of another tuple in the same relationship

Back