SELECT DECK 1 Flashcards
What is the shorthand form of the DESCRIBE command?
DESC
What is the name of the generic all-purpose table belonging to the SYS schema?
DUAL
Do blank spaces count as NULL?
No. NULL is only an absence of data.
What three relational concepts are present in the SELECT statement?
PROJECT, SELECTION, and JOINING.
PROJECTION refers to what?
PROJECTION refers to the restriction of columns selected from a table.
SELECTION refers to what?
SELECTION refers to the restriction of rows selected from a table.
The relational concept JOIN refers to what?
JOIN refers to the interaction of tables with each other in a query.
What are the two mandatory clauses in an SQL query?
The SELECT clause and the FROM clause.
What is an ALIAS?
An alternate name for referencing a column or expression.
How do you eliminate duplicate results from a query?
Include the DISTINCT keyword.
In what clause is the DISTINCT keyword used?
In the SELECT clause.
In Oracle, how do you specify which terms are affected by DISTINCT?
DISTINCT refers to the values listed after it and before the FROM clause.
What operations may be used on DATE or TIMESTAMP values?
Addition and subtraction only.
The process of modeling data into relational tables is known as…?
Normalization.
In Normalization, what is the First Normal Form?
Removal of repeating groups
In Normalization, what is the Second Normal Form?
Removal of columns that are not dependent on the primary key.
In Normalization, what is the Third Normal Form?
Removal of all columns that are interdependent.