SQL Flashcards
Declarative language
describes the data we are interested in, without describing the control flow to access it
Wildcard characters
used with Where clause, % matches zero or more characters, _ matches an single character
BETWEEN operator
inclusive and operation, equivalent to >= and <=
Joins
an operator for combining tuples from two or more table
Cross join
also called inner join, join, provides every possible combination between two tables unless an ON clause is provided
Alias
used to identify a table or column by another name, uses AS keyword
Natural join
automatically joins on equality between attributes with the same name between tables (implicit join condition)
Outer join
allow us to retain tuples that would otherwise be discarded, attributes from tuples that do not match take on NULL values, can be left, right, or full
Self join
used to join a table with itself to show a relationship, aliasing is required
Three Tier Architecture
database tier connects to an application tier which connects to a presentation tier