-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature3/query mulitple tables #10
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @OmarRamoun,
Your project is complete! There is nothing else to say other than... it's time to merge it 🙌
Congratulations! 🎉
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
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.
CREATE TABLE owners ( | ||
owner_id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY NOT NULL, | ||
full_name VARCHAR(255) NOT NULL, | ||
age INT NOT NULL | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done 🙌 You added a new table with the name owners
and the propper columns 💪
- name: string | ||
*/ | ||
|
||
CREATE TABLE species ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, splendid work 🙌 You added a new table species and the propper columns ✔
Changes Introduced ♻️
✔️ Create a table named
owners
with the following columns:integer
(set it as autoincrementedPRIMARY KEY
)string
integer
✔️ Create a table named
species
with the following columns:integer
(set it as autoincrementedPRIMARY KEY
)string
✔️ Modify
animals
table:species
species_id
which is a foreign key referencingspecies
tableowner_id
which is a foreign key referencing theowners
table✔️ Insert the following data into the
owners
table:✔️ Insert the following data into the
species
table:✔️ Modify your inserted animals to include owner information (
owner_id
):✔️ Write queries (using
JOIN
) to answer the following questions: