Skip to content
DA SQL Track: Introduction to SQL
Introduction to SQL
Here you can access the books table used in the course.
Note: When using sample integrations such as those that contain course data, you have read-only access. You can run queries, but cannot make any changes such as adding, deleting, or modifying the data (e.g., creating tables, views, etc.).
Take Notes
Add notes about the concepts you've learned and SQL cells with queries you want to keep.
Add your notes here
DataFrameas
books
variable
-- Add your own queries here
SELECT *
FROM books;Hidden output
Explore Datasets
Use the books table to explore the data and practice your skills!
- Select only the
titlecolumn. - Alias the
titlecolumn asbook_title. - Select the distinct author names from the
authorcolumn. - Select all records from the table and limit your results to 10.
DataFrameas
df
variable
-- Code to implement the bullet points presented in the section Explore Datasets
SELECT title as book_title
FROM books;DataFrameas
df1
variable
-- Select the distinct author names from the author column.
SELECT DISTINCT author
FROM books;Hidden output
DataFrameas
df2
variable
-- Select all records from the table and limit your results to 10.
SELECT *
FROM books
LIMIT 10;Hidden output