Skip to content

Commit 49afb0a

Browse files
Add recording link | Fix LIKE wildcard and license
1 parent 511fb81 commit 49afb0a

20 files changed

+327
-173
lines changed

03_hands-on-with-sql-code.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ The `LIKE` keyword tests whether text values match a given pattern. There are
250250
two different wildcard characters that you can use in the pattern:
251251

252252
* `_` matches exactly one character
253-
* `*` matches zero or more characters
253+
* `%` matches zero or more characters
254254

255255
Let’s look at an example to indicate we want to match the beginning of a
256256
string, but the end is allowed to vary. To show this, let's find users that

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ _Editor:_ [Nick Ulle](https://github.com/nick-ulle)
88

99
* [Reader](https://ucdavisdatalab.github.io/workshop_intro_to_sql/)
1010
* [Event Page](https://datalab.ucdavis.edu/eventscalendar/introduction-to-sql-for-querying-databases/)
11+
* [Event Recording](https://video.ucdavis.edu/media/t/1_ymmhls5c)
1112

1213
This workshop teaches the basics of SQL using SQLite and SQLiteStudio. This
1314
workshop provides an overview of the utility and base SQL commands for working

_main.rds

-24 Bytes
Binary file not shown.

docs/404.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
77
<title>Page not found | Intro to SQL for Querying Databases</title>
88
<meta name="description" content="Page not found | Intro to SQL for Querying Databases" />
9-
<meta name="generator" content="bookdown 0.24 and GitBook 2.6.7" />
9+
<meta name="generator" content="bookdown 0.28 and GitBook 2.6.7" />
1010

1111
<meta property="og:title" content="Page not found | Intro to SQL for Querying Databases" />
1212
<meta property="og:type" content="book" />
13-
<meta property="og:url" content="https://ucdavisdatalab.github.io/workshop_intro_to_sql/" />
1413

1514

1615
<meta name="github-repo" content="ucdavisdatalab/workshop_intro_to_sql" />
@@ -25,7 +24,7 @@
2524
<meta name="author" content="Michele Tobias" />
2625

2726

28-
<meta name="date" content="2022-04-10" />
27+
<meta name="date" content="2022-08-18" />
2928

3029
<meta name="viewport" content="width=device-width, initial-scale=1" />
3130
<meta name="apple-mobile-web-app-capable" content="yes" />
@@ -34,7 +33,6 @@
3433

3534

3635

37-
<script src="libs/header-attrs-2.11/header-attrs.js"></script>
3836
<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
3937
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/fuse.min.js"></script>
4038
<link href="libs/gitbook-2.6.7/css/style.css" rel="stylesheet" />
@@ -52,8 +50,9 @@
5250

5351

5452

55-
<link href="libs/anchor-sections-1.0.1/anchor-sections.css" rel="stylesheet" />
56-
<script src="libs/anchor-sections-1.0.1/anchor-sections.js"></script>
53+
<link href="libs/anchor-sections-1.1.0/anchor-sections.css" rel="stylesheet" />
54+
<link href="libs/anchor-sections-1.1.0/anchor-sections-hash.css" rel="stylesheet" />
55+
<script src="libs/anchor-sections-1.1.0/anchor-sections.js"></script>
5756

5857

5958

@@ -144,6 +143,11 @@
144143
</ul></li>
145144
</ul></li>
146145
<li class="chapter" data-level="" data-path="conclusion.html"><a href="conclusion.html"><i class="fa fa-check"></i>Conclusion</a></li>
146+
<li class="divider"></li>
147+
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">
148+
<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;" />
149+
</a>
150+
147151
</ul>
148152

149153
</nav>

docs/concepts.html

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
77
<title>1 Concepts | Intro to SQL for Querying Databases</title>
88
<meta name="description" content="1 Concepts | Intro to SQL for Querying Databases" />
9-
<meta name="generator" content="bookdown 0.21 and GitBook 2.6.7" />
9+
<meta name="generator" content="bookdown 0.28 and GitBook 2.6.7" />
1010

1111
<meta property="og:title" content="1 Concepts | Intro to SQL for Querying Databases" />
1212
<meta property="og:type" content="book" />
13-
<meta property="og:url" content="https://ucdavisdatalab.github.io/workshop_intro_to_sql/" />
1413

1514

1615
<meta name="github-repo" content="ucdavisdatalab/workshop_intro_to_sql" />
@@ -25,7 +24,7 @@
2524
<meta name="author" content="Michele Tobias" />
2625

2726

28-
<meta name="date" content="2022-04-13" />
27+
<meta name="date" content="2022-08-18" />
2928

3029
<meta name="viewport" content="width=device-width, initial-scale=1" />
3130
<meta name="apple-mobile-web-app-capable" content="yes" />
@@ -34,8 +33,8 @@
3433

3534
<link rel="prev" href="index.html"/>
3635
<link rel="next" href="the-library-checkouts-database.html"/>
37-
<script src="libs/header-attrs-2.10/header-attrs.js"></script>
38-
<script src="libs/jquery-2.2.3/jquery.min.js"></script>
36+
<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
37+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/fuse.min.js"></script>
3938
<link href="libs/gitbook-2.6.7/css/style.css" rel="stylesheet" />
4039
<link href="libs/gitbook-2.6.7/css/plugin-table.css" rel="stylesheet" />
4140
<link href="libs/gitbook-2.6.7/css/plugin-bookdown.css" rel="stylesheet" />
@@ -51,6 +50,9 @@
5150

5251

5352

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

5557

5658

@@ -141,6 +143,11 @@
141143
</ul></li>
142144
</ul></li>
143145
<li class="chapter" data-level="" data-path="conclusion.html"><a href="conclusion.html"><i class="fa fa-check"></i>Conclusion</a></li>
146+
<li class="divider"></li>
147+
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">
148+
<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;" />
149+
</a>
150+
144151
</ul>
145152

146153
</nav>
@@ -158,18 +165,18 @@ <h1>
158165
<div class="page-inner">
159166

160167
<section class="normal" id="section-">
161-
<div id="concepts" class="section level1" number="1">
162-
<h1><span class="header-section-number">1</span> Concepts</h1>
163-
<div id="what-is-a-relational-database" class="section level2" number="1.1">
164-
<h2><span class="header-section-number">1.1</span> What is a Relational Database?</h2>
168+
<div id="concepts" class="section level1 hasAnchor" number="1">
169+
<h1><span class="header-section-number">1</span> Concepts<a href="concepts.html#concepts" class="anchor-section" aria-label="Anchor link to header"></a></h1>
170+
<div id="what-is-a-relational-database" class="section level2 hasAnchor" number="1.1">
171+
<h2><span class="header-section-number">1.1</span> What is a Relational Database?<a href="concepts.html#what-is-a-relational-database" class="anchor-section" aria-label="Anchor link to header"></a></h2>
165172
<p>A <strong>relational database</strong> is a collection of tables (organized in rows and
166173
columns of data) that are related to each other in some way.</p>
167174
<p>Database tables would be the equivalent to spreadsheets in Excel and data frames
168175
in programming languages like R or Python.</p>
169176
<p>We’ll go more in-depth on the <em>relational</em> part when we cover the workshop dataset!</p>
170177
</div>
171-
<div id="what-is-sql" class="section level2" number="1.2">
172-
<h2><span class="header-section-number">1.2</span> What is SQL?</h2>
178+
<div id="what-is-sql" class="section level2 hasAnchor" number="1.2">
179+
<h2><span class="header-section-number">1.2</span> What is SQL?<a href="concepts.html#what-is-sql" class="anchor-section" aria-label="Anchor link to header"></a></h2>
173180
<p>SQL stands for <strong>structured query language</strong>. SQL is a programming language
174181
that allows you to answer questions about the data in a database using a
175182
standard set of keywords. You can pronounce SQL as “ess cue ell” or “sequel”.</p>
@@ -178,8 +185,8 @@ <h2><span class="header-section-number">1.2</span> What is SQL?</h2>
178185
<li>A <strong>SQL query</strong> is a set of instructions made up of keywords sent to the database
179186
to retrieve rows of table(s).</li>
180187
</ul>
181-
<div id="what-kinds-of-questions-can-sql-answer" class="section level3" number="1.2.1">
182-
<h3><span class="header-section-number">1.2.1</span> What kinds of questions can SQL answer?</h3>
188+
<div id="what-kinds-of-questions-can-sql-answer" class="section level3 hasAnchor" number="1.2.1">
189+
<h3><span class="header-section-number">1.2.1</span> What kinds of questions can SQL answer?<a href="concepts.html#what-kinds-of-questions-can-sql-answer" class="anchor-section" aria-label="Anchor link to header"></a></h3>
183190
<p>If you already work with data, you probably think about answering specific
184191
questions such as:</p>
185192
<ul>
@@ -190,8 +197,8 @@ <h3><span class="header-section-number">1.2.1</span> What kinds of questions can
190197
<p>You can use SQL to answer these kinds of questions.</p>
191198
</div>
192199
</div>
193-
<div id="what-is-a-relational-database-management-system" class="section level2" number="1.3">
194-
<h2><span class="header-section-number">1.3</span> What is a Relational Database Management System?</h2>
200+
<div id="what-is-a-relational-database-management-system" class="section level2 hasAnchor" number="1.3">
201+
<h2><span class="header-section-number">1.3</span> What is a Relational Database Management System?<a href="concepts.html#what-is-a-relational-database-management-system" class="anchor-section" aria-label="Anchor link to header"></a></h2>
195202
<p>A <strong>relational database management system</strong> (RDBMS) is a software system that
196203
manages the users of and tables within a database. There are many different
197204
systems available. For instance, you may have heard of MySQL, Postgres, and
@@ -207,8 +214,8 @@ <h2><span class="header-section-number">1.3</span> What is a Relational Database
207214
for a given RDBMS can be found in that system’s documentation. The keywords
208215
covered in this workshop are supported by almost all popular systems.</p>
209216
</div>
210-
<div id="advantages-disadvantages-of-sql" class="section level2" number="1.4">
211-
<h2><span class="header-section-number">1.4</span> Advantages &amp; Disadvantages of SQL</h2>
217+
<div id="advantages-disadvantages-of-sql" class="section level2 hasAnchor" number="1.4">
218+
<h2><span class="header-section-number">1.4</span> Advantages &amp; Disadvantages of SQL<a href="concepts.html#advantages-disadvantages-of-sql" class="anchor-section" aria-label="Anchor link to header"></a></h2>
212219
<p>SQL queries are <strong>declarative</strong>: you describe the data that you want. Then it’s
213220
up to SQL to determine the most efficient way to get that data. This approach
214221
to programming has several advantages:</p>
@@ -250,7 +257,6 @@ <h2><span class="header-section-number">1.4</span> Advantages &amp; Disadvantage
250257
</div>
251258
</div>
252259
<script src="libs/gitbook-2.6.7/js/app.min.js"></script>
253-
<script src="libs/gitbook-2.6.7/js/lunr.js"></script>
254260
<script src="libs/gitbook-2.6.7/js/clipboard.min.js"></script>
255261
<script src="libs/gitbook-2.6.7/js/plugin-search.js"></script>
256262
<script src="libs/gitbook-2.6.7/js/plugin-sharing.js"></script>
@@ -280,6 +286,10 @@ <h2><span class="header-section-number">1.4</span> Advantages &amp; Disadvantage
280286
"text": null
281287
},
282288
"download": null,
289+
"search": {
290+
"engine": "fuse",
291+
"options": null
292+
},
283293
"toc": {
284294
"collapse": "section"
285295
}

docs/conclusion.html

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
77
<title>Conclusion | Intro to SQL for Querying Databases</title>
88
<meta name="description" content="Conclusion | Intro to SQL for Querying Databases" />
9-
<meta name="generator" content="bookdown 0.21 and GitBook 2.6.7" />
9+
<meta name="generator" content="bookdown 0.28 and GitBook 2.6.7" />
1010

1111
<meta property="og:title" content="Conclusion | Intro to SQL for Querying Databases" />
1212
<meta property="og:type" content="book" />
13-
<meta property="og:url" content="https://ucdavisdatalab.github.io/workshop_intro_to_sql/" />
1413

1514

1615
<meta name="github-repo" content="ucdavisdatalab/workshop_intro_to_sql" />
@@ -25,7 +24,7 @@
2524
<meta name="author" content="Michele Tobias" />
2625

2726

28-
<meta name="date" content="2022-04-13" />
27+
<meta name="date" content="2022-08-18" />
2928

3029
<meta name="viewport" content="width=device-width, initial-scale=1" />
3130
<meta name="apple-mobile-web-app-capable" content="yes" />
@@ -34,8 +33,8 @@
3433

3534
<link rel="prev" href="hands-on-with-sql-code.html"/>
3635

37-
<script src="libs/header-attrs-2.10/header-attrs.js"></script>
38-
<script src="libs/jquery-2.2.3/jquery.min.js"></script>
36+
<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
37+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/fuse.min.js"></script>
3938
<link href="libs/gitbook-2.6.7/css/style.css" rel="stylesheet" />
4039
<link href="libs/gitbook-2.6.7/css/plugin-table.css" rel="stylesheet" />
4140
<link href="libs/gitbook-2.6.7/css/plugin-bookdown.css" rel="stylesheet" />
@@ -51,6 +50,9 @@
5150

5251

5352

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

5557

5658

@@ -141,6 +143,11 @@
141143
</ul></li>
142144
</ul></li>
143145
<li class="chapter" data-level="" data-path="conclusion.html"><a href="conclusion.html"><i class="fa fa-check"></i>Conclusion</a></li>
146+
<li class="divider"></li>
147+
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">
148+
<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;" />
149+
</a>
150+
144151
</ul>
145152

146153
</nav>
@@ -158,8 +165,8 @@ <h1>
158165
<div class="page-inner">
159166

160167
<section class="normal" id="section-">
161-
<div id="conclusion" class="section level1 unnumbered">
162-
<h1>Conclusion</h1>
168+
<div id="conclusion" class="section level1 unnumbered hasAnchor">
169+
<h1>Conclusion<a href="conclusion.html#conclusion" class="anchor-section" aria-label="Anchor link to header"></a></h1>
163170
<p>We covered a wide variety of SQL processes you might need in setting up a database and querying data. Did we cover everything you might need to know? Of course not. It’s only a 3 hour workshop and SQL is a big language. I highly encourage you to look at the resources below to learn more and expand your SQL skills. I also welcome pull requests and submitting issues for typo fixes or ideas for additional content.</p>
164171
<p><strong>Resources</strong></p>
165172
<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>
@@ -186,7 +193,6 @@ <h1>Conclusion</h1>
186193
</div>
187194
</div>
188195
<script src="libs/gitbook-2.6.7/js/app.min.js"></script>
189-
<script src="libs/gitbook-2.6.7/js/lunr.js"></script>
190196
<script src="libs/gitbook-2.6.7/js/clipboard.min.js"></script>
191197
<script src="libs/gitbook-2.6.7/js/plugin-search.js"></script>
192198
<script src="libs/gitbook-2.6.7/js/plugin-sharing.js"></script>
@@ -216,6 +222,10 @@ <h1>Conclusion</h1>
216222
"text": null
217223
},
218224
"download": null,
225+
"search": {
226+
"engine": "fuse",
227+
"options": null
228+
},
219229
"toc": {
220230
"collapse": "section"
221231
}

0 commit comments

Comments
 (0)