Try this again, got logged out.....
I have two tables, Employees and Weights
I need a query that shows "ALL" employees in a room, and their first weight if one is available.
SELECT Weight.Weight, Employee.ID ,Employee.study from Employee left join Weight on Employee.ID = Weight.ID Where Employee.Locati on = 'Room 7' and Weight.Date > '10/1/08' Order by study
When I run this I only get employees with weights and if there are more than one weight I get each one displaying their id multiple times....
I need to limit to 1 weight or less but show each employee id
Any ideas?
I have two tables, Employees and Weights
I need a query that shows "ALL" employees in a room, and their first weight if one is available.
SELECT Weight.Weight, Employee.ID ,Employee.study from Employee left join Weight on Employee.ID = Weight.ID Where Employee.Locati on = 'Room 7' and Weight.Date > '10/1/08' Order by study
When I run this I only get employees with weights and if there are more than one weight I get each one displaying their id multiple times....
I need to limit to 1 weight or less but show each employee id
Any ideas?
Comment