SQL for Data Analysis
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
30 questions
- 1SQL stands for_____Query Language.
Hint
The full name of SQL describes how data is organized.
Answer
Structured
- 2A database is a collection of_____that have relationships.
Hint
Think of a spreadsheet-like structure where data is stored in rows and columns.
Answer
tables
- 3The acronym RDBMS stands for_____Database Management System.
Hint
This type of DBMS organizes data into related tables.
Answer
Relational
- 4In SQL Server, the_____edition can be used for business purposes but is limited to 10 GB database size and 4 cores.
Hint
This edition is free and suitable for learning, but has restrictions.
Answer
Express
- 5The graphical front-end tool for writing queries against SQL Server is called_____(abbreviated SSMS).
Hint
This tool provides a user interface to manage SQL Server instances.
Answer
SQL Server Management Studio
- 6In Object Explorer, clicking the_____icon allows you to connect to additional servers.
Hint
It resembles an electrical plug symbol.
Answer
plug
- 7The default schema name in SQL Server is_____.
Hint
This stands for 'database owner' and is the default schema for user-created tables.
Answer
dbo
- 8The process of breaking data into separate tables to avoid repetition is called_____.
Hint
It reduces data redundancy and improves data integrity.
Answer
normalization
- 9A_____is the minimum number of columns that uniquely identifies a record in a table.
Hint
It ensures each row can be uniquely identified, often a single ID column.
Answer
primary key
- 10In the SQL query SELECT * FROM dbo.customers, the '*' symbol is called a_____and returns all columns.
Hint
It stands for all columns in the table.
Answer
wildcard
- 11To get a list of unique customer names, you add the keyword_____after SELECT.
Hint
It eliminates duplicate rows from the result set.
Answer
DISTINCT
- 12To rename a column header in the result set, you use the keyword_____followed by the alias.
Hint
It assigns a temporary name to a column in the output.
Answer
AS
- 13To limit the number of rows returned, you use the keyword_____before the column list.
Hint
It restricts the result set to the first N rows.
Answer
TOP
- 14The clause used to filter rows based on a condition is_____.
Hint
It specifies the criteria that rows must meet to be included.
Answer
WHERE
- 15To sort results in ascending order, you use the clause ORDER BY followed by the column name and optionally the keyword_____.
Hint
Sorting from smallest to largest or A-Z.
Answer
ASC
- 16To find customers whose name begins with 'A', you use the operator_____with the pattern 'A%'.
Hint
It allows pattern matching with wildcards.
Answer
LIKE
- 17To check if a value is within a range (inclusive), you use the operator_____.
Hint
It tests whether a value falls between two specified values.
Answer
BETWEEN
- 18To test if a column value matches any value in a list, you use the operator_____.
Hint
It is a shorthand for multiple OR conditions.
Answer
IN
- 19To combine two conditions where both must be true, you use the logical operator_____.
Hint
It ensures all conditions are satisfied.
Answer
AND
- 20To specify the order of evaluation in a WHERE clause, you use_____.
Hint
They group conditions together.
Answer
parentheses
- 21The default join type in SQL Server, which returns only rows with matching values in both tables, is_____.
Hint
It combines rows from two tables based on a related column.
Answer
INNER JOIN
- 22A_____join returns all rows from the left table and matching rows from the right table; if no match, NULLs appear.
Hint
It preserves all rows from the first table listed.
Answer
LEFT OUTER JOIN
- 23In a JOIN clause, the condition that links the tables is specified using the keyword_____.
Hint
It defines how the tables are related, typically using primary and foreign keys.
Answer
ON
- 24To count the number of rows in a result set, you use the aggregate function_____.
Hint
It returns the number of items in a group.
Answer
COUNT
- 25To calculate the total of a numerical column, you use the aggregate function_____.
Hint
It adds up all values in a column.
Answer
SUM
- 26To group rows that have the same values in specified columns, you use the clause_____.
Hint
It is often used with aggregate functions to create summary reports.
Answer
GROUP BY
- 27The function_____returns the current date and time in SQL Server.
Hint
It is a nondeterministic function that gets the system timestamp.
Answer
GETDATE()
- 28To add or subtract time intervals from a date, you use the function_____.
Hint
It modifies a date by a specified number of units (e.g., days, months).
Answer
DATEADD
- 29Comments in SQL can be written using two dashes (--) or using_____for multi-line comments.
Hint
This is similar to comments in many programming languages.
Answer
/* */
- 30The visual tool that helps you build queries by dragging and dropping tables and columns is called the_____.
Hint
It can be accessed by right-clicking in the query editor.
Answer
Query Designer

Ask anything
We've read this whole study set, so questions about it get the best answers.