Skip to content

Tag: sql-server

Return opposite transaction value rows

I have this table structure and I want a query that needs to be returning opposite side columns values. If I pass parameter with value Overtime then it should return following rows The logic is against each transaction if the selected Account is on Debit side it should print the Credit side accounts and if th…