Scenarios like organization structure, file system etc will have hierarchical relationship. Before SQL 2008, users solved these scenarios by using some complex joins,recursive CTEs etc. SQL 2008 provides a new datatype called HierarchyId , which can be...