HackYourFutureBelgium / sql-database

Databases module of HackYourFuture Belgium's Sunday classes, 2024 edition
https://hackyourfuturebelgium.github.io/sql-database/
9 stars 19 forks source link

Class 23 - Week 2 Exercises #28

Open antonioalmeida opened 2 weeks ago

antonioalmeida commented 2 weeks ago

Week 2 - Exercises

Please leave a comment below with your answers to Week 2's exercises.

How to share

Leave a comment below with the answers to all exercises.

For Exercises 1, 2

Upload your diagram as an image.

For Exercise 3 - Formula 1

  1. Create a Gist here
  2. Name it formula1.sql. Make sure it's public
  3. Share the link to your Gist

For Exercise 4 - LinkedIn

Same as exercise 3, but name your file linkedin.sql

Remember: if you need to make changes, you can edit your Gist.

antonioalmeida commented 2 weeks ago

(example submission)

Exercise 1: Company

View solution ![image](https://github.com/HackYourFutureBelgium/sql-database/assets/4543448/2efd7e6a-e561-442c-a998-11caeea2d143)

Exercise 2: Gardener

View solution ![image](https://github.com/HackYourFutureBelgium/sql-database/assets/4543448/2efd7e6a-e561-442c-a998-11caeea2d143)

Exercise 3: Formula 1

https://gist.github.com/antonioalmeida/9990eeacfbc67eaea8a073fd918192d0

Exercise 4: LinkedIn

https://gist.github.com/antonioalmeida/23ba5300b973ee75ae60986e24819b3f

sebdesalvador commented 2 weeks ago

Solution 1: https://gist.github.com/sebdesalvador/e7fc35afbea7c9f15a0ba9fa5015bf5a

Solution 2: https://gist.github.com/sebdesalvador/b259ff1b6b2438483725130ae145515f

Solution 3: https://gist.github.com/sebdesalvador/5386f1d979cdf553bec4a5358be545a9

nibishakajean commented 2 weeks ago

All my answers are here: https://gist.github.com/nibishakajean/de35926c1fadfef5fac752c097d0ecac

PolyannaMeira commented 1 week ago

Exercise 1: Company

View solution ![exercicio1](https://github.com/HackYourFutureBelgium/sql-database/assets/148843100/0c7692a3-6772-4ba3-90c1-4d9283917ff0)

Exercise 2: Gardener

View solution ![Exercice2](https://github.com/HackYourFutureBelgium/sql-database/assets/148843100/1dedeebf-afc7-4259-9bfa-2bc98da1877f)

Exercise 3: Formula 1

https://gist.github.com/PolyannaMeira/3bf5659c504c4c41bf4992c03d67518a

Exercise 4: LinkedIn

View solution ![Exercice4](https://github.com/HackYourFutureBelgium/sql-database/assets/148843100/30709141-6454-46b6-83de-ae07d47c4c49)

https://gist.github.com/PolyannaMeira/170173f67ea403fd575c6cf6c090cafb

Gemechis10 commented 1 week ago

Exercise 1 & 2 https://excalidraw.com/#json=wjwSDyQGf9Wn-hmpki5wS,50U17tuQufMI3YqKMnDGgA

EXERCISE 3 https://gist.github.com/Gemechis10/aa0759971eb8fe88d169df91fdc6e970

EXERCISE 4

Smita81 commented 1 week ago

Exercise 1,2,3 & 4. https://gist.github.com/Smita81/8465e2f9e4535910ab730b4c3f565017

stefan-000 commented 1 week ago

Exercise 1:

View Solution ![Exercise1](https://github.com/HackYourFutureBelgium/sql-database/assets/112586562/1af32d5c-7ef9-4e2a-bc43-f4bec779b88a)

Exercise 2:

View Solution ![Exercise2](https://github.com/HackYourFutureBelgium/sql-database/assets/112586562/e53be141-3f24-441a-87f5-0460d6ad99a3)

Exercise 3:

https://gist.github.com/stefan-000/953dec1bdccb7f8b0d75d05cfa53c473

Exercise 4:

https://gist.github.com/stefan-000/3606327423fcd74fb489907c1ec809b2

juryp commented 1 week ago

Solution1

Exercise 3: Formula 1 https://gist.github.com/edinssa/34c7fa48924ddd7120707f0bfbd9c9ff

Exercise 4: Linkedin https://gist.github.com/juryp/1bda2b73f935a0685efe87cd1fa3e90c

GKing3 commented 1 week ago

Exercise 1

image

Exercise 2

image

Exercise 3

https://gist.github.com/GKing3/93a5c944688b98541a6485c820f94fef