Skip to content

Commit

Permalink
Add SQL log as query_output.md
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 18, 2024
1 parent 8386118 commit df40f3f
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 0 deletions.
Binary file modified .coverage
Binary file not shown.
Binary file modified AirlineSafetyDB.db
Binary file not shown.
Binary file modified __pycache__/test_main.cpython-310-pytest-7.1.3.pyc
Binary file not shown.
Binary file modified myLib/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file modified myLib/__pycache__/extract.cpython-310.pyc
Binary file not shown.
Binary file modified myLib/__pycache__/query.cpython-310.pyc
Binary file not shown.
Binary file modified myLib/__pycache__/transform_load.cpython-310.pyc
Binary file not shown.
54 changes: 54 additions & 0 deletions query_log.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,57 @@ DELETE FROM AirlineSafety WHERE id=1;
SELECT * FROM AirlineSafety WHERE airline = 'Aeroflot*'
```

```sql
UPDATE AirlineSafety SET
airline=Updated Airline A, avail_seat_km_per_week=600000,
incidents_85_99=3, fatal_accidents_85_99=0,
fatalities_85_99=1, incidents_00_14=0,
fatal_accidents_00_14=1, fatalities_00_14=0
WHERE id=1;
```

```sql
DELETE FROM AirlineSafety WHERE id=1;
```

```sql
INSERT INTO AirlineSafety VALUES (
New Airline, 1000000, 2, 0, 0,
1, 0, 0);
```

```sql
SELECT * FROM AirlineSafety WHERE airline = 'Aeroflot*'
```

```sql
SELECT * FROM AirlineSafety LIMIT 10;
```

```sql
INSERT INTO AirlineSafety VALUES (
New Airline, 1000000, 2, 0, 0,
1, 0, 0);
```

```sql
SELECT * FROM AirlineSafety LIMIT 10;
```

```sql
UPDATE AirlineSafety SET
airline=Updated Airline A, avail_seat_km_per_week=600000,
incidents_85_99=3, fatal_accidents_85_99=0,
fatalities_85_99=1, incidents_00_14=0,
fatal_accidents_00_14=1, fatalities_00_14=0
WHERE id=1;
```

```sql
DELETE FROM AirlineSafety WHERE id=1;
```

```sql
SELECT * FROM AirlineSafety WHERE airline = 'Aeroflot*'
```

48 changes: 48 additions & 0 deletions query_output.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,51 @@
| 10 | Alitalia | 698012498 | 7 | 2 | 50 | 4 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+

+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| id | airline | avail_seat_km_per_week | incidents_85_99 | fatal_accidents_85_99 | fatalities_85_99 | incidents_00_14 | fatal_accidents_00_14 | fatalities_00_14 |
+======+=======================+==========================+===================+=========================+====================+===================+=========================+====================+
| 2 | Aeroflot* | 1197672318 | 76 | 14 | 128 | 6 | 1 | 88 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 3 | Aerolineas Argentinas | 385803648 | 6 | 0 | 0 | 1 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 4 | Aeromexico* | 596871813 | 3 | 1 | 64 | 5 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 5 | Air Canada | 1865253802 | 2 | 0 | 0 | 2 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 6 | Air France | 3004002661 | 14 | 4 | 79 | 6 | 2 | 337 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 7 | Air India* | 869253552 | 2 | 1 | 329 | 4 | 1 | 158 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 8 | Air New Zealand* | 710174817 | 3 | 0 | 0 | 5 | 1 | 7 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 9 | Alaska Airlines* | 965346773 | 5 | 0 | 0 | 5 | 1 | 88 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 10 | Alitalia | 698012498 | 7 | 2 | 50 | 4 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 11 | All Nippon Airways | 1841234177 | 3 | 1 | 1 | 7 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+

+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| id | airline | avail_seat_km_per_week | incidents_85_99 | fatal_accidents_85_99 | fatalities_85_99 | incidents_00_14 | fatal_accidents_00_14 | fatalities_00_14 |
+======+=======================+==========================+===================+=========================+====================+===================+=========================+====================+
| 1 | Aer Lingus | 320906734 | 2 | 0 | 0 | 0 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 2 | Aeroflot* | 1197672318 | 76 | 14 | 128 | 6 | 1 | 88 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 3 | Aerolineas Argentinas | 385803648 | 6 | 0 | 0 | 1 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 4 | Aeromexico* | 596871813 | 3 | 1 | 64 | 5 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 5 | Air Canada | 1865253802 | 2 | 0 | 0 | 2 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 6 | Air France | 3004002661 | 14 | 4 | 79 | 6 | 2 | 337 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 7 | Air India* | 869253552 | 2 | 1 | 329 | 4 | 1 | 158 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 8 | Air New Zealand* | 710174817 | 3 | 0 | 0 | 5 | 1 | 7 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 9 | Alaska Airlines* | 965346773 | 5 | 0 | 0 | 5 | 1 | 88 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+
| 10 | Alitalia | 698012498 | 7 | 2 | 50 | 4 | 0 | 0 |
+------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+

0 comments on commit df40f3f

Please sign in to comment.