Changes between Version 2 and Version 3 of dmlScript.sql


Ignore:
Timestamp:
12/16/24 01:25:41 (4 weeks ago)
Author:
211101
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • dmlScript.sql

    v2 v3  
    1 
    21{{{#!sql
    32INSERT INTO "user" (user_name, email, password) VALUES
     
    2019('Foreign Currency', 300.00, 3);
    2120
    22 INSERT INTO transaction (transaction_name, amount, net_amount, date, tag_id) VALUES
    23 ('Bought groceries', 1000.00, 800.00, '2024-11-23 13:51:35+02:00', 1),
    24 ('Paid rent', 15000.00, 15000.00, '2024-11-01 17:01:41+02:00', 5),
    25 ('Dinner with friends', 2500.00, 1500.00, '2024-11-29 22:02:22+02:00', 2),
    26 ('Movie tickets', 600.00, 600.00, '2024-11-30 17:38:00+02:00', 4),
    27 ('Electricity bill', 1200.00, 1200.00, '2024-11-02 07:03:35+02:00', 5);
     21INSERT INTO transaction (transaction_name, amount, net_amount, date) VALUES
     22('Bought groceries', 1000.00, 800.00, '2024-11-23 13:51:35+02:00'),
     23('Paid rent', 15000.00, 15000.00, '2024-11-01 17:01:41+02:00'),
     24('Dinner with friends', 2500.00, 1500.00, '2024-11-29 22:02:22+02:00'),
     25('Movie tickets', 600.00, 600.00, '2024-11-30 17:38:00+02:00'),
     26('Electricity bill', 1200.00, 1200.00, '2024-11-02 07:03:35+02:00');
     27
     28INSERT INTO tag_assigned_to_transaction (transaction_id, tag_id) VALUES
     29(1, 1),
     30(2, 5),
     31(3, 2),
     32(4, 4),
     33(5, 5);
    2834
    2935INSERT INTO transaction_breakdown (transaction_id, transaction_account_id, spent_amount, earned_amount) VALUES
     
    3339(3, 1, 2500.00, 1000.00), -- Spent 2500 on Cash, earned back 1000
    3440(4, 3, 600.00, 0.00);     -- Spent 600 on Credit Card for movie
    35 
    36 INSERT INTO tag_assigned_to_transaction (tag_id, transaction_id) VALUES
    37 (1, 1),
    38 (5, 2),
    39 (2, 3),
    40 (4, 4),
    41 (5, 5);
    4241}}}