• we cannot make use of a picture of a schema to build a query from. I asked you specifically to supply what would enable us to help you. glad you have it working, because there isn't much we can do with what you provided.

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