DML and DDL (Module 4)

Beschreibung

Advent level 1 SQL Quiz am DML and DDL (Module 4), erstellt von aries cantos am 21/06/2017.
aries cantos
Quiz von aries cantos, aktualisiert more than 1 year ago
aries cantos
Erstellt von aries cantos vor mehr als 8 Jahre
65
0

Zusammenfassung der Ressource

Frage 1

Frage
These are statements are used to define the database structure or schema.
Antworten
  • Data Definition Language (DDL)
  • Data Manipulation Language (DML)
  • Data Control Language (DCL)

Frage 2

Frage
These are statements are used for managing data within schema objects.
Antworten
  • Data Manipulation Language (DML)
  • Data Definition Language (DDL)
  • Data Control Language (DCL)

Frage 3

Frage
Every time you create table, views, and other database objects, a DDL statement is being executed on the background.
Antworten
  • True
  • False

Frage 4

Frage
Select All the DDL Statements
Antworten
  • CREATE
  • ALTER
  • DROP
  • TRUNCATE
  • SELECT
  • INSERT
  • UPDATE

Frage 5

Frage
Select All DML Statements
Antworten
  • CREATE
  • ALTER
  • DROP
  • SELECT
  • INSERT
  • DELETE

Frage 6

Frage
The AND operator requires both conditions to be true while the OR operator only needs one of the conditions to be true.
Antworten
  • True
  • False

Frage 7

Frage
[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.
Antworten
  • WHERE

Frage 8

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

Frage 9

Frage
To eliminate the duplicates you can include the ________ keyword within your SELECT clause.
Antworten
  • DISTINCT
  • WHERE
  • UNIQUE
  • ONLY

Frage 10

Frage
Aside from its arithmetic operation, you can also use the plus (+) symbol to concatenate string values
Antworten
  • True
  • False

Frage 11

Frage
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?
Antworten
  • 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'

Frage 12

Frage
To check for a null value in a column, the WHERE clause should be : "...WHERE <Column name> IS NOT NULL"
Antworten
  • True
  • False

Frage 13

Frage
The WHERE clause can be used after the ORDER BY clause
Antworten
  • True
  • False

Frage 14

Frage
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]
Antworten
  • ORDER BY start_date desc
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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