
Understanding SQL DDL and DML
Authored by -- Shri.Ranjeetsingh Suryawanshi
Computers
Professional Development
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
SEC+ Ch.8 Review Test
Quiz
•
Professional Development
20 questions
System and network support and management
Quiz
•
11th Grade - Professi...
15 questions
Mensajería Instantánea y Netiqueta
Quiz
•
Professional Development
10 questions
NHANH TAY, NHANH MẮT
Quiz
•
Professional Development
10 questions
Microsoft 365 for Teachers
Quiz
•
Professional Development
18 questions
Almacenamiento de datos
Quiz
•
Professional Development
20 questions
Banco de Dados
Quiz
•
University - Professi...
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...