Nodejs: Database SQL

Nodejs: Database SQL

Professional Development

10 Qs

quiz-placeholder

Similar activities

CONOCIMIENTOS OPERATIVOS - CAJA DE AHORROS

CONOCIMIENTOS OPERATIVOS - CAJA DE AHORROS

Professional Development

10 Qs

Jan Richardson Guided Reading

Jan Richardson Guided Reading

Professional Development

10 Qs

KUIS IHT SMP NEGERI 1 SUNGAI BETUNG

KUIS IHT SMP NEGERI 1 SUNGAI BETUNG

Professional Development

10 Qs

TEP piping 3

TEP piping 3

Professional Development

10 Qs

Materi Quizizz

Materi Quizizz

Professional Development

15 Qs

Elearning Quiz

Elearning Quiz

Professional Development

10 Qs

Факти про ЕС

Факти про ЕС

University - Professional Development

15 Qs

VOL 8 SG Semangat Insentif pun Berlipat (RDPS)

VOL 8 SG Semangat Insentif pun Berlipat (RDPS)

Professional Development

11 Qs

Nodejs: Database SQL

Nodejs: Database SQL

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Medium

Created by

Daniel Adesoji

Used 10+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development