Question 1
Question
These are statements are used to define the database structure or schema.
Answer
-
Data Definition Language (DDL)
-
Data Manipulation Language (DML)
-
Data Control Language (DCL)
Question 2
Question
These are statements are used for managing data within schema objects.
Answer
-
Data Manipulation Language (DML)
-
Data Definition Language (DDL)
-
Data Control Language (DCL)
Question 3
Question
Every time you create table, views, and other database objects, a DDL statement is being executed on the background.
Question 4
Question
Select All the DDL Statements
Answer
-
CREATE
-
ALTER
-
DROP
-
TRUNCATE
-
SELECT
-
INSERT
-
UPDATE
Question 5
Question
Select All DML Statements
Answer
-
CREATE
-
ALTER
-
DROP
-
SELECT
-
INSERT
-
DELETE
Question 6
Question
The AND operator requires both conditions to be true while the OR operator only needs one of the conditions to be true.
Question 7
Question
[blank_start]WHERE[blank_end] Specifies the conditions that must be met for a row to be included in the result set. This clause is optional and is used to filter the information returned.
Question 8
Question
When updating/deleting records in a table, it is recommended to include a where statement.
Question 9
Question
To eliminate the duplicates you can include the ________ keyword within your SELECT clause.
Answer
-
DISTINCT
-
WHERE
-
UNIQUE
-
ONLY
Question 10
Question
Aside from its arithmetic operation, you can also use the plus (+) symbol to concatenate string values
Question 11
Question
I want to retrieve ALL records from the table named "Presidents" where the last name is "Adams". The last name column is labeled as "lname". What is the correct query that I should use?
Answer
-
SELECT * FROM Presidents WHERE lname = 'Adams'
-
SELECT lname FROM Presidents WHERE lname = 'Adams'
-
SELECT ALL FROM Presidents where lname = 'Adams'
-
SELECT * FROM Presidents where lname = Adams
-
SELECT * FROM Presidents where lastname = 'Adams'
Question 12
Question
To check for a null value in a column, the WHERE clause should be : "...WHERE <Column name> IS NOT NULL"
Question 13
Question
The WHERE clause can be used after the ORDER BY clause
Question 14
Question
I want to order the results from the "Presidents" in descending order by the column, start_date. Complete the following query:
SELECT * FROM Presidents [blank_start]ORDER BY start_date desc[blank_end]