Platform
Solutions
Resources
Pricing
Sign in
Sign up
Charles Redmond
Workspace
Fork
Public
aaa-Database550Fall23
By
Charles Redmond
Edited
Sep 21, 2023
4 forks
5
aaa-Database550Fall23
Plotting Template
Class Exercise Part 2
Make-up Quiz
Views and Analytics
The CASE Statement
CASE Part 2
Correlated SubQueries
Quiz 6
Chinook Problems
Subqueries
Sets Part 2
Sets
H VS SO Application
Homerun Application
Plotting Tutorial
Data Viz
Joins
Baseball Database
Creating and Populating a Database
Insert cell
Insert cell
Insert cell
db
SELECT playerID
FROM batting
WHERE teamID = 'PHI' AND yearID = 2021
UNION
SELECT playerID
FROM batting
WHERE teamID = 'PHI' AND yearID = 2022
Insert cell
db
SELECT playerID
FROM batting
UNION
SELECT playerID
FROM managers
Insert cell
Insert cell
db
SELECT playerID,yearID,teamID
FROM batting
WHERE teamID = 'NYA'
INTERSECT
SELECT playerID,yearID,teamID
FROM batting
WHERE playerID = 'ruthba01'
Insert cell
db
SELECT batting.playerID,nameFirst,nameLast
FROM batting INNER JOIN people
ON batting.playerID = people.playerID
INTERSECT
SELECT managers.playerID,nameFirst,nameLast
FROM managers INNER JOIN people
ON managers.playerID = people.playerID
Insert cell
Insert cell
db
=
DuckDBClient
.
of
(
{
batting
:
FileAttachment
(
"Batting.csv"
)
,
hall
:
FileAttachment
(
"HallOfFame.csv"
)
,
managers
:
FileAttachment
(
"Managers.csv"
)
,
people
:
FileAttachment
(
"People.csv"
)
,
teams
:
FileAttachment
(
"Teams.csv"
)
}
)
Insert cell
db
SELECT *
FROM managers
LIMIT 10
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
Cells
db
File attachments
Batting.csv
CSV
People.csv
CSV
Teams.csv
CSV
Managers.csv
CSV
HallOfFame.csv
CSV
Databases
Add comment
Select
Duplicate
Copy link
Embed
Delete
Cells
db
File attachments
Batting.csv
CSV
People.csv
CSV
Teams.csv
CSV
Managers.csv
CSV
HallOfFame.csv
CSV
Databases
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
Cells
db
File attachments
Batting.csv
CSV
People.csv
CSV
Teams.csv
CSV
Managers.csv
CSV
HallOfFame.csv
CSV
Databases
Add comment
Select
Duplicate
Copy link
Embed
Delete
Cells
db
File attachments
Batting.csv
CSV
People.csv
CSV
Teams.csv
CSV
Managers.csv
CSV
HallOfFame.csv
CSV
Databases
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
db
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
Cells
db
File attachments
Batting.csv
CSV
People.csv
CSV
Teams.csv
CSV
Managers.csv
CSV
HallOfFame.csv
CSV
Databases