Course 1, Module 3 Flashcards
Set up your data analytics toolbox
What is SQL?
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.
What is a query?
A request for data or info from a database
In programming, what is a syntax?
Syntax is the predetermined structure of a language that includes all required words, symbols, and punctuation, as well as their proper placement.
What is the syntax of every SQL query?
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.
Are capitalization, indentation, and semicolons required?
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.
What is LIKE keyword?
Used to search for patterns, e.g.
WHERE field1 LIKE ‘Ch%’
Here % is used as a wildcard to match one or more characters.
How to select ALL columns in a table?
select *
How to create comments?
/* blabla */ (not as supported)
– blabla (most suported)
What are aliases?
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
What is non equal sign in SQL?
<>
What are the steps to plan a data visualization?
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.