Course 1, Module 3 Flashcards

Set up your data analytics toolbox

1
Q

What is SQL?

A

Just as humans use different languages to communicate with others, so do computers. Structured Query Language (or SQL, often pronounced “sequel”) enables data analysts to talk to their databases. SQL is one of the most useful data analyst tools, especially when working with large datasets in tables. It can help you investigate huge databases, track down text (referred to as strings) and numbers, and filter for the exact kind of data you need—much faster than a spreadsheet can.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a query?

A

A request for data or info from a database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In programming, what is a syntax?

A

Syntax is the predetermined structure of a language that includes all required words, symbols, and punctuation, as well as their proper placement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the syntax of every SQL query?

A

Use SELECT to choose the columns you want to return.

Use FROM to choose the tables where the columns you want are located.

Use WHERE to filter for certain information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Are capitalization, indentation, and semicolons required?

A

No but highly recommended for clarity and for better maintenance.

The semicolon is a statement terminator. However, not all SQL databases have adopted or enforce the semicolon. Still recommended to us it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is LIKE keyword?

A

Used to search for patterns, e.g.

WHERE field1 LIKE ‘Ch%’

Here % is used as a wildcard to match one or more characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to select ALL columns in a table?

A

select *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to create comments?

A

/* blabla */ (not as supported)

– blabla (most suported)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are aliases?

A

A new name to the column or table names to make them easier to work with (and avoid the need for comments). This is done with a SQL AS clause, e.g.

FROM
actual_table_name AS my_table_alias

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is non equal sign in SQL?

A

<>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the steps to plan a data visualization?

A

Step 1: Explore the data for patterns

Step 2: Plan your visuals, i.e. what should they describe (e.g. sales number over time)

Step 3: Create your visuals. A mix of different visuals will best communicate your findings and turn your analysis into the most compelling story for stakeholders.

Each type of chart has a specific use. E.g. A line chart would be the most appropriate visualization when showing the change in someone’s salary over time.

Basic visualization tools include Google Sheets and more powerful tools include Tableau and RStudio.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly