SQL Tutorial: Storing data

DataCamp · Beginner ·📊 Data Analytics & Business Intelligence ·6y ago

Key Takeaways

The video discusses different ways to store data, including structured, unstructured, and semi-structured data, and introduces traditional databases, data warehouses, and data lakes as solutions for storing and analyzing data.

Full Transcript

let's discuss the different ways you can store data data can be stored in three different levels the first is structured data which is usually defined by schemas data types and tables are not only defined but relationships between tables are also defined using concepts like foreign keys the second is unstructured data which is schema lists and data and its Raw's form meaning it's not clean most data in the world is unstructured examples include media files and raw text the third is semi structured data which does not follow a larger schema rather it has an ad hoc self-describing structure therefore it has some structure this is an inherently vague definition as there can be a lot of variation between structured and unstructured data examples include no sequel XML and JSON which is shown here on the right because it's clean and organized structured data is easier to analyze however it's not as flexible because it needs to follow a schema which makes it less scalable these are trade-offs to consider as you move between structured and unstructured data you should already be familiar with traditional databases they generally follow relational schemas operational databases which are used for OLTP are an example of traditional databases decades ago traditional databases used to be enough for data storage then as data analytics took off data warehouses were popularized for OLAP approaches and now in the age of big data we need to analyze and store even more data which is where the data Lake comes in I use the term traditional databases because many people consider data warehouses and lakes to be a type of database data warehouses are optimized for read-only analytics they combine data from multiple sources and use massively parallel processing for faster queries in their database design they typically use dimensional modeling and a denormalized schema we will walk through both of these terms later in the course Amazon Google and Microsoft all offered data warehouse solutions known as redshift bigquery and at Azure SQL data warehouse respectively a data Mart is a subset of a data warehouse dedicated to a specific topic data Mart's allowed departments have easier access to the data that matters to them technically traditional databases and warehouses can store unstructured data but not cost-effectively data Lake storage is cheaper because it uses object storage as opposed to the traditional block or file storage this allows massive amounts of data to be stored effectively of all types from streaming data to operational databases lakes are massive because they store all the data that might be used data lakes are often petabytes in size that's one thousand terabytes unstructured data is the most scalable which permits this size lakes are schema and red meaning the schema is created as data is read warehouses and traditional databases are classified as schema and right because the schema is predefined data lakes have to be organized and catalogued well otherwise it becomes an aptly named data swamp data lakes aren't only limited to storage it's becoming very popular to run analytics on data leaks this is especially true for tasks like deep learning and data discovery which needs a lot of data that doesn't need to be that clean again the big three cloud providers all offer a data Lake solution when we think about where to store data we have to think about how data will get there and in what form extract transform load and axe extract load transform are two different approaches for describing data flows they get into the intricacies of building data pipelines which we will not get into ETL is the more traditional approach for warehousing in smaller scale analytics but ELT has become more common with big data projects in ETL datas transformed before loading into storage usually to follow the storages schema as is the case with warehouses in ELT the data is stored in its native form in a storage solution like a data Lake the portions of data are transformed for different purposes from building a data warehouse to doing deep learning okay

Original Description

Want to learn more? Take the full course at https://learn.datacamp.com/courses/database-design at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work. --- Let's discuss the different ways you can store data. Data can be stored in three different levels. The first is structured data, which is usually defined by schemas. Data types and tables are not only defined, but relationships between tables are also defined, using concepts like foreign keys. The second is unstructured data, which is schemaless and data in its rawest form, meaning it's not clean. Most data in the world is unstructured. Examples include media files and raw text. The third is semi-structured data, which does not follow a larger schema, rather it has an ad-hoc self-describing structure. Therefore, it has some structure. This is an inherently vague definition as there can be a lot of variation between structured and unstructured data. Examples include NoSQL, XML, and JSON, which is shown here on the right. Because its clean and organized, structured data is easier to analyze. However, it's not as flexible because it needs to follow a schema, which makes it less scalable. These are trade-offs to consider as you move between structured and unstructured data. You should already be familiar with traditional databases. They generally follow relational schemas. Operational databases, which are used for OLTP, are an example of traditional databases. Decades ago, traditional databases used to be enough for data storage. Then as data analytics took off, data warehouses were popularized for OLAP approaches. And, now in the age of big data, we need to analyze and store even more data, which is where the data lake comes in. I use the term "traditional databases" because many people consider data warehouses and lakes to be a type of database. Data warehouses are optimized for read-only analytics. They combine data from multiple sources and use m
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from DataCamp · DataCamp · 56 of 60

1 SQL Server Tutorial: Date manipulation
SQL Server Tutorial: Date manipulation
DataCamp
2 R Tutorial: Intermediate Interactive Data Visualization with plotly in R
R Tutorial: Intermediate Interactive Data Visualization with plotly in R
DataCamp
3 R Tutorial: Adding aesthetics to represent a variable
R Tutorial: Adding aesthetics to represent a variable
DataCamp
4 R Tutorial: Moving Beyond Simple Interactivity
R Tutorial: Moving Beyond Simple Interactivity
DataCamp
5 Python Tutorial: Why use ML for marketing? Strategies and use cases
Python Tutorial: Why use ML for marketing? Strategies and use cases
DataCamp
6 Python Tutorial: Preparation for modeling
Python Tutorial: Preparation for modeling
DataCamp
7 Python Tutorial: Machine Learning modeling steps
Python Tutorial: Machine Learning modeling steps
DataCamp
8 R Tutorial: The prior model
R Tutorial: The prior model
DataCamp
9 R Tutorial: Data & the likelihood
R Tutorial: Data & the likelihood
DataCamp
10 R Tutorial: The posterior model
R Tutorial: The posterior model
DataCamp
11 R Tutorial: An Introduction to plotly
R Tutorial: An Introduction to plotly
DataCamp
12 R Tutorial: Plotting a single variable
R Tutorial: Plotting a single variable
DataCamp
13 R Tutorial: Bivariate graphics
R Tutorial: Bivariate graphics
DataCamp
14 Python Tutorial: Customer Segmentation in Python
Python Tutorial: Customer Segmentation in Python
DataCamp
15 Python Tutorial: Time cohorts
Python Tutorial: Time cohorts
DataCamp
16 Python Tutorial: Calculate cohort metrics
Python Tutorial: Calculate cohort metrics
DataCamp
17 Python Tutorial: Cohort analysis visualization
Python Tutorial: Cohort analysis visualization
DataCamp
18 R Tutorial: Building Dashboards with flexdashboard
R Tutorial: Building Dashboards with flexdashboard
DataCamp
19 R Tutorial: Anatomy of a flexdashboard
R Tutorial: Anatomy of a flexdashboard
DataCamp
20 R Tutorial: Layout basics
R Tutorial: Layout basics
DataCamp
21 R Tutorial: Advanced layouts
R Tutorial: Advanced layouts
DataCamp
22 Python Tutorial: Time Series Analysis in Python
Python Tutorial: Time Series Analysis in Python
DataCamp
23 Python Tutorial: Correlation of Two Time Series
Python Tutorial: Correlation of Two Time Series
DataCamp
24 Python Tutorial: Simple Linear Regressions
Python Tutorial: Simple Linear Regressions
DataCamp
25 Python Tutorial: Autocorrelation
Python Tutorial: Autocorrelation
DataCamp
26 R Tutorial: The gapminder dataset
R Tutorial: The gapminder dataset
DataCamp
27 R Tutorial: The filter verb
R Tutorial: The filter verb
DataCamp
28 R Tutorial: The arrange verb
R Tutorial: The arrange verb
DataCamp
29 R Tutorial: The mutate verb
R Tutorial: The mutate verb
DataCamp
30 R Tutorial: What is cluster analysis?
R Tutorial: What is cluster analysis?
DataCamp
31 R Tutorial: Distance between two observations
R Tutorial: Distance between two observations
DataCamp
32 R Tutorial: The importance of scale
R Tutorial: The importance of scale
DataCamp
33 R Tutorial: Measuring distance for categorical data
R Tutorial: Measuring distance for categorical data
DataCamp
34 Python Tutorial: Plotting multiple graphs
Python Tutorial: Plotting multiple graphs
DataCamp
35 Python Tutorial: Customizing axes
Python Tutorial: Customizing axes
DataCamp
36 Python Tutorial: Legends, annotations, & styles
Python Tutorial: Legends, annotations, & styles
DataCamp
37 Python Tutorial: Introduction to iterators
Python Tutorial: Introduction to iterators
DataCamp
38 Python Tutorial: Playing with iterators
Python Tutorial: Playing with iterators
DataCamp
39 Python Tutorial: Using iterators to load large files into memory
Python Tutorial: Using iterators to load large files into memory
DataCamp
40 SQL Tutorial: Introduction to Relational Databases in SQL
SQL Tutorial: Introduction to Relational Databases in SQL
DataCamp
41 SQL Tutorial: Tables: At the core of every database
SQL Tutorial: Tables: At the core of every database
DataCamp
42 SQL Tutorial: Update your database as the structure changes
SQL Tutorial: Update your database as the structure changes
DataCamp
43 Python Tutorial: Classification-Tree Learning
Python Tutorial: Classification-Tree Learning
DataCamp
44 Python Tutorial: Decision-Tree for Classification
Python Tutorial: Decision-Tree for Classification
DataCamp
45 Python Tutorial: Decision-Tree for Regression
Python Tutorial: Decision-Tree for Regression
DataCamp
46 Python Tutorial: Census Subject Tables
Python Tutorial: Census Subject Tables
DataCamp
47 Python Tutorial: Census Geography
Python Tutorial: Census Geography
DataCamp
48 Python Tutorial: Using the Census API
Python Tutorial: Using the Census API
DataCamp
49 R Tutorial: A/B Testing in R
R Tutorial: A/B Testing in R
DataCamp
50 R Tutorial: Baseline Conversion Rates
R Tutorial: Baseline Conversion Rates
DataCamp
51 R Tutorial: Designing an Experiment - Power Analysis
R Tutorial: Designing an Experiment - Power Analysis
DataCamp
52 R Tutorial: Introduction to qualitative data
R Tutorial: Introduction to qualitative data
DataCamp
53 R Tutorial: Understanding your qualitative variables
R Tutorial: Understanding your qualitative variables
DataCamp
54 R Tutorial: Making Better Plots
R Tutorial: Making Better Plots
DataCamp
55 SQL Tutorial: OLTP and OLAP
SQL Tutorial: OLTP and OLAP
DataCamp
SQL Tutorial: Storing data
SQL Tutorial: Storing data
DataCamp
57 SQL Tutorial: Database design
SQL Tutorial: Database design
DataCamp
58 Python Tutorial: Introduction to spaCy
Python Tutorial: Introduction to spaCy
DataCamp
59 Python Tutorial: Statistical Models
Python Tutorial: Statistical Models
DataCamp
60 Python Tutorial: Rule-based Matching
Python Tutorial: Rule-based Matching
DataCamp

This video teaches the basics of data storage and introduces different solutions for storing and analyzing data, including traditional databases, data warehouses, and data lakes. It covers the trade-offs between structured and unstructured data and discusses the importance of organizing and cataloging data lakes.

Key Takeaways
  1. Identify the type of data to be stored
  2. Choose a suitable storage solution
  3. Design a database schema
  4. Load data into the storage solution
  5. Transform and analyze the data
💡 Data lakes are a cost-effective solution for storing large amounts of unstructured data, but require organization and cataloging to avoid becoming a 'data swamp'

Related Reads

📰
What are the real-world applications of data science?
Learn how data science is applied in real-world industries to drive better decisions and improve efficiency
Dev.to AI
📰
Why Statistics is Important in Data Science
Statistics is the foundation of data science, enabling professionals to extract insights and make informed decisions from data, and its importance cannot be overstated
Medium · Data Science
📰
Does This Have AI in It Yet?
You can build AI-friendly systems using existing data discipline skills, no new skills required
Medium · Data Science
📰
Foundation First : Why Poor Data Quality Silently Destroys Enterprise AI, Analytics, and System…
Poor data quality can silently destroy enterprise AI, analytics, and systems, making it crucial to prioritize data foundation
Medium · AI
Up next
Spreadsheet Guy Meets the CFO: "Define How Much"
Digital Transformation with Eric Kimberling
Watch →