SQLServerCentral Article

TSQL Challenge 54 - Find the longest matching area code

,

TSQL Challenge 54 - Find the longest matching area code from phone numbers

An IVR application stores call information into a SQL Server table. A reporting application needs to read phone numbers from the call log and identify the country-code/area-code that is part of the phone number. Your job is to write a query that identifies the longest matching country/area code from each phone number based on the information stored in an area-code reference table.

http://beyondrelational.com/blogs/tc/archive/2011/04/18/tsql-challenge-54-find-the-longest-matching-area-code-from-phone-numbers.aspx

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating