Skip to content

Commit

Permalink
removing outdated alternate instructions for creating views
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristinaLK committed Dec 2, 2020
1 parent 02b7f6a commit 1692c57
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions episodes/02-sql-aggregation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
> > ~~~
Expand Down Expand Up @@ -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 *
Expand Down

0 comments on commit 1692c57

Please sign in to comment.