I have created small function using T-SQL which takes one input parameter as phone number and returns area code from it. Function compiles successfully but getting only first digit of the phone number instead of three digits.I have created small function using T-SQL which