Search Header Logo

Fundamentals of SQL

Authored by Fiska Hendiyaningsih

Other

Professional Development

Used 1+ times

Fundamentals of SQL
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of SQL data types?

The purpose of SQL data types is to specify the type of data that can be stored in a column, ensuring data integrity and optimizing storage.

To manage database permissions

To define the structure of SQL queries

To create user accounts in a database

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL data type is used to store text?

DATE

INT

VARCHAR or TEXT

FLOAT

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a basic SQL query to select all columns from a table named 'employees'.

SELECT employees.*;

SELECT * FROM employees;

GET * FROM employees;

SELECT ALL FROM employees;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following SQL query: SELECT COUNT(*) FROM orders?

A boolean indicating if the orders table is empty.

A list of all unique values in the orders table.

An integer representing the total number of rows in the orders table.

A string representing the first row in the orders table.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between INNER JOIN and LEFT JOIN.

INNER JOIN returns matching rows from both tables; LEFT JOIN returns all rows from the left table and matched rows from the right table.

INNER JOIN returns only unmatched rows from both tables; LEFT JOIN returns all rows from the right table.

INNER JOIN returns all rows from both tables; LEFT JOIN returns matching rows from the right table.

INNER JOIN returns all rows from the right table; LEFT JOIN returns only matching rows from both tables.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What SQL function would you use to find the maximum value in a column?

SUM()

COUNT()

MAX()

AVG()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to filter records in a SQL query?

SELECT

FILTER

ORDER BY

WHERE

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?