• Please provide table create script(s) (with indexes if any), sample data to put in said table(s), and expected output from your code.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service