Coursera 笔记

Module 03 · Data Engineering Lifecycle数据工程生命周期

Lab: Explore your dataset using SQL queries using Datasette实验:使用 Datasette 通过 SQL 查询探索数据集

Coursera ↗

In this lab you will explore your dataset with sql queries using a SQL practice tool called Datasette in the Skills Network Lab environment.
在本实验中,您将使用技能网络实验室环境中的 SQL 实践工具 Datasette,通过 SQL 查询探索您的数据集。

Lab Overview:  实验概述:
Now that you have learned how querying techniques can help you to explore and analyze your data, you will run some basic SQL queries on the data you loaded into your database instance.
既然您已经了解了查询技术如何帮助您探索和分析数据,您将对加载到数据库实例中的数据运行一些基本的 SQL 查询。

Estimated time needed: 15 minutes
预计所需时间:15 分钟

Objectives 目标

After completing this lab, you will be able to:
完成本实验后,您将能够:

  • Execute basic SQL queries on the data you loaded into your database.
    对加载到数据库中的数据执行基本的 SQL 查询。

Database Used in this Lab 本实验中使用的数据库

Here, we are making use of an internal preloaded CarSalesdata database that contains the exercise03_car_sales_data table.
在这里,我们使用一个内部预加载的 CarSalesdata 数据库,其中包含 exercise03_car_sales_data 表。

Exercise 1: Execute basic SQL queries on the data you loaded into your database. 练习 1:对加载到数据库中的数据执行基本 SQL 查询。

  1. Execute the following query to check the maximum price.
    执行以下查询以检查最高价格。
    select max(price) as max_price from exercise03_car_sales_data
    


2. Execute the following query to display the distinct models.
执行以下查询以显示不同的型号。

select distinct(model) from exercise03_car_sales_data;

Congratulations! You have successfully executed SQL queries on your loaded data 恭喜!您已成功对加载的数据执行 SQL 查询

Author(s) 作者