See attached picture:
I need the SQL statement to select JobNo and JobCategoryID that does not have EmpRoleID 1. The attached picture displays the table with highlighted record i would need to select. I only want the JobNo and JobCategoryID, i dont want EmpRoleID in my results
I think i can do SELECT DISTINCT WHERE EmpRoleID <> 1 and omit the EmpRoleID from results but i wondering if there is a better way of writing this query without using DISTINCT.
I need the SQL statement to select JobNo and JobCategoryID that does not have EmpRoleID 1. The attached picture displays the table with highlighted record i would need to select. I only want the JobNo and JobCategoryID, i dont want EmpRoleID in my results
I think i can do SELECT DISTINCT WHERE EmpRoleID <> 1 and omit the EmpRoleID from results but i wondering if there is a better way of writing this query without using DISTINCT.