All Projects → ucdavisdatalab → workshop_intro_to_sql

ucdavisdatalab / workshop_intro_to_sql

Licence: other
Reader for the Intro to SQL workshop series.

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to workshop intro to sql

kc-sofastack-demo
SOFAStack Demo for SOFAStack Cloud Native Workshop on KubeCon China 2019
Stars: ✭ 37 (+68.18%)
Mutual labels:  workshop
kubeless-workshop
Serverless Kubernetes Workshop with Kubeless
Stars: ✭ 14 (-36.36%)
Mutual labels:  workshop
intro-to-nextjs
💈Workshop for those getting started with Next.js
Stars: ✭ 21 (-4.55%)
Mutual labels:  workshop
start-here
You should open this repo first
Stars: ✭ 86 (+290.91%)
Mutual labels:  workshop
teach-shiny
Materials for the Shiny Train the Trainer workshop
Stars: ✭ 38 (+72.73%)
Mutual labels:  workshop
ecs154a-ssii18
Course files for ECS 154A in Summer Session II 2018.
Stars: ✭ 13 (-40.91%)
Mutual labels:  ucdavis
react-workshop
Practical Introduction to React (with Redux & React Router v4)
Stars: ✭ 17 (-22.73%)
Mutual labels:  workshop
dat-workshop
How to build web apps using Dat. A workshop by GEUT.
Stars: ✭ 50 (+127.27%)
Mutual labels:  workshop
aws-ai-ml-workshop-kr
A collection of localized (Korean) AWS AI/ML workshop materials for hands-on labs.
Stars: ✭ 65 (+195.45%)
Mutual labels:  workshop
elixir-fire-brigade-workshop
Workshop "Join the Elixir Fire Brigade - Level-up Your Elixir Debugging Skills" (ElixirConf US 2017)
Stars: ✭ 14 (-36.36%)
Mutual labels:  workshop
trouble-training
FullStack DDD/CQRS with GraphQL workshop including distributed tracing and monitoring. This shows the configuration from React frontend to .Net backend.
Stars: ✭ 271 (+1131.82%)
Mutual labels:  workshop
lectures
Learn Functional Programming in Scala
Stars: ✭ 114 (+418.18%)
Mutual labels:  workshop
podstawy-dl-2019
Materiały z warsztatów z podstaw Deep Learningu dla początkujących. Wiosna 2019.
Stars: ✭ 14 (-36.36%)
Mutual labels:  workshop
learnp2p
https://learnp2p.org
Stars: ✭ 22 (+0%)
Mutual labels:  workshop
how-to-build-htmlwidgets
Material - How to build htmlwidgets workshop
Stars: ✭ 35 (+59.09%)
Mutual labels:  workshop
CSSclasses
The homepage for CSSclasses, a free CSS workshop series
Stars: ✭ 19 (-13.64%)
Mutual labels:  workshop
fb-messenger
Implement React concepts incrementally to a messenger app, training from https://reactjs.academy
Stars: ✭ 70 (+218.18%)
Mutual labels:  workshop
bounded-disturbances
A k6/.NET red/green load testing workshop
Stars: ✭ 39 (+77.27%)
Mutual labels:  workshop
BestPracticesWorkshop
Repository for the workshop "Best practices on development"
Stars: ✭ 14 (-36.36%)
Mutual labels:  workshop
dotdoodl-kid-classes
Teaching materials for an intro to CSS animations for kids series.
Stars: ✭ 26 (+18.18%)
Mutual labels:  workshop

Workshop: Intro to SQL for Querying Databases

UC Davis DataLab
Spring 2022
Instructor: Nicholas Alonzo <[email protected]>
Authors: Nicholas Alonzo & Michele Tobias
Editor: Nick Ulle

This workshop teaches the basics of SQL using SQLite and SQLiteStudio. This workshop provides an overview of the utility and base SQL commands for working with data in a relational database. We’ll focus on querying data to get to know a database and answer questions, and joining data from separate tables.

Goals

After this workshop learners should be able to:

  • Describe the advantages and disadvantages of using SQL for data problems.
  • Use SQL queries to view, filter, aggregate, and combine data.
  • Combine SQL keywords to develop sophisticated queries.
  • Use SQL queries to solve problems with and answer questions about data.
  • Identify additional resources for learning more about SQL (such as how to use SQL with the R programming language).

Prerequisites

No prior programming experience is necessary. Before the workshop, learners should:

  • Install SQLiteStudio and verify that it runs. See the install guide for details.
  • Download the file 2022-04-04_intro-sql.zip from this link. Unzip the file and keep track of where it's saved on your computer. It contains a data set and a script that will be used during the workshop:
    • lcdb.db
    • intro_to_sql_spring22.sql

Contributing

The course reader is a live webpage, hosted through GitHub, where you can enter curriculum content and post it to a public-facing site for learners.

To make alterations to the reader:

  1. Run git pull, or if it's your first time contributing, see Setup.

  2. Edit an existing chapter file or create a new one. Chapter files are R Markdown files (.Rmd) at the top level of the repo. Enter your text, code, and other information directly into the file. Make sure your file:

    • Follows the naming scheme ##_topic-of-chapter.Rmd (the only exception is index.Rmd, which contains the reader's front page).
    • Begins with a first-level header (like # This). This will be the title of your chapter. Subsequent section headers should be second-level headers (like ## This) or below.
    • Uses caching for resource-intensive code (see Caching).

    Put any supporting resources in data/ or img/. For large files, see Large Files. You do not need to add resources generated by your R code (such as plots). The knit step saves these in docs/ automatically.

  3. Run knit.R to regenerate the HTML files in the docs/. You can do this in the shell with ./knit.R or in R with source("knit.R").

  4. Run renv::snapshot() in an R session at the top level of the repo to automatically add any packages your code uses to the project package library.

  5. When you're finished, git add:

    • Any files you added or edited directly, including in data/ and img/
    • docs/ (all of it)
    • _bookdown_files/ (contains the knitr cache)
    • renv.lock (contains the renv package list)
Then `git commit` and `git push`. The live web page will update
automatically after 1-10 minutes.

Caching

If one of your code chunks takes a lot of time or memory to run, consider caching the result, so the chunk won't run every time someone knits the reader. To cache a code chunk, add cache=TRUE in the chunk header. It's best practice to label cached chunks, like so:

```{r YOUR_CHUNK_NAME, cache=TRUE}
# Your code...
```

Cached files are stored in the _bookdown_files/ directory. If you ever want to clear the cache, you can delete this directory (or its subdirectories). The cache will be rebuilt the next time you knit the reader.

Beware that caching doesn't work with some packages, especially packages that use external libraries. Because of this, it's best to leave caching off for code chunks that are not resource-intensive.

Back to Top

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].