SQL Statements and Queries
Quiz
•
Professional Development
•
Professional Development
•
Hard

AMO FSO GP2W
Used 44+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
What is the correct syntax of inserting to a database
INSERT INTO students (id, name, major) VALUES (1, 'Jane', 'Physics');
insert into students (id, name, major) values (1, 'Jane', 'Physics');
INSERT INTO students (id, name, major) VALUES (1, "Jane", "Physics");
INSERT INTO students (id, name, major) VALUES (1, 'Jane', 'Physics');
INSERT INTO students (id, name, major) VALUES (1, "Jane", "Physics");
2.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
What is the correct syntax when creating a primary key
CREATE TABLE Persons (
ID INT NOT NULL,
LName VARCHAR(255),
FName VARCHAR(255),
Age INT,
PRIMARY KEY (ID));
CREATE TABLE Persons (
ID INT NOT NULL PRIMARY KEY,
LName VARCHAR(255),
FName VARCHAR(255),
Age INT);
CREATE TABLE Persons (
ID PRIMARY KEY,
LName VARCHAR(255),
FName VARCHAR(255),
Age INT);
CREATE TABLE Persons (
ID PK,
LName VARCHAR(255),
FName VARCHAR(255),
Age INT);
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
BLOB is a datatype
True
False
4.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Select all that are Constraints
delete
not null
primary key
varchar
all of the above
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How do you delete a specific record in students table?
DELETE FROM students WHERE ID=1;
DELETE FROM student WHERE ID=1;
DELETE * FROM students;
DROP TABLE students;
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Is it required to define a size for VARCHAR?
True
False
7.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Choose the items that are SQL Functions
SUM()
AVG()
COUNT()
LIKE()
DELETE()
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
How much idea I have?
Quiz
•
1st Grade - Professio...
10 questions
First Impression of Service Interaction
Quiz
•
Professional Development
10 questions
afya innovation lab workshop
Quiz
•
Professional Development
10 questions
Gujarat State
Quiz
•
KG - Professional Dev...
11 questions
The Mediately Quiz 🤓🧐
Quiz
•
Professional Development
15 questions
Kampanye anti fraud
Quiz
•
Professional Development
13 questions
Anime 99
Quiz
•
9th Grade - Professio...
20 questions
Class 3 - Review
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
