Search Header Logo

SQL in Databases

Authored by Adrian Mallia

Computers

10th Grade

Used 2+ times

SQL in Databases
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL clause is used to choose which columns to show in the result?

SELECT

FROM

WHERE

ORDER BY

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the FROM clause specify in an SQL query?

The columns to display

The table to get data from

The order of the results

The condition to filter rows

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL statement will show all columns from a table named `Students`?

SELECT * FROM Students;

SHOW ALL FROM Students;

GET * FROM Students;

SELECT ALL Students;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you select only the "Name" and "Age" columns from a table called `Kids`?

SELECT Name, Age FROM Kids;

SELECT Kids FROM Name, Age;

FROM Kids SELECT Name, Age;

SELECT Name AND Age FROM Kids;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the query SELECT * FROM EMPLOYEES WHERE LOCATION = "PAOLA" or "COSPICUA"; output?

All fields of those employees who reside in Paola only

All fields of those employees who reside in Paola or Cospicua only

Only the names of those employees who reside in Paola or Cospicua

All fields of those employees who do not reside in Paola or Cospicua

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this SQL query do? `SELECT * FROM Books WHERE Author = 'J.K. Rowling';`

Shows all books by J.K. Rowling

Shows only the Author column

Shows all authors except J.K. Rowling

Shows all books in the library

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL query will show all students who are 10 years old from the `Students` table?

SELECT * FROM Students WHERE Age = 10;

SELECT Age = 10 FROM Students;

SELECT * FROM Students ORDER BY Age = 10;

SELECT 10 FROM Students;

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?