I need to compare the end of strings against a list of possible ending in a stored procedure. It will be called a lot and there are around 10-15 candidate endings. At this point
also, you may use a combination of RIGHT and LENGTH so that you do not hardcode string length.
RIGHT
LENGTH