12 lines
245 B
MySQL
12 lines
245 B
MySQL
|
DROP VIEW IF EXISTS CurrentArrears;
|
||
|
CREATE VIEW CurrentArrears AS
|
||
|
SELECT billId,
|
||
|
debtor,
|
||
|
targetCredit,
|
||
|
purpose,
|
||
|
date,
|
||
|
value - paid AS difference
|
||
|
FROM Debit
|
||
|
WHERE value != paid
|
||
|
;
|