SQL Test Review

SQL Test Review

12th Grade

25 Qs

quiz-placeholder

Similar activities

IHT 2024 2nd Semester Part 3

IHT 2024 2nd Semester Part 3

Unit 6 Quiz Prep

Unit 6 Quiz Prep

9.3.1

9.3.1

Database Quiz

Database Quiz

Understanding SQL Injection

Understanding SQL Injection

CyberSecurity Unit 7

CyberSecurity Unit 7

Cyber 3 Unit 3 Review Game

Cyber 3 Unit 3 Review Game

31. Understanding Code Injection Attacks

31. Understanding Code Injection Attacks

SQL Test Review

SQL Test Review

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Gerry Wartenberg

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which statement is used to extract data from a database?

Extract

Get

Open

Select

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which statement allows us to add a record to a table?

Add To

Update To

Add Into

Insert Into

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

SQL injection input of a TRUE statement will turn the query into:

SELECT * FROM SportData WHERE Team = 'Mustangs' or 1 = 1;

True

False

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

I want to select EVERY column and entry in my "actors" table. How can I do that?

SELECT * FROM actors;

SELECT age FROM actors;

SELECT * FROM actors WHERE age > 30;

SELECT name, age FROM actors WHERE age < 30;

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

I want to select all columns in my "actors" table for all actors older than 30. How can I do that?

SELECT * FROM actors;

SELECT age FROM actors;

SELECT * FROM actors WHERE age > 30;

SELECT name, age FROM actors WHERE age < 30;

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

I want to create a table in my table named "actors" with two columns: "name" and "age." What statement will do this?

CREATE TABLE actors (name TEXT, age INTEGER);

CREATE actors WITH COLUMNS (name, age);

CREATE DATABASE actors WITH COLUMNS (name TEXT, age INTEGER);

CREATE actors (name, age): TABLE, TEXT, INTEGER;

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

I want to add the actor "Brad Pitt" (aged 56) to my table "actors." Which statement will do this?

INSERT INTO actors VALUES ("Brad Pitt", 56);

INSERT "Brad Pitt" AND 56 INTO actors;

UPDATE age = 56 WHERE name = "Brad Pitt";

CREATE ENTRY ("Brad Pitt", 56) IN TABLE actors;

Create a free account and access millions of resources

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?