From the course: Advanced SQL: Logical Query Processing, Part 1
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Filtering and grouped query - SQL Tutorial
From the course: Advanced SQL: Logical Query Processing, Part 1
Challenge: Filtering and grouped query
- [Narrator] You need to write a query to report animals and the number of vaccinations each has received. You need to include animals that were never vaccinated but exclude all rabbits, all rabies vaccinations, and all animals that were last vaccinated on or later than October 1st, 2019. The report should return the following attributes. The animal's name, species, primary color and breed. The number of vaccinations that the animal has received. And obviously with zero for animals that were never vaccinated. Your guidelines are to use the minimal number of tables that are required, use the correct logical join types and force order if needed, and use the correct logical group by expressions. Good luck.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.