Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

to find equal and opposite rows in a table

$
0
0
How to find the equal and opposite rows in a table.E.g.:book positionA 500B -500C -500The output should return the rows having equal and opposite positions.O/P:A 500B -500I have tried self join on a table but in vain.Do we need to cursors for these row level handling?

Viewing all articles
Browse latest Browse all 3145

Trending Articles