Hi,
I have 2 tables, 1 with employee data and 2 with contract data for each employee. For the results page to search for employees I have to display, apart from name etc., the current contract data from the second table.
I use something like this:
SELECT comerciales.name, comHistory.startdate, etc, etc...
FROM comerciales,comHistory
WHERE comHistory.startDate <= '...' AND comHistory.endDate >= '...' AND comerciales.id=comHistory.user
LIMIT 0, 15
The problem is, how to implement this in the current system where we only use the first table? How can we also display all employees for which we have not yet created a record in table 2?
Thanks,
Raoul