Extracting Data With SQL
Extracting Data With SQL
Вопрос 1
A data analyst working with a large dataset of student grades aims to identify all students who
scored above 90% in a specific subject, sort their names alphabetically, and calculate the group
average. Why would the analyst use SQL instead of spreadsheet built-in functions to perform this
task?
SQL allows them to write multiple queries to identify the students instead of individually filtering the
data using spreadsheet functions.
SQL allows them to write a single query to identify the students instead of individually filtering the
data using spreadsheet functions.
SQL allows them to write a single query to identify the students, whereas spreadsheets do not offer
a filtering function.
SQL automatically calculates averages and identifies criteria related to grades and scores.
Правильно
That’s correct! SQL allows you to write one query that does the same work as multiple tasks in a
spreadsheet.
What is one of the benefits of learning a new programming language like SQL?
It improves your skills as a data analyst when working with databases and data analytics programs
beyond spreadsheets
It improves the quality of your data by enabling you to extract and shape relevant data
Правильно
What capabilities does SQL offer when working with large data sets?
Правильно
That’s correct! SQL helps data analysts filter and extract specific data from large datasets and is a
key feature in data analysis.
Неправильно
A data analyst wants to write a query and select all the columns from their dataset. What should they
include in the clause?
Неправильно
Strings
Integers
Operators
Booleans
Правильно
That’s correct! These include values like words, letters, or combinations of letters and numbers.
You are querying a data set and want to select all rows in column C and limit the results to 15 rows.
Which of the following commands would you use?
Правильно
That’s correct! To limit your query, add the word LIMIT and the number of rows you want to show.
When working in Google Sheets, how would you modify your query to calculate the sum of values
from columns D and E?
Include D & E directly after selecting columns
Правильно
That’s correct! To add these two columns, add the + symbol at the end of the query.
You are working with a data set containing a company's sales figures, including columns for item
costs (D) and quantity sold (E). Which of the following queries will calculate the average item cost?
Правильно
That’s correct! This query will calculate the total revenue by adding the sum of the item costs (D) and
the sum of quantities sold (E).
Which aggregation functions are commonly used with the GROUP BY clause?
Неправильно
1.
Вопрос 1
Правильно
That’s correct! SQL allows you to select and retrieve specific data from a large dataset by selecting
only columns relevant to your analysis.
Статус: [object Object]
1 / 1 балл
2.
Вопрос 2
What is one of the benefits of learning a new programming language like SQL?
It improves your skills as a data analyst when working with databases and data analytics programs
beyond spreadsheets
It improves the quality of your data by enabling you to extract and shape relevant data
Правильно
True or False: You can use SQL to select specific data and perform calculations, like finding a
dataset's maximum or minimum values.
True
False
Неправильно
Неправильно
A data analyst working in Google Sheets writes the statement " SELECT A, C." What does this query
intend to do?
Правильно
That’s correct! To select and choose specific data from a dataset, include the letter ID in your
chosen order, with a comma between each ID.
Booleans
Operators
Integers
Strings
Правильно
That’s correct! These include values like words, letters, or combinations of letters and numbers.
Which of the following example commands uses the ORDER BY clause correctly?
Неправильно
Not quite. Please review the video ORDER BY and LIMIT Clauses.
Неправильно
You are working with a data set of columns containing a company's sales figures, such as item costs
(D) and quantity sold(E). Which of the following queries will calculate the total revenue generated?
SELECT SUM(D, E)
SELECT SUM(D*E)
SELECT SUM(D+E)
Неправильно
SELECT
WHERE
TO or FROM
Неправильно
Правильно
That’s correct! SQL allows you to select and retrieve specific data from a large dataset by
selecting only columns relevant to your analysis.
SQL retrieves specific data from a database without changing it and automatically retrieves the
most updated information from the source.
SQL provides real-time reports, ensuring all data is relevant and up-to-date.
Правильно
That’s correct! SQL collects up-to-date information from the original data source without
modifying the data.
What capabilities does SQL offer when working with large data sets?
SQL can perform complex calculations and image processing.
Правильно
That’s correct! SQL helps data analysts filter and extract specific data from large datasets and is
a key feature in data analysis.
Неправильно
What is the purpose of a SELECT statement when writing queries in Google Sheets?
It tells the query which data to retrieve from the data set
Неправильно
Operators
Booleans
Strings
Integers
Неправильно
Not quite. Please review the video AND, OR, and WHERE Clauses.
True or False: The ORDER BY clause enables you to include in your query how many resulting
rows you want or the number of resulting rows up to a limit.
True
False
Правильно
That’s correct! The LIMIT clause, not the ORDER BY clause, allows you to specify how
many rows you want to include in the query result.
When working in Google Sheets, how would you modify your query to calculate the sum of
values from columns D and E?
You are working with a data set of columns containing a company's sales figures, such as item
costs (D) and quantity sold(E). Which of the following queries will calculate the total revenue
generated?
SELECT SUM(D*E)
SELECT SUM(D, E)
SELECT SUM(D+E)
Неправильно
SELECT
TO or FROM
WHERE
Неправильно