Changes between Version 14 and Version 15 of DatabaseProgramming


Ignore:
Timestamp:
05/01/26 02:13:42 (37 hours ago)
Author:
231027
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseProgramming

    v14 v15  
    216216{{{
    217217
    218 -- 1. make purchase
     218-- make purchase
    219219CALL proc_execute_purchase(1, 100, 'QR-TEST-CODE-001');
    220220
    221 -- 2. check if ticket is not available (is_available should be false)
     221-- check if ticket is not available (is_available should be false)
    222222SELECT is_available FROM "Ticket" WHERE ticket_id = 100;
    223223
    224 -- 3. check if price is calculated correctly in Ticket_Purchase
     224-- check if price is calculated correctly in Ticket_Purchase
    225225SELECT * FROM "Ticket_Purchase" WHERE ticket_id = 100;
    226226
    227 -- 4. make refund to the purchase (purchase_id from before)
     227-- make refund to the purchase (purchase_id from before)
    228228CALL proc_execute_refund(16000001);
    229229
    230 -- 5. check if the ticket is available (is_available should be true)
     230-- check if the ticket is available (is_available should be true)
    231231SELECT is_available FROM "Ticket" WHERE ticket_id = 100;
    232232
    233 -- 6. check if there is a corresponding record in Ticket_Refund
     233-- check if there is a corresponding record in Ticket_Refund
    234234SELECT * FROM "Ticket_Refund" WHERE purchase_id = 16000001;
    235235