SQL Flashcards

1
Q

Declarative language

A

describes the data we are interested in, without describing the control flow to access it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Wildcard characters

A

used with Where clause, % matches zero or more characters, _ matches an single character

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

BETWEEN operator

A

inclusive and operation, equivalent to >= and <=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Joins

A

an operator for combining tuples from two or more table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Cross join

A

also called inner join, join, provides every possible combination between two tables unless an ON clause is provided

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Alias

A

used to identify a table or column by another name, uses AS keyword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Natural join

A

automatically joins on equality between attributes with the same name between tables (implicit join condition)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Outer join

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Self join

A

used to join a table with itself to show a relationship, aliasing is required

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Three Tier Architecture

A

database tier connects to an application tier which connects to a presentation tier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly