Skip to content

Commit

Permalink
Merge pull request #307 from ChristinaLK/remove-view-alt
Browse files Browse the repository at this point in the history
removing outdated alternate instructions for creating views
  • Loading branch information
ChristinaLK authored Jan 6, 2021
2 parents 7899ca3 + 1692c57 commit 1ffd61a
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 1ffd61a

Please sign in to comment.