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