select websiteId from fsenablers..tbl_CUS_Websites where portal_ownerId = and portal_ownerType = and auth_clntCD = select websiteId from fsenablers..tbl_CUS_Websites where portal_ownerId = and portal_ownerType = insert into fsenablers..tbl_CUS_websiteSections ( websiteId, name, uri, requiredPermission, displayRank, live ) values ( , , , 'DistributorManagement', , ) update fsenablers..tbl_CUS_websiteSections set requiredPermission = where sectionId = and uri = and websiteId = insert into fsenablers..tbl_CUS_websiteSections ( websiteId, name, uri, parentSectionId, requiredPermission, menuSelectionCode, displayRank, live ) values ( , , , , , , , ) select sectionId, requiredPermission from fsenablers..tbl_CUS_WebsiteSections where websiteId = and uri =