Nodejs: Database SQL

Quiz
•
Professional Development
•
Professional Development
•
Medium
Daniel Adesoji
Used 9+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to create a table on MySQL
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 Wayground
10 questions
USANA ID CS Quiz 9 Mar 2024

Quiz
•
Professional Development
15 questions
PHP tutorial review

Quiz
•
Professional Development
15 questions
GCP_FUNDAMENTALS_QUIZ

Quiz
•
Professional Development
15 questions
Microsoft 365

Quiz
•
Professional Development
11 questions
PH: P#y#x Ph#s# 1

Quiz
•
Professional Development
10 questions
BIMTEK OPS 2022

Quiz
•
Professional Development
10 questions
QUIZ RAKERNAS 2021

Quiz
•
Professional Development
10 questions
Online Training : Bangun Personal Branding & Kepercayaan Online

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade