Skip to content

Commit

Permalink
knit with pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
MicheleTobias committed Apr 16, 2024
1 parent c6318df commit 59dec5b
Show file tree
Hide file tree
Showing 14 changed files with 1,338 additions and 704 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ a database and answer questions, and joining data from separate tables.

## Goals

fter this workshop learners should be able to:
After this workshop learners should be able to:

* Describe the advantages and disadvantages of using SQL with your own data.
* Use SQL queries to view, filter, aggregate, and combine data.
Expand Down
Binary file modified _main.rds
Binary file not shown.
90 changes: 50 additions & 40 deletions docs/404.html

Large diffs are not rendered by default.

Binary file added docs/_main.pdf
Binary file not shown.
292 changes: 201 additions & 91 deletions docs/concepts.html

Large diffs are not rendered by default.

127 changes: 62 additions & 65 deletions docs/conclusion.html

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions docs/database-set-up.html

Large diffs are not rendered by default.

674 changes: 339 additions & 335 deletions docs/hands-on-with-sql-code.html

Large diffs are not rendered by default.

124 changes: 62 additions & 62 deletions docs/index.html

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions docs/reference-keys.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ advantages-disadvantages-of-sql
the-library-checkouts-database
entity-relationship-diagrams
data-definitions
database-set-up
sqlitestudio
create-a-database
load-the-database
load-the-sql-script
saving-scripts
hands-on-with-sql-code
viewing-data
select-from
Expand Down Expand Up @@ -39,7 +41,11 @@ inner-join
left-join
subqueries
saving-query-results
export-query-results
connecting-databases-to-other-analysis-tools
export-tables
programming-language-connections
data-management
update-tables
add-populate-a-column
conclusion
resources
245 changes: 245 additions & 0 deletions docs/resources.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
<!DOCTYPE html>
<html lang="" xml:lang="">
<head>

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>6 Resources | Intro to SQL for Querying Databases</title>
<meta name="description" content="6 Resources | Intro to SQL for Querying Databases" />
<meta name="generator" content="bookdown 0.38 and GitBook 2.6.7" />

<meta property="og:title" content="6 Resources | Intro to SQL for Querying Databases" />
<meta property="og:type" content="book" />


<meta name="github-repo" content="ucdavisdatalab/workshop_intro_to_sql" />

<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="6 Resources | Intro to SQL for Querying Databases" />




<meta name="author" content="Michele Tobias" />
<meta name="author" content="Nicholas Alonzo" />
<meta name="author" content="Nick Ulle" />


<meta name="date" content="2024-04-16" />

<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />


<link rel="prev" href="conclusion.html"/>

<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/fuse.js@6.4.6/dist/fuse.min.js"></script>
<link href="libs/gitbook-2.6.7/css/style.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-table.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-bookdown.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-highlight.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-search.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-fontsettings.css" rel="stylesheet" />
<link href="libs/gitbook-2.6.7/css/plugin-clipboard.css" rel="stylesheet" />








<link href="libs/anchor-sections-1.1.0/anchor-sections.css" rel="stylesheet" />
<link href="libs/anchor-sections-1.1.0/anchor-sections-hash.css" rel="stylesheet" />
<script src="libs/anchor-sections-1.1.0/anchor-sections.js"></script>



<style type="text/css">

div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
</style>

</head>

<body>



<div class="book without-animation with-summary font-size-2 font-family-1" data-basepath=".">

<div class="book-summary">
<nav role="navigation">

<ul class="summary">
<li><a href="https://datalab.ucdavis.edu/">
<img src="https://datalab.ucdavis.edu/wp-content/uploads/2019/07/datalab-logo-full-color-rgb-1.png" style="height: 100%; width: 100%; object-fit: contain" />
</a></li>
<li><a href="./" style="font-size: 18px">Intro to SQL for Querying Databases</a></li>

<li class="divider"></li>
<li class="chapter" data-level="" data-path="index.html"><a href="index.html"><i class="fa fa-check"></i>Overview</a></li>
<li class="chapter" data-level="1" data-path="concepts.html"><a href="concepts.html"><i class="fa fa-check"></i><b>1</b> Concepts</a>
<ul>
<li class="chapter" data-level="1.1" data-path="concepts.html"><a href="concepts.html#what-is-a-relational-database"><i class="fa fa-check"></i><b>1.1</b> What is a Relational Database?</a></li>
<li class="chapter" data-level="1.2" data-path="concepts.html"><a href="concepts.html#what-is-sql"><i class="fa fa-check"></i><b>1.2</b> What is SQL?</a>
<ul>
<li class="chapter" data-level="1.2.1" data-path="concepts.html"><a href="concepts.html#what-kinds-of-questions-can-sql-answer"><i class="fa fa-check"></i><b>1.2.1</b> What kinds of questions can SQL answer?</a></li>
</ul></li>
<li class="chapter" data-level="1.3" data-path="concepts.html"><a href="concepts.html#what-is-a-relational-database-management-system"><i class="fa fa-check"></i><b>1.3</b> What is a Relational Database Management System?</a></li>
<li class="chapter" data-level="1.4" data-path="concepts.html"><a href="concepts.html#advantages-disadvantages-of-sql"><i class="fa fa-check"></i><b>1.4</b> Advantages &amp; Disadvantages of SQL</a></li>
</ul></li>
<li class="chapter" data-level="2" data-path="the-library-checkouts-database.html"><a href="the-library-checkouts-database.html"><i class="fa fa-check"></i><b>2</b> The Library Checkouts Database</a>
<ul>
<li class="chapter" data-level="2.1" data-path="the-library-checkouts-database.html"><a href="the-library-checkouts-database.html#entity-relationship-diagrams"><i class="fa fa-check"></i><b>2.1</b> Entity Relationship Diagrams</a></li>
<li class="chapter" data-level="2.2" data-path="the-library-checkouts-database.html"><a href="the-library-checkouts-database.html#data-definitions"><i class="fa fa-check"></i><b>2.2</b> Data Definitions</a></li>
</ul></li>
<li class="chapter" data-level="3" data-path="database-set-up.html"><a href="database-set-up.html"><i class="fa fa-check"></i><b>3</b> Database Set Up</a>
<ul>
<li class="chapter" data-level="3.1" data-path="database-set-up.html"><a href="database-set-up.html#sqlitestudio"><i class="fa fa-check"></i><b>3.1</b> SQLiteStudio</a>
<ul>
<li class="chapter" data-level="3.1.1" data-path="database-set-up.html"><a href="database-set-up.html#create-a-database"><i class="fa fa-check"></i><b>3.1.1</b> Create a Database</a></li>
<li class="chapter" data-level="3.1.2" data-path="database-set-up.html"><a href="database-set-up.html#load-the-database"><i class="fa fa-check"></i><b>3.1.2</b> Load the Database</a></li>
<li class="chapter" data-level="3.1.3" data-path="database-set-up.html"><a href="database-set-up.html#saving-scripts"><i class="fa fa-check"></i><b>3.1.3</b> Saving Scripts</a></li>
</ul></li>
</ul></li>
<li class="chapter" data-level="4" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html"><i class="fa fa-check"></i><b>4</b> Hands-On with SQL Code</a>
<ul>
<li class="chapter" data-level="4.1" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#viewing-data"><i class="fa fa-check"></i><b>4.1</b> Viewing Data</a>
<ul>
<li class="chapter" data-level="4.1.1" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#select-from"><i class="fa fa-check"></i><b>4.1.1</b> SELECT &amp; FROM</a></li>
<li class="chapter" data-level="4.1.2" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#selecting-columns"><i class="fa fa-check"></i><b>4.1.2</b> Selecting Columns</a></li>
<li class="chapter" data-level="4.1.3" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#unique-values"><i class="fa fa-check"></i><b>4.1.3</b> Unique Values</a></li>
<li class="chapter" data-level="4.1.4" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#ordering-results"><i class="fa fa-check"></i><b>4.1.4</b> Ordering Results</a></li>
<li class="chapter" data-level="4.1.5" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#limiting-number-of-rows"><i class="fa fa-check"></i><b>4.1.5</b> Limiting Number of Rows</a></li>
<li class="chapter" data-level="4.1.6" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#commenting"><i class="fa fa-check"></i><b>4.1.6</b> Commenting</a></li>
</ul></li>
<li class="chapter" data-level="4.2" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#filtering-data"><i class="fa fa-check"></i><b>4.2</b> Filtering Data</a>
<ul>
<li class="chapter" data-level="4.2.1" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#and-or-operators"><i class="fa fa-check"></i><b>4.2.1</b> AND &amp; OR Operators</a></li>
<li class="chapter" data-level="4.2.2" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#in-operator"><i class="fa fa-check"></i><b>4.2.2</b> IN Operator</a></li>
<li class="chapter" data-level="4.2.3" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#between-operator"><i class="fa fa-check"></i><b>4.2.3</b> BETWEEN Operator</a></li>
<li class="chapter" data-level="4.2.4" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#like-operator"><i class="fa fa-check"></i><b>4.2.4</b> LIKE Operator</a></li>
<li class="chapter" data-level="4.2.5" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#is-null-operator"><i class="fa fa-check"></i><b>4.2.5</b> IS NULL Operator</a></li>
<li class="chapter" data-level="4.2.6" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#not-operator"><i class="fa fa-check"></i><b>4.2.6</b> NOT Operator</a></li>
</ul></li>
<li class="chapter" data-level="4.3" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#aggregating-data"><i class="fa fa-check"></i><b>4.3</b> Aggregating Data</a>
<ul>
<li class="chapter" data-level="4.3.1" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#count"><i class="fa fa-check"></i><b>4.3.1</b> Count</a></li>
<li class="chapter" data-level="4.3.2" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#average"><i class="fa fa-check"></i><b>4.3.2</b> Average</a></li>
<li class="chapter" data-level="4.3.3" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#sum"><i class="fa fa-check"></i><b>4.3.3</b> Sum</a></li>
<li class="chapter" data-level="4.3.4" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#grouping-data"><i class="fa fa-check"></i><b>4.3.4</b> Grouping Data</a></li>
<li class="chapter" data-level="4.3.5" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#having"><i class="fa fa-check"></i><b>4.3.5</b> Having</a></li>
</ul></li>
<li class="chapter" data-level="4.4" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#joining-data"><i class="fa fa-check"></i><b>4.4</b> Joining Data</a>
<ul>
<li class="chapter" data-level="4.4.1" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#join-types"><i class="fa fa-check"></i><b>4.4.1</b> JOIN Types</a></li>
<li class="chapter" data-level="4.4.2" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#join-steps"><i class="fa fa-check"></i><b>4.4.2</b> JOIN steps</a></li>
<li class="chapter" data-level="4.4.3" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#inner-join"><i class="fa fa-check"></i><b>4.4.3</b> INNER JOIN</a></li>
<li class="chapter" data-level="4.4.4" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#left-join"><i class="fa fa-check"></i><b>4.4.4</b> LEFT JOIN</a></li>
</ul></li>
<li class="chapter" data-level="4.5" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#subqueries"><i class="fa fa-check"></i><b>4.5</b> Subqueries</a></li>
<li class="chapter" data-level="4.6" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#saving-query-results"><i class="fa fa-check"></i><b>4.6</b> Saving Query Results</a>
<ul>
<li class="chapter" data-level="4.6.1" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#connecting-databases-to-other-analysis-tools"><i class="fa fa-check"></i><b>4.6.1</b> Connecting Databases to Other Analysis Tools</a></li>
</ul></li>
<li class="chapter" data-level="4.7" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#data-management"><i class="fa fa-check"></i><b>4.7</b> Data Management</a>
<ul>
<li class="chapter" data-level="4.7.1" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#update-tables"><i class="fa fa-check"></i><b>4.7.1</b> Update Tables</a></li>
<li class="chapter" data-level="4.7.2" data-path="hands-on-with-sql-code.html"><a href="hands-on-with-sql-code.html#add-populate-a-column"><i class="fa fa-check"></i><b>4.7.2</b> Add &amp; Populate a Column</a></li>
</ul></li>
</ul></li>
<li class="chapter" data-level="5" data-path="conclusion.html"><a href="conclusion.html"><i class="fa fa-check"></i><b>5</b> Conclusion</a></li>
<li class="chapter" data-level="6" data-path="resources.html"><a href="resources.html"><i class="fa fa-check"></i><b>6</b> Resources</a></li>
<li class="divider"></li>
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">
<img alt="CC BY-SA 4.0" src="https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg" style="float: right; padding-right: 10px;" />
</a>

</ul>

</nav>
</div>

<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Intro to SQL for Querying Databases</a>
</h1>
</div>

<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">

<section class="normal" id="section-">
<div id="resources" class="section level1 hasAnchor" number="6">
<h1><span class="header-section-number">6</span> Resources<a href="resources.html#resources" class="anchor-section" aria-label="Anchor link to header"></a></h1>
<p><a href="https://github.com/ucdavisdatalab/Spatial_SQL">DataLab’s Spatial SQL Workshop</a></p>
<p><a href="https://www.w3schools.com/sql/default.asp">W3Schools SQL Materials</a> - This is an excellent reference for SQL syntax with a fun “try it yourself” feature.</p>
<p><a href="http://swcarpentry.github.io/sql-novice-survey/">Sofware Carpentry’s SQL Novice Workshop</a></p>
<p><a href="https://github.com/clarkfitzg/SQLworkshop">Clark Fitzgeralds &amp; Nick Ulle’s SQL Workshop</a></p>
<p><a href="https://github.com/clarkfitzg/SQLworkshop/blob/master/sql_cheatsheet.pdf">Clark Fitzgeralds &amp; Nick Ulle’s SQL Cheatsheet</a></p>
<p><a href="https://www.lucidchart.com/pages/er-diagrams">Lucidchart’s Entity Relationship Diagrams Overview</a></p>
<p>Working with SQL databases and queries in R:</p>
<ul>
<li><p><a href="https://db.rstudio.com/getting-started/database-queries/">RStudio’s Database Queries with R</a></p></li>
<li><p><a href="http://dept.stat.lsa.umich.edu/~jerrick/courses/stat701/notes/sql.html">University of Michigan’s Stats 701 Class Notes</a></p></li>
</ul>

</div>
</section>

</div>
</div>
</div>
<a href="conclusion.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page"><i class="fa fa-angle-left"></i></a>

</div>
</div>
<script src="libs/gitbook-2.6.7/js/app.min.js"></script>
<script src="libs/gitbook-2.6.7/js/clipboard.min.js"></script>
<script src="libs/gitbook-2.6.7/js/plugin-search.js"></script>
<script src="libs/gitbook-2.6.7/js/plugin-sharing.js"></script>
<script src="libs/gitbook-2.6.7/js/plugin-fontsettings.js"></script>
<script src="libs/gitbook-2.6.7/js/plugin-bookdown.js"></script>
<script src="libs/gitbook-2.6.7/js/jquery.highlight.js"></script>
<script src="libs/gitbook-2.6.7/js/plugin-clipboard.js"></script>
<script>
gitbook.require(["gitbook"], function(gitbook) {
gitbook.start({
"sharing": false,
"fontsettings": {
"theme": "white",
"family": "sans",
"size": 2
},
"edit": {
"link": "https://github.com/ucdavisdatalab/workshop_intro_to_sql/edit/master/06_resources.Rmd",
"text": "Edit"
},
"history": {
"link": null,
"text": null
},
"view": {
"link": "https://github.com/ucdavisdatalab/workshop_intro_to_sql/blob/master/06_resources.Rmd",
"text": null
},
"download": ["_main.pdf"],
"search": {
"engine": "fuse",
"options": null
},
"toc": {
"collapse": "section"
}
});
});
</script>

</body>

</html>
2 changes: 1 addition & 1 deletion docs/search_index.json

Large diffs are not rendered by default.

Loading

0 comments on commit 59dec5b

Please sign in to comment.