Closed Eniatnof closed 3 years ago
Thank you , @Eniatnof, well spotted! I have made a PR with your suggestions. I've also changed the orde of grouping columns so it is consistent between the dplyr and SQL solution, that is GROUP BY b.taxa, a.year, a.plot_id
. Would you kindly check if #735 looks ok to you?
Hello,
First of all, thank you for the really interesting lesson.
I noticed there was a small mistake in the first challenge of the part "Complex database queries" (Write a query that returns the number of rodents observed in each plot in each year.) where the SQL syntax is as it doesn't match the dplyr syntax's result.
The statement where GROUP BY is should also have _a.plotid in order to get the same result as for the dplyr syntax.
Thank you again for the lesson :-)
Cheers