diff --git a/episodes/02-sql-aggregation.md b/episodes/02-sql-aggregation.md index b811a9f8..73e806f8 100644 --- a/episodes/02-sql-aggregation.md +++ b/episodes/02-sql-aggregation.md @@ -96,7 +96,7 @@ If we want to group by multiple fields, we give `GROUP BY` a comma separated lis > > > ## Solution of 2 and 3 > > ~~~ -> > SELECT year, species_id, COUNT(*), AVG(weight) +> > SELECT year, species_id, COUNT(*), AVG(weight) > > FROM surveys > > GROUP BY year, species_id; > > ~~~ @@ -206,9 +206,6 @@ question about that particular subset of data. Hence, we can benefit from a view FROM surveys WHERE year = 2000 AND (month > 4 AND month < 10); -You can also add a view using *Create View* in the *View* menu and see the -results in the *Views* tab, the same way as creating a table from the menu. - Using a view we will be able to access these results with a much shorter notation: SELECT *