다소 복잡함. 한번에 눈에 잘 안들어 온다.카페과 그 카페를 관리하는 관리자 정보가 한 테이블에 존재하고 이를 트리 형태로 출력하는 쿼리.부가 정보은 주소 전화 번호 포함./*with netcafe(Parent_Code, NetCafe_Code, NetCafe_Name1, NetCafe_Tel, levels, sort)as(select Parent_Code, NetCafe_Code, NetCafe_Name1, NetCafe_Tel, 1 as levels, convert(varchar, isnull(Parent_Code,'') + ' ' + NetCafe_Code) as sortfrom dbo.NetCafe_Info_Base (nolock)where Parent_Code is nullunion allsel..