-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
210 lines (210 loc) · 11.4 KB
/
Copy pathindex.html
File metadata and controls
210 lines (210 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!doctype html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Learn SQL in the browser · SQL Learn</title>
<meta
name="description"
content="Learn SQL by writing queries in the browser. Free SQL practice for SELECT, WHERE, JOIN, GROUP BY, and more. No account, no install, and no personal data."
/>
<meta name="keywords" content="learn SQL, learning SQL, how to SQL, how to learn SQL, SQL tutorial, SQL practice, SQL exercises, write a SQL query" />
<meta name="author" content="SQL Learn" />
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />
<meta name="theme-color" content="#141218" />
<link rel="canonical" href="https://sqllearn.bitilia.com/" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/webp" href="/favicon.webp" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="SQL Learn" />
<meta property="og:title" content="Learn SQL in the browser · SQL Learn" />
<meta
property="og:description"
content="Learn SQL by writing queries in the browser. Free SQL practice for SELECT, WHERE, JOIN, GROUP BY, and more. No account, no install, and no personal data."
/>
<meta property="og:url" content="https://sqllearn.bitilia.com/" />
<meta property="og:image" content="https://sqllearn.bitilia.com/favicon.webp" />
<meta property="og:locale" content="en" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Learn SQL in the browser · SQL Learn" />
<meta
name="twitter:description"
content="Learn SQL by writing queries in the browser. Free SQL practice for SELECT, WHERE, JOIN, GROUP BY, and more. No account, no install, and no personal data."
/>
<meta name="twitter:image" content="https://sqllearn.bitilia.com/favicon.webp" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "https://sqllearn.bitilia.com/#website",
"url": "https://sqllearn.bitilia.com/",
"name": "SQL Learn",
"description": "Learn SQL by writing queries in the browser. Free SQL practice for SELECT, WHERE, JOIN, GROUP BY, and more. No account, no install, and no personal data.",
"inLanguage": "en",
"publisher": { "@id": "https://sqllearn.bitilia.com/#app" }
},
{
"@type": "WebApplication",
"@id": "https://sqllearn.bitilia.com/#app",
"name": "SQL Learn",
"url": "https://sqllearn.bitilia.com/",
"applicationCategory": "EducationalApplication",
"operatingSystem": "Web",
"browserRequirements": "Requires a modern browser. Queries run locally.",
"isAccessibleForFree": true,
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
"description": "SQL Learn is a free way to learn SQL by writing it. Each exercise gives you tables and a task. You write a query, run it in the browser, and see whether the result matches.",
"featureList": [
"SELECT statements",
"WHERE filtering",
"JOINs",
"GROUP BY and aggregations",
"ORDER BY",
"LIMIT and OFFSET",
"Subqueries",
"Window functions",
"In-browser SQLite"
]
},
{
"@type": "FAQPage",
"@id": "https://sqllearn.bitilia.com/#faq",
"url": "https://sqllearn.bitilia.com/#about",
"mainEntity": [
{
"@type": "Question",
"name": "How do I learn SQL?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Write a short query, run it, and check the result. Begin with Select Statements, then WHERE, then joins. SQL Learn is a set of exercises for that practice."
}
},
{
"@type": "Question",
"name": "How do I write SQL if I have never written a query?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Name the columns and the table, then run it: SELECT last_name, salary FROM employees. Change the columns and add a WHERE filter until the result matches the task."
}
},
{
"@type": "Question",
"name": "Is this SQL tutorial free?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. SQL Learn runs fully in the browser and makes no external requests. We do not process any personal data."
}
},
{
"@type": "Question",
"name": "Do I need to install a database to practice SQL?",
"acceptedAnswer": {
"@type": "Answer",
"text": "No. The exercises run on SQLite in the browser."
}
},
{
"@type": "Question",
"name": "What SQL should a beginner learn first?",
"acceptedAnswer": {
"@type": "Answer",
"text": "SELECT, WHERE, JOIN, GROUP BY, and ORDER BY. Those cover most questions people ask of a table."
}
}
]
},
{
"@type": "ItemList",
"@id": "https://sqllearn.bitilia.com/#topics",
"name": "SQL topics to practice",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Select Statements", "url": "https://sqllearn.bitilia.com/?source=topics&topic=select&q=1" },
{ "@type": "ListItem", "position": 2, "name": "WHERE Clause and Filtering", "url": "https://sqllearn.bitilia.com/?source=topics&topic=where&q=1" },
{ "@type": "ListItem", "position": 3, "name": "Aggregations", "url": "https://sqllearn.bitilia.com/?source=topics&topic=aggregations&q=1" },
{ "@type": "ListItem", "position": 4, "name": "ORDER BY and Sorting", "url": "https://sqllearn.bitilia.com/?source=topics&topic=order-by&q=1" },
{ "@type": "ListItem", "position": 5, "name": "LIMIT and OFFSET", "url": "https://sqllearn.bitilia.com/?source=topics&topic=limit-offset&q=1" },
{ "@type": "ListItem", "position": 6, "name": "Joins", "url": "https://sqllearn.bitilia.com/?source=topics&topic=joins&q=1" },
{ "@type": "ListItem", "position": 7, "name": "Subqueries", "url": "https://sqllearn.bitilia.com/?source=topics&topic=subqueries&q=1" },
{ "@type": "ListItem", "position": 8, "name": "Window Functions", "url": "https://sqllearn.bitilia.com/?source=topics&topic=windows&q=1" }
]
}
]
}
</script>
<script>
document.documentElement.classList.add("js");
</script>
<style>
html.js .crawl { display: none; }
.crawl {
max-width: 42rem;
margin: 0 auto;
padding: 32px 20px 64px;
font-family: Roboto, "Segoe UI", sans-serif;
color: #e6e0e9;
background: #141218;
line-height: 1.5;
}
.crawl h1, .crawl h2, .crawl h3 { font-weight: 500; line-height: 1.3; }
.crawl a { color: #d0bcff; }
.crawl ul, .crawl ol { padding-left: 1.25rem; }
</style>
</head>
<body>
<article class="crawl">
<h1>Learn SQL in the browser</h1>
<p>
SQL Learn is a free way to learn SQL by writing it. Each exercise gives you tables and a task. You write a query, run it in the browser, and see whether the result matches. There is no account, no install, and nothing is sent to a server.
</p>
<h2>How to learn SQL</h2>
<p>
Learning SQL sticks when you write a query and check the result, not when you only read one. Start with a select statement, then filtering, joins, and grouping.
</p>
<ol>
<li>Choose a topic. Select Statements is the right start if you are new to SQL.</li>
<li>Read the tables and the task.</li>
<li>Write the query and run it. A matching result means it is right.</li>
<li>Open a hint if you stall, then go on to the next exercise.</li>
</ol>
<h2>How to write a SQL query</h2>
<p>
A SQL query asks a table for rows. Start with SELECT and the columns you want, then FROM and the table name. Add WHERE to keep certain rows, JOIN to bring in a related table, GROUP BY to summarise, and ORDER BY to sort. LIMIT pages through the result.
</p>
<p>A first query looks like this: SELECT last_name, salary FROM employees WHERE salary >= 100000 ORDER BY salary DESC.</p>
<h2>What you can practice</h2>
<p>
Work through SELECT, WHERE, aggregations, ORDER BY, LIMIT and OFFSET, functions, duplicates, ranking, CASE, joins, self joins, subqueries, common table expressions, window functions, dates, and changes with INSERT, UPDATE, and DELETE.
</p>
<p>Other sets use a clinic, a shop, a streaming catalog, a community, and a search log, so you can practice SQL on more than one database.</p>
<h2>SQL topics</h2>
<ul>
<li><a href="/?source=topics&topic=select&q=1">Select Statements</a></li>
<li><a href="/?source=topics&topic=where&q=1">WHERE Clause & Filtering</a></li>
<li><a href="/?source=topics&topic=aggregations&q=1">Aggregations</a></li>
<li><a href="/?source=topics&topic=order-by&q=1">ORDER BY & Sorting</a></li>
<li><a href="/?source=topics&topic=limit-offset&q=1">LIMIT & OFFSET</a></li>
<li><a href="/?source=topics&topic=functions&q=1">Basic Functions</a></li>
<li><a href="/?source=topics&topic=joins&q=1">Joins</a></li>
<li><a href="/?source=topics&topic=subqueries&q=1">Subqueries</a></li>
<li><a href="/?source=topics&topic=windows&q=1">CTEs and window functions</a></li>
<li><a href="/?source=topics&topic=dates&q=1">Date operations</a></li>
<li><a href="/?source=company&collection=ecommerce&q=1">Company SQL practice</a></li>
</ul>
<h2>Questions about learning SQL</h2>
<h3>How do I learn SQL?</h3>
<p>Write a short query, run it, and check the result. Begin with Select Statements, then WHERE, then joins. SQL Learn is a set of exercises for that practice.</p>
<h3>How do I write SQL if I have never written a query?</h3>
<p>Name the columns and the table, then run it: SELECT last_name, salary FROM employees. Change the columns and add a WHERE filter until the result matches the task.</p>
<h3>Is this SQL tutorial free?</h3>
<p>Yes. SQL Learn runs fully in the browser and makes no external requests. We do not process any personal data.</p>
<h3>Do I need to install a database to practice SQL?</h3>
<p>No. The exercises run on SQLite in the browser.</p>
<h3>What SQL should a beginner learn first?</h3>
<p>SELECT, WHERE, JOIN, GROUP BY, and ORDER BY. Those cover most questions people ask of a table.</p>
</article>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>