Week 8 Flashcards
SQL SELECT Statement/Queries
The most used operation performed in most Databases is what?
SELECT (running a query)
If you want the SELECT statement to return all columns, what do you use?
A. All
B. Any
C. *
D. $
C. *
Select *
Use the _____ statement to choose a table from the SELECT statement.
FROM
To choose a specific condition, what statement do you use?
WHERE
what is the statement to use to rename a column in the query?
A. RENAME
B. AS
C. COLUMN-NAME
D. FIX
B. AS
T/F: When you use the AS statement, you MUST use double quotes (“ “).
False
Only if you want to add spaces or use lower case.
In Oracle 12c, arithmetic operations work in what order, and what operations are performed first?
left to right
multiplication/division, then addition/subtraction
Parenthesis can change the order
What is the statement used if you do not want your query to return duplicates?
DISTINCT
Combining the contents of two or more columns is known as ______.
concatenation
To concatenate what do you use?
A. “ “
B. | |
C. - -
B. | |