Review for Test 2
Chapter 3
- Know how the comparison operators (AND, OR, NOT) work
and the order of operations.
- Know how the IN operator works
- How do you order columns in ascending/descending
order and how can you reference by column number rather than column name
(p.68)?
- How do you retrieve data based on NULL values?
- Know how to get data using wildcards and know the
wildcard symbols.
- What clause do you add to sort and how can you sort a
specific field ascending or descending?
- How do you override the sort order of NULLs?
Chapter 4
- Know the definitions of the following joins:
Cartesian, outer, non-equity, self.
- How do you create outer joins? Know the syntax.
- Using the JOIN method, how would you join tables with
different column name? With the same column name?
- How do you create table aliases? In what situation
can you NOT use a table alias (hint: it’s a JOIN method).
- How do you perform an equity join on tables that have
more than one common column if you just want to join on one of those
columns?
- Know what each of the “set” operators do.
(NOTE: There will be no SQL statements for you to decipher
for chapter 4, but there will be for chapter 3. Email me at rcacace@pjc.edu if you have any questions.)