From df40f3fdb08a965447fe67c6e9c0ca612e52acb6 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 18 Oct 2024 23:40:11 +0000 Subject: [PATCH] Add SQL log as query_output.md --- .coverage | Bin 53248 -> 53248 bytes AirlineSafetyDB.db | Bin 12288 -> 12288 bytes .../test_main.cpython-310-pytest-7.1.3.pyc | Bin 3070 -> 3070 bytes myLib/__pycache__/__init__.cpython-310.pyc | Bin 188 -> 188 bytes myLib/__pycache__/extract.cpython-310.pyc | Bin 1070 -> 1070 bytes myLib/__pycache__/query.cpython-310.pyc | Bin 3951 -> 3951 bytes .../transform_load.cpython-310.pyc | Bin 1754 -> 1754 bytes query_log.md | 54 ++++++++++++++++++ query_output.md | 48 ++++++++++++++++ 9 files changed, 102 insertions(+) diff --git a/.coverage b/.coverage index 6849e4c46fe75691ddb6d2b4aefd1631d258e3bf..c14c1417b78bd1d202a13f3c412138c6f08c8715 100644 GIT binary patch delta 456 zcmZozz}&EadBcBwM&nHeoC2)#_$~RaZsv0^n4cpThtEyh4FS delta 469 zcmZozz}&EadBcBwM#D`8oC2(K_|5swZ02(?e9`B z<2e<0W;5`==0C*$fPXXpY@jnc`Mt%ISr|F>SY~aNo9Qx*eYU&YoS%#RtAdz$m4MJ4GC;uD%r<(;PT;&&L18QPq TQ3g}YN~}OdjGKSV=P&>O#X5q8 diff --git a/AirlineSafetyDB.db b/AirlineSafetyDB.db index 220856c900eabe0e1322b82bcfc11b13dbc6c457..bcb345b16b2b6203022e67761a89d7a01542e82a 100644 GIT binary patch delta 33 gcmZojXh@hKEoj8Rz`zW|Fu*@i$C%M*W5NP`0AP&;!~g&Q delta 33 gcmZojXh@hKEvU@Ez`zW|Fu*xc$Cy!hW5NP`0A7Fvpa1{> diff --git a/__pycache__/test_main.cpython-310-pytest-7.1.3.pyc b/__pycache__/test_main.cpython-310-pytest-7.1.3.pyc index 26852715679f5a76bb92a8102b42c8c2d4a8c17f..59944cce71cbfa86930509d05d4bd4d4d251301f 100644 GIT binary patch delta 33 ncmew-{!g4cpO=@50SGRA6xzt$%fe_jxtc|m(QNZ}7I$_4rNaqC delta 33 ncmew-{!g4cpO=@50SFjFnKyFxvM`!Xu4a*CG~K+N#ho1hh`R^I diff --git a/myLib/__pycache__/__init__.cpython-310.pyc b/myLib/__pycache__/__init__.cpython-310.pyc index 4e3ef1cfb8968a9829ec26b0f1503dfc18b57f7e..68f575c3ad36dddfd59aa30e2f8a3c383fc84bda 100644 GIT binary patch delta 29 icmdnPxQCHDpO=@50SGRA6q?AL&1g0;QWi)|RR;iWGzYf; delta 29 icmdnPxQCHDpO=@50SJDDFi+&pW;C4`DGMZ~ssjLKq6aYm diff --git a/myLib/__pycache__/extract.cpython-310.pyc b/myLib/__pycache__/extract.cpython-310.pyc index 8bae1a4ba3a2addea89e1fa8a4fde9d5a6cfef52..4bb31d9bbebccfff9d43d6e22c417b875fa774c3 100644 GIT binary patch delta 32 lcmZ3-v5tc~pO=@50SGRA6xzt0#ms0nIf7XhNKRp%1ptA`2u1(^ delta 32 lcmZ3-v5tc~pO=@50SJDDFmL3}VrDd*9KkFLB&RUX0swfZ2fzRT diff --git a/myLib/__pycache__/query.cpython-310.pyc b/myLib/__pycache__/query.cpython-310.pyc index b208712e2460b1de8578ca5612e19b5154b2c296..0b644cebebfd2b883add4662c5dd9021ab23a4ef 100644 GIT binary patch delta 33 ncmaDa_g;=WpO=@50SGRA6xzsrmXXnH@@__1MzhV|87p`Js}Bky delta 33 ncmaDa_g;=WpO=@50SJDDFmL2O%gAUtc{ighqv_`Fj1{~9p=b%5 diff --git a/myLib/__pycache__/transform_load.cpython-310.pyc b/myLib/__pycache__/transform_load.cpython-310.pyc index 781b66b1e49f81f59b7ac534f6837139b9fcf72a..0f2410fb27fbbdfe4b3f00ede8316875396743b7 100644 GIT binary patch delta 32 lcmcb`dyAJlpO=@50SGRA6xztm$Hr(j`46iskhEZ11OSbS2&4c2 delta 32 lcmcb`dyAJlpO=@50SJDDFmL4MV`DU({D)N*NLsKh0sw?*2p#|c diff --git a/query_log.md b/query_log.md index 1bcc730..c2ce94e 100644 --- a/query_log.md +++ b/query_log.md @@ -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*' +``` + diff --git a/query_output.md b/query_output.md index b20f68c..f010771 100644 --- a/query_output.md +++ b/query_output.md @@ -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 | ++------+-----------------------+--------------------------+-------------------+-------------------------+--------------------+-------------------+-------------------------+--------------------+ +