DML and DDL (Module 4)

Description

Advent level 1 SQL Quiz on DML and DDL (Module 4), created by aries cantos on 21/06/2017.
aries cantos
Quiz by aries cantos, updated more than 1 year ago
aries cantos
Created by aries cantos over 8 years ago
65
0

Resource summary

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.
Answer
  • True
  • False

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.
Answer
  • True
  • False

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.
Answer
  • WHERE

Question 8

Question
When updating/deleting records in a table, it is recommended to include a where statement.
Answer
  • True
  • False

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
Answer
  • True
  • False

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"
Answer
  • True
  • False

Question 13

Question
The WHERE clause can be used after the ORDER BY clause
Answer
  • True
  • False

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]
Answer
  • ORDER BY start_date desc
Show full summary Hide full summary

Similar

SQL Quiz
R M
Midterm 2 (Chapter 5 - 13)
Yorria Raine
SQL Quiz
Chris Cronin
Database Final Exam
dbm
Coding Quiz
ryanseaborne
Brief Refinement
Rebbecca Stanley
Microsoft Virtual Academy - SQL Server Basics
chrisburford
Tema 6: DML
Julia Perez
Chapter 4 Key Terms
Stephanie Spearman
Tipos de bases de datos
Jeffrey Bedoya
Databases
Alex Baine