When running the query "SELECT formulaid FROM tblFormula"
I get the results:
AB333
AB333CX1
CA333
CA333CX3
I need to simply parse the last 3 char's off the end of the fields containing "CX" and leave the rest as they are. I know I can use the CHARINDEX function to do this but can't figure out exactly how?? Does SQL Server have an equivelant to MS Access's IIF() statement?
Help greatly appreciated!
I get the results:
AB333
AB333CX1
CA333
CA333CX3
I need to simply parse the last 3 char's off the end of the fields containing "CX" and leave the rest as they are. I know I can use the CHARINDEX function to do this but can't figure out exactly how?? Does SQL Server have an equivelant to MS Access's IIF() statement?
Help greatly appreciated!