Intermediate SQL Flashcards
a join operation that allows you to specify an explicit join clause.
Inner Join
It preserves the unmatched rows from the first (left) table, joining them with a NULL row in the shape of the second (right) table.
Left Outer Join
– It preserves the unmatched rows from the first (right) table, joining them with a NULL in the shape of the first (left) table.
Right Outer Join
operation that produces the Cartesian product of two tables.
Cross Join
a join operation that creates an implicit join clause for you based on the common columns in the two tables being join.
Natural Join
Are virtual tables formed by a query
View
A dictionary that you can use until you drop it.
View
Not updatable.
View
consists of a sequence of query and/or update statements.
Transaction
ensure that changes made to the database by authorized users do not result in a loss of data consistency.
Integrity Constraints
prohibits the insertion of a null value for the attribute.
Not Null
defines a set of columns that uniquely identify rows in a table only if all the key values are not NULL.
Unique
ensure that a value that appears in one relation (the referencing relation) for a give set of attributes also appears for a certain set of attributes in other relation (the referenced relation)
Referential integrity constraints
can specify that if a delete or update action on the referenced relation violates the constraint, then, instead of rejecting the action, the system must take steps to change the tuple in the referencing relation to restore constraint.
Foreign key clause
a calendar date containing a (four-digit) year, month and day of the month.
Date
the time of day, in hours, minutes and seconds.
Time
a combination of date and time.
Timestamp
a collection of database objects.
Schema
Owned by a database user and has the same name as that user.
Schema
a data structure that allows the database system to find those tuples in the relation that have a specified value for that attribute efficiently, without scanning through all the tuples of the relation.
Index
used to confer authorization
Grant
to revoke authorization
Revoke
a set or group of privileges that can be granted to users or another role.
Role