Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Query conundrum

$
0
0

My key field is a 7 digit number called control.  Reversals and Corrections add a R and or a C to the end of the original 7 digit number e.g. (1111111R).  I am trying to make a query that will return only the Reversals, Corrections, and... the original control number.  Wild cards are great for isolating the Rs, and Cs but I can not figure out how to return that original control as well.  I am using MS sql server 2005 and my queries seem to keep growing larger and ultimately more redundant.  

I am a kite with out a tail any guidance would be appreciated.

Thanks in advance.


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>