Quiz
DML and DDL (Module 4)
This quiz has question types that open in the usual player.
Questions in this quiz (14)
1These are statements are used to define the database structure or schema.
- AData Definition Language (DDL)
- BData Manipulation Language (DML)
- CData Control Language (DCL)
2These are statements are used for managing data within schema objects.
- AData Manipulation Language (DML)
- BData Definition Language (DDL)
- CData Control Language (DCL)
3Every time you create table, views, and other database objects, a DDL statement is being executed on the background.
- ATrue
- BFalse
4Select All the DDL Statements
- ACREATE
- BALTER
- CDROP
- DTRUNCATE
- ESELECT
- FINSERT
- GUPDATE
5Select All DML Statements
- ACREATE
- BALTER
- CDROP
- DSELECT
- EINSERT
- FDELETE
6The AND operator requires both conditions to be true while the OR operator only needs one of the conditions to be true.
- ATrue
- BFalse
7[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.
- AWHERE
8When updating/deleting records in a table, it is recommended to include a where statement.
- ATrue
- BFalse
9To eliminate the duplicates you can include the ________ keyword within your SELECT clause.
- ADISTINCT
- BWHERE
- CUNIQUE
- DONLY
10Aside from its arithmetic operation, you can also use the plus (+) symbol to concatenate string values
- ATrue
- BFalse
11I 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?
- ASELECT * FROM Presidents WHERE lname = 'Adams'
- BSELECT lname FROM Presidents WHERE lname = 'Adams'
- CSELECT ALL FROM Presidents where lname = 'Adams'
- DSELECT * FROM Presidents where lname = Adams
- ESELECT * FROM Presidents where lastname = 'Adams'
12To check for a null value in a column, the WHERE clause should be : "...WHERE <Column name> IS NOT NULL"
- ATrue
- BFalse
13The WHERE clause can be used after the ORDER BY clause
- ATrue
- BFalse
14I 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]- AORDER BY start_date desc
Information
- Description
- Advent level 1 SQL Quiz on DML and DDL (Module 4), created by aries cantos on 21/06/2017.
- Author
- aries cantos
- Language
- English
- Views
- 69
- Tags
- Rating
- No ratings yet Rate this quiz