Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature1/create animals table #8

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

OmarRamoun
Copy link
Owner

Changes Introduced ♻️

✔️ Create a table named animals with the following columns:

  • id
  • name
  • date_of_birth
  • escape_attempts
  • neutered
  • weight_kg

✔️ Insert the following data:

 id |  name   | date_of_birth | escape_attempts | neutered | weight_kg
----+---------+---------------+-----------------+----------+-----------
  5 | Agumon  | 2020-02-03    |               0 | t        |     10.23
  6 | Gabumon | 2018-11-15    |               2 | t        |         8
  7 | Pikachu | 2021-01-07    |               1 | f        |     15.04
  8 | Devimon | 2017-05-12    |               5 | t        |        11

✔️ Write queries for the following:

  • Find all animals whose name ends in "mon".
  • List the name of all animals born between 2016 and 2019.
  • List the name of all animals that are neutered and have less than 3 escape attempts.
  • List date of birth of all animals named either "Agumon" or "Pikachu".
  • List name and escape attempts of animals that weigh more than 10.5kg
  • Find all animals that are neutered.
  • Find all animals not named Gabumon.
  • Find all animals with a weight between 10.4kg and 17.3kg (including the animals with the weights that equals precisely 10.4kg or 17.3kg)

@OmarRamoun OmarRamoun added the enhancement New feature or request label Jun 19, 2022
Copy link

@Meltrust Meltrust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @OmarRamoun,

Wow, you did it 🎉

Brilliant

Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

To highlight

  • The data is correct✔️
  • Nice queries✔️

Optional suggestions

Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.

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.


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants