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

Lab 3.02 Adrian Pintor #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

138 changes: 138 additions & 0 deletions .idea/execute.sql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/lab-java-sql-es_AdrianPintor.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/sqldialects.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 50 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ Una vez que termines la tarea, envía un enlace URL a tu repositorio o tu solici
| Maria Charlotte | Homemade Art Hacks | 1002 | 193 |
| Gemma Alcocer | Refinishing Wood Floors | 1571 | 7542 |

| ID | author | title | word count | views |
|---| --------------- | --------------------------- | ---------- | ----- |
| 1 | Maria Charlotte | Best Paint Colors | 814 | 14 |
| 2 | Juan Perez | Small Space Decorating Tips | 1146 | 221 |
| 3 | Maria Charlotte | Hot Accessories | 986 | 105 |
| 4 | Maria Charlotte | Mixing Textures | 765 | 22 |
| 5 | Juan Perez | Kitchen Refresh | 1242 | 307 |
| 6 | Maria Charlotte | Homemade Art Hacks | 1002 | 193 |
| 7 | Gemma Alcocer | Refinishing Wood Floors | 1571 | 7542 |
<br>

2. Normalice la siguiente base de datos de aerolíneas y escriba los scripts DDL para crear las tablas de la base de datos:
Expand All @@ -58,9 +67,48 @@ Una vez que termines la tarea, envía un enlace URL a tu repositorio o tu solici
| Jennifer Cortez | Gold | DL222 | Boeing 777 | 264 | 1765 | 300582 |
| Jessica James | Silver | DL122 | Airbus A330 | 236 | 4370 | 127656 |
| Sam Rio | None | DL37 | Boeing 747 | 400 | 531 | 2653 |
| Christian Janco | Silver | DL222 | Boeing 777 | 264 | 1765 | 14642 |
| Christian Janco | Silver | DL222 | Boeing 777 | 264 | 1765 | 14642 |


| ID | Customer Name | Customer Status | Flight Number | Aircraft | Total Aircraft Seats | Flight Mileage | Total Customer Mileage |
|----| ---------------- | --------------- | ------------- | ----------- |----------------------| -------------- | ---------------------- |
| 1 | Agustine Riviera | Silver | DL143 | Boeing 747 | 400 | 135 | 115235 |
| 2 | Agustine Riviera | Silver | DL122 | Airbus A330 | 236 | 4370 | 115235 |
| 3 | Alaina Sepulvida | None | DL122 | Airbus A330 | 236 | 4370 | 6008 |
| 4 | Agustine Riviera | Silver | DL143 | Boeing 747 | 400 | 135 | 115235 |
| 5 | Tom Jones | Gold | DL122 | Airbus A330 | 236 | 4370 | 205767 |
| 6 | Tom Jones | Gold | DL53 | Boeing 777 | 264 | 2078 | 205767 |
| 7 | Agustine Riviera | Silver | DL143 | Boeing 747 | 400 | 135 | 115235 |
| 8 | Sam Rio | None | DL143 | Boeing 747 | 400 | 135 | 2653 |
| 9 | Agustine Riviera | Silver | DL143 | Boeing 747 | 400 | 135 | 115235 |
| 10 | Tom Jones | Gold | DL222 | Boeing 777 | 264 | 1765 | 205767 |
| 11 | Jessica James | Silver | DL143 | Boeing 747 | 400 | 135 | 127656 |
| 12 | Sam Rio | None | DL143 | Boeing 747 | 400 | 135 | 2653 |
| 13 | Ana Janco | Silver | DL222 | Boeing 777 | 264 | 1765 | 136773 |
| 14 | Jennifer Cortez | Gold | DL222 | Boeing 777 | 264 | 1765 | 300582 |
| 15 | Jessica James | Silver | DL122 | Airbus A330 | 236 | 4370 | 127656 |
| 16 | Sam Rio | None | DL37 | Boeing 747 | 400 | 531 | 2653 |
| 17 | Christian Janco | Silver | DL222 | Boeing 777 | 264 | 1765 | 14642 |

FLIGHT ID

| ID | Flight Number | Aircraft | Total Aircraft Seats | Flight Mileage |
|----|:-------------------:|------------|:--------------------:|:--------------:|
| 1 | DL143 | Boeing 747 | 400 | 135 |
| 2 | DL122 | Airbus A330| 236 | 4370 |
| 3 | DL53 | Boeing 777 | 264 | 2078 |
| 4 | DL222 | Boeing 777 | 264 | 1765 |
| 5 | DL37 | Boeing 747 | 400 | 531 |

STATUS ID

| ID | Customer Status |
|----|-----------------|
| 1 | Gold |
| 2 | Silver |
| 3 | None |

<br>
<br>

3. En la base de datos de aerolíneas escriba el script SQL para obtener el número total de vuelos en la base de datos.
4. En la base de datos de aerolíneas escriba el script SQL para obtener la distancia promedio de vuelo.
Expand Down