Ok so this is my stored proc so far.
ALTER Procedure GetJobInfo()
AS
BEGIN
Select EmployeeId, FirstName, LastName
From dbo.Employees
for EmployeeId
SELECT ComputerCodeId
From dbo.EmployeeJobs
Where ComputerCodeId = "F"
END
I need to get the employees which I have done, but then I need to get the employees jobs from the dbo.EmployeeJobs table that match an array of computer codes. How would I go about doing something like that? My end goal is to be able to create a report that breaks the employee jobs into two categories based on the computer code associated with them and then getting the sum of the two categories and having them populate two different columns.