Sorry should have put same data up
Blockquote
GO
CREATE TABLE [dbo].[Table A](
[ReportDate] [datetime] NULL,
[Broker] nvarchar NULL,
[Counterpartyborrower] nvarchar NULL,
[Trade_type] nvarchar NULL,
[Account] nvarchar NULL,
[SettleCurrency] nvarchar NULL,
[MarketValueBaseCurrency] [decimal](28, 9) NULL,
[% split] [decimal](28, 9) NULL,
[CollateraByCurrency] [decimal](28, 9) NULL
) ON [PRIMARY]
GO
INSERT INTO [dbo].[Table A]
([ReportDate]
,[Broker]
,[Counterpartyborrower]
,[Trade_type]
,[Account]
,[SettleCurrency]
,[MarketValueBaseCurrency]
,[% split]
)
VALUES
(
'30/06/2020',
'Barclays Bank PLC',
'Govt Debt & Supras (Euroclear TriParty)',
'Loan',
'447217',
'EUR',
'1051611.45',
'0.033038',
'0.0'
),
(
'30/06/2020',
'Barclays Bank PLC',
'Govt Debt & Supras (Euroclear TriParty)',
'Loan',
'447220',
'EUR',
'24.61',
'0.002091',
'0.0'
),
(
'30/06/2020',
'Barclays Bank PLC',
'Govt Debt & Supras (Euroclear TriParty)',
'Collateral',
'',
'EUR',
'118049.12',
'0.0',
'28042211.43'
),
(
'30/06/2020',
'Barclays Bank PLC',
'Govt Debt & Supras (Euroclear TriParty)',
'Collateral',
'',
'AUD',
'2411.78',
'0.0',
'428254.1'
),
(
'30/06/2020',
'Barclays Bank PLC',
'Govt Debt & Supras (Euroclear TriParty)',
'Collateral',
'',
'GBP',
'117883.94',
'0.0',
'1576465.15'
),
(
'30/06/2020',
'Barclays Bank PLC',
'Govt Debt & Supras (Euroclear TriParty)',
'Collateral',
'',
'AUD',
'2329.22',
'0.0',
'2410116.69'
);
Blockquote