8 lines
195 B
MySQL
8 lines
195 B
MySQL
|
DROP VIEW IF EXISTS AvailableCredits;
|
||
|
CREATE VIEW AvailableCredits AS
|
||
|
SELECT credId, account, purpose, date,
|
||
|
value - spent AS difference
|
||
|
FROM Credit
|
||
|
WHERE value != spent
|
||
|
;
|