alter PROCEDURE usp_M05_GetAllOptionalWorkgroups -- Add the parameters for the stored procedure here @onlineCourseID Uniqueidentifier AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; SELECT tbl_M04_Wgs.WorkgroupID, tbl_M04_Wgs.WorkGroupName, CONVERT(Int, tbl_M04_Wgs.WorkGroupStatus) AS Status, tbl_M05_OCOWA.OptionalAssignmentID FROM tbl_M04_Workgroups AS tbl_M04_Wgs LEFT OUTER JOIN tbl_M05_OnlineCourseOptionalWorkGroupAssignments AS tbl_M05_OCOWA ON tbl_M04_Wgs.WorkgroupID = tbl_M05_OCOWA.OptionalWorkGroupID WHERE (tbl_M04_Wgs.WorkGroupStatus = '1') AND (tbl_M04_Wgs.WorkgroupID.WorkgroupID NOT IN (SELECT MandatoryWorkGroupID FROM tbl_M05_OnlineCourseMandatoryWorkGroupAssignments AS tbl_M05_OCMWA WHERE (MandatoryWorkGroupID = @onlineCourseID))) ORDER BY tbl_M04_Wgs.WorkGroupName
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE