• I actually needed what above query returned but thank you for trying it out.

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