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

Feature/create animals table #4

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)

Copy link

@Whoistolu Whoistolu left a comment

Choose a reason for hiding this comment

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

Hi @MrRamoun

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

STATUS: APPROVED 🟢

Congratulations! 🎉

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 @Whoistolu 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants