• This is really good but problem is that my table has multiple rows and this is a table function. So it has to be a scalar function for me to use....

    Online Trainer For SQL DBA and Developer @RedBushTechnologies with 18 yrs exp.