     @duration FLOAT
 AS BEGIN
     SELECT
-        NULL AS SectionTypeName,
+        NULL AS Facility,
+        NULL AS Area,
         NULL AS SectionTitle,
         NULL AS SectionRank,
-        NULL AS SectionContent,
         NULL AS ComponentModel,
-        NULL AS ComponentDescription,
         NULL AS ManufacturerName,
         NULL AS SeriesName,
         NULL AS ComponentTypeName

--        IsUnder <> 0
--    UNION
--    SELECT
--        FacilityCurve.SectionTypeName,
--        FacilityCurve.SectionTitle,
--        FacilityCurve.SectionRank,
--        FacilityCurve.SectionContent,
--        Component.ComponentModel,
--        Component.ComponentDescription,
--        Manufacturer.ManufacturerName,
--        Series.SeriesName,
--        ComponentType.ComponentTypeName

--        SELECT
--            CurveID,
--            CurveDB,
--            Facility.FacilityName AS Facility,
--            Area.Title AS Area,
--            Equipment.Title AS SectionTitle,
--            Equipment.Rank AS SectionRank
--        FROM
--            PQInvestigator.UserIndustrialPQ.dbo.FacilityAudit JOIN
--            PQInvestigator.UserIndustrialPQ.dbo.Facility ON FacilityAudit.FacilityID = Facility.FacilityID JOIN
--            PQInvestigator.UserIndustrialPQ.dbo.AuditSection Equipment ON Equipment.FacilityAuditID = FacilityAudit.FacilityAuditID JOIN
--            PQInvestigator.UserIndustrialPQ.dbo.AuditSectionTree ON AuditSectionTree.AuditSectionChildID = Equipment.AuditSectionID JOIN
--            PQInvestigator.UserIndustrialPQ.dbo.AuditSection Area ON AuditSectionTree.AuditSectionParentID = Area.AuditSectionID JOIN
--            PQInvestigator.UserIndustrialPQ.dbo.AuditCurve ON AuditCurve.AuditSectionID = Equipment.AuditSectionID
--        WHERE
--            AuditCurve.CurveType = 'TOLERANCE' AND
--            FacilityAudit.FacilityID = @facilityID
--    )
--    SELECT
--        FacilityCurve.Facility,
--        FacilityCurve.Area,
--        FacilityCurve.SectionTitle,
--        FacilityCurve.SectionRank,
--        Component.ComponentModel,
--        Manufacturer.ManufacturerName,
--        Series.SeriesName,
--        ComponentType.ComponentTypeName
