Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I have this table and I want to exclude the pair of transactions where the one transaction is R and the other one is T, for each Customer that makes transaction in the same Branch at the same Date, when the Purchase is equal to Sale and vice versa at the corresponding rows. The same applies to CurrencyPur and CurrencySale.
I need to exclude only the pair of the transactions that have the above criteria. Do you have any ideas??
Thanks in advance!
It would be great if you could provide sample data.
I Assume Transaction here meaning Event.
Load Distinct
All columns here
From Table
Where Not Match(Event, 'T', 'R') and Purchase=Sales and CurrencyPur=CurrencySale;
PS. Here for this "or each Customer that makes transaction in the same Branch at the same Date", The distinct will deserve by default.