SELECT
Id,
[Name],
Current_Balance,
Updated_At
FROM
Bank_Accounts
WHERE
Current_Balance < 10000
INSERT INTO
Bank_Accounts (
[Type],
[Name],
[Currency],
[Is_Personal],
[Is_Primary],
[Status],
[Bank_Name],
[Opening_Balance],
[Bank_Guess_Enabled],
[Account_Number],
[Sort_Code],
[Secondary_Sort_Code],
[Iban],
[Bic]
)
VALUES
(
'StandardBankAccount',
'Barclays EUR',
'EUR',
'false',
'false',
'active',
'Barclays Bank',
'100000',
'false',
'223344557',
'22-11-21',
'22-11-22',
'GB10 BUKB 111111223344557',
'BUKBGB22'
)
UPDATE Bank_Accounts
SET
[Name] = 'Barclays EUR2'
WHERE
[Name] = 'Barclays EUR'
DELETE FROM Bank_Accounts
WHERE
[Name] = 'Barclays EUR2'