SQL code with connect by -- running too slow

Printable View