What is the correct syntax of inserting to a database
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
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
Similar Resources on Quizizz
17 questions
SQL - parte 1

Quiz
•
Professional Development
10 questions
Filtering and Sorting

Quiz
•
Professional Development
19 questions
Dangerous Goods 04

Quiz
•
Professional Development
10 questions
MDP(Custom)-Accenture-16/08/21 (Day 21)

Quiz
•
Professional Development
10 questions
Power Bi class day 5

Quiz
•
Professional Development
10 questions
Python Functions

Quiz
•
Professional Development
20 questions
SQL FINAL ASSESSMENT

Quiz
•
Professional Development
20 questions
SQL MASTERCLASS

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade