• Hi Sean

    Unfortunately it is a system I have inherited and the table holds 6.8 million rows there is another column that flags if the second column is a child ID or a parent ID, I'll have a go with a temp table and see what happens.

    Kind Regards

    Paul

    Cheers, Paul