Vet clinic database: query and update table#3
Vet clinic database: query and update table#3Ridwanullahi-code wants to merge 6 commits intodevelopmentfrom
Conversation
mukhammadrizooff
left a comment
There was a problem hiding this comment.
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
You have submitted a project, please add descriptive informations to all parts of your README 👍🏼
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.
Invalid Code Review Request does not count into the code reviews limit.
Gambit142
left a comment
There was a problem hiding this comment.
Hi @Ridwanullahi-code 👋 ,
Good job so far!
Highlights
- Everything that creates or changes the structure of the tables is in the schema.sql file
- Everything that populates tables with data is in the data.sql file
- Everything that is a query that helps to analyze data is in the queries.sql file
There are some issues that you still need to work on to go to the next project but you are almost there!
Required Changes ♻️
Kindly check the comments under the review.
Optional suggestions
Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you take them into account as they can make your code better.
You can also consider:
N/A
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification. You can tag me by typing @Gambit142
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.
As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.
|
|
||
| This project is [MIT](./LICENSE) licensed. | ||
|
|
There was a problem hiding this comment.
- The link to your LICENSE is broken and redirects to GitHub's error page. Kindly fix the LICENSE. You can add a valid LICENSE by following the instructions in this article. 👍 😎
queries.sql
Outdated
| BEGIN; | ||
| DELETE FROM animals WHERE date_of_birth > '01/07/2022'; | ||
| SAVEPOINT savepoint_1; |
There was a problem hiding this comment.
- This transaction should delete all animals born after Jan 1st, 2022 (01/01/2022) and not the 1st of July 2022(01/07/2022). Kindly correct the error so that the correct number of animals can be deleted. Please, don't forget to update the screenshot attached to your pull request summary 😎 💻
|
|
||
| SELECT COUNT(*) FROM animals; | ||
|
|
There was a problem hiding this comment.
- The total number of animals should be
10and not11. By the time you update the transactions that should delete all animals born after 01/01/2022, you would have10as the total number of animals. Kindly update the screenshot for this query after the transaction. 👍 💻
|
|
||
| SELECT AVG(weight_kg) FROM animals | ||
|
|
There was a problem hiding this comment.
- The average weight of animals should be
15.55and not16.136363. By the time you update the transactions that should delete all animals born after 01/01/2022, you would have15.55as the average weight of animals. Kindly update the screenshot for this query after the transaction. 👍 💻
queries.sql
Outdated
| SELECT name FROM animals | ||
| ORDER BY escape_attempts DESC LIMIT 1; |
There was a problem hiding this comment.
- This query should return a result that shows who attempts to escape the most classified by the neutered character of the animals. Currently, you have the name of the animals who attempted to escape the most but it should be an analysis of animals based on the neutered character. In the end, your result should look familiar to this:
Please remember to update the screenshot when you are done. 👍
|
|
||
| SELECT MIN(weight_kg), MAX(weight_kg) FROM animals GROUP BY(species); | ||
|
|
There was a problem hiding this comment.
- The maximum weight of pokemon animals should be
17and not22. By the time you update the transactions that should delete all animals born after 01/01/2022, you would have17as the maximum weight of pokemon animals. Kindly update the screenshot for this query after the transaction. 👍 💻
jasonfelice
left a comment
There was a problem hiding this comment.
Good job so far!
There are some issues that you still need to work on to go to the next project but you are almost there!
Required Changes ♻️
- As I can see, you didn't update the queries as requested by the previous reviewer. Please update the queries as per requirement and update the screenshots in the PR description.
Optional suggestions
Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.
As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.
There was a problem hiding this comment.
[[# STATUS: APPROVED 🟢 👏
Hello @Ridwanullahi-code ,
Your project is complete! There is nothing else to say other than... it's time to merge it ![]()
Congratulations! 🎉 Keep up the good work 🥂
HIGHLIGHTS:
- Your repo is professional 😎
- Descriptive P.R 💯
- linters are passing
- Professional README 💯
- Everything relating to the database is working.
Now you can merge this branch and move on 🥇
Happy Coding cheers 🥇 💯
Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.]]


Update the animals table by setting the species column to digimon for all animals that have a name ending in mon.
How many animals are there?
How many animals have never tried to escape?
What is the average weight of animals?
Who escapes the most, neutered or not neutered animals?
What is the minimum and maximum weight of each type of animal?
What is the average number of escape attempts per animal type of those born between 1990 and 2000?
Take a screenshot of the results of your queries.