
Understanding SQL DDL and DML

Quiz
•
Computers
•
Professional Development
•
Medium
-- Shri.Ranjeetsingh Suryawanshi
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What SQL command is used to modify an existing table structure?
ALERT TABLE
CREATE TABLE
ALTER TABLE
DROP TABLE
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How do you define a primary key in a table?
A primary key is an optional field in a table.
A primary key is used to store large text data.
A primary key is a unique identifier for a record in a table.
A primary key can be duplicated across records.
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the purpose of a foreign key in a relational database?
To store data in a single table only.
The purpose of a foreign key is to maintain referential integrity between related tables in a relational database.
To increase the speed of data retrieval.
To create a new table in the database.
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which SQL command is used to add constraints to a table?
CREATE TABLE
SELECT * FROM
ALTER TABLE
DROP TABLE
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What happens to the data in a table when you use the TRUNCATE command?
The table structure is removed but data remains.
All data in the table is permanently removed.
The data is temporarily hidden.
Only specific rows are deleted.
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is auto-committed?
INSERT
UPDATE
DROP
DELETE
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
How can you enforce uniqueness on a column in a table?
Use a FOREIGN KEY constraint on the column.
Add a PRIMARY KEY to the table.
Set the column to NULLABLE.
Use a UNIQUE constraint on the column.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Google Sheets Quiz: From Importing to Analysis

Quiz
•
Professional Development
15 questions
Soal Meet 3 Database Management

Quiz
•
Professional Development
10 questions
Vlookup Formula in Excel

Quiz
•
Professional Development
20 questions
Database Basics

Quiz
•
Professional Development
10 questions
DB2 (5/4)

Quiz
•
Professional Development
20 questions
Database Basics - Lecture 2

Quiz
•
Professional Development
20 questions
MS Excel Basics

Quiz
•
5th Grade - Professio...
10 questions
datbase 5

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development