Search Header Logo

SQL Test Review

Authored by Gerry Wartenberg

Computers

12th Grade

Used 15+ times

SQL Test Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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;

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?