What is the correct syntax to create a table on MySQL
Nodejs: Database SQL

Quiz
•
Professional Development
•
Professional Development
•
Medium
Daniel Adesoji
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
CREATE TABLE <tablename>
CREATE ENTITY <tablename>
CREATE COLLECTION <tablename>
CREATE RECORD <tablename>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Replace the missing word:
CREATE TABLE departments (
name _____ NOT NULL
)
varchar(255)
string(255)
letters(255)
words(255)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct option to create a field with a default time stamp
created_at datetime DEFAULT CURRENT
created_at datetime DEFAULT TIMESTAMP
created_at datetime DEFAULT CURRENT_TIMESTAMP
created_at datetime DEFAULT TIME
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would we represent a column referencing another table as the a foreign key?
FOREIGN KEY (department_id) REFERENCES departments(id)
FOREIGN KEY departments(id)
REFERENCES (department_id),
FOREIGN KEY REFERENCES
departments(id)
(department_id),
FOREIGN KEY
REFERENCES
(department_id) departments(id)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which syntax is correct for setting enum constraints?
status ('active', 'inactive') ENUM
ENUM status ('active', 'inactive')
('active', 'inactive') status ENUM
status ENUM ('active', 'inactive')
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To create a record into a users table, what would be the correct syntax?
insert from users (name) values ("stephen")
insert into users (name) values ("stephen")
insert where users (name) values ("stephen")
insert when users (name) values ("stephen")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
We want to get the records for all users, but we want only their names. Choose the right option?
select * from users
select id from users
select from users where name
select name from users
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
SOQL & Apex Intro Quiz-1

Quiz
•
Professional Development
10 questions
ServiceNow Review

Quiz
•
Professional Development
10 questions
SheerID DR Quiz 02/07/2022

Quiz
•
Professional Development
10 questions
Webinar Orientasi PPPK Sesi 2

Quiz
•
Professional Development
12 questions
SLPIS Pre-Test

Quiz
•
Professional Development
10 questions
Nodejs: Rate Limiting and File Upload

Quiz
•
Professional Development
9 questions
InfinityM@

Quiz
•
Professional Development
10 questions
SheerID DR Quiz 09/07/2022

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade