From c8b6ec6d96f6d5897f746557db2a6fa64571a192 Mon Sep 17 00:00:00 2001 From: mine-cetinkaya-rundel Date: Thu, 25 May 2023 21:30:48 -0400 Subject: [PATCH] Fix typos --- databases.qmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/databases.qmd b/databases.qmd index 101eef0..ea95835 100644 --- a/databases.qmd +++ b/databases.qmd @@ -264,7 +264,7 @@ There are five important clauses: `SELECT`, `FROM`, `WHERE`, `ORDER BY`, and `GR : [^databases-4]: Confusingly, depending on the context, `SELECT` is either a statement or a clause. - To avoid this confusion, we'll generally use query instead of `SELECT` statement. + To avoid this confusion, we'll generally use `SELECT` query instead of `SELECT` statement. [^databases-5]: Ok, technically, only the `SELECT` is required, since you can write queries like `SELECT 1+1` to perform basic calculations. But if you want to work with data (as you always do!) you'll also need a `FROM` clause. @@ -597,7 +597,7 @@ flights |> ) ``` -In SQL, the `GROUP BY` clause is used exclusively for summaries so here you can see that the grouping has moved to the `PARTITION BY` argument to `OVER`. +In SQL, the `GROUP BY` clause is used exclusively for summaries so here you can see that the grouping has moved from the `PARTITION BY` argument to `OVER`. Window functions include all functions that look forward or backwards, like `lead()` and `lag()` which look at the "previous" or "next" value respectively: