I am working with a sp that contains a where clause that is concatenated like so...
Set @wherecmd = ' WHERE ' @addwhere
I need to add a piece of logic to the mix...
AND Matches.Status <> 'x'
I am having trouble with the syntax because of the apostrophes... Can someone help with this....
Thanks
Set @wherecmd = ' WHERE ' @addwhere
I need to add a piece of logic to the mix...
AND Matches.Status <> 'x'
I am having trouble with the syntax because of the apostrophes... Can someone help with this....
Thanks