Changes between Version 14 and Version 15 of DatabaseProgramming
- Timestamp:
- 05/01/26 02:13:42 (37 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DatabaseProgramming
v14 v15 216 216 {{{ 217 217 218 -- 1.make purchase218 -- make purchase 219 219 CALL proc_execute_purchase(1, 100, 'QR-TEST-CODE-001'); 220 220 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) 222 222 SELECT is_available FROM "Ticket" WHERE ticket_id = 100; 223 223 224 -- 3.check if price is calculated correctly in Ticket_Purchase224 -- check if price is calculated correctly in Ticket_Purchase 225 225 SELECT * FROM "Ticket_Purchase" WHERE ticket_id = 100; 226 226 227 -- 4.make refund to the purchase (purchase_id from before)227 -- make refund to the purchase (purchase_id from before) 228 228 CALL proc_execute_refund(16000001); 229 229 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) 231 231 SELECT is_available FROM "Ticket" WHERE ticket_id = 100; 232 232 233 -- 6.check if there is a corresponding record in Ticket_Refund233 -- check if there is a corresponding record in Ticket_Refund 234 234 SELECT * FROM "Ticket_Refund" WHERE purchase_id = 16000001; 235 235
