Greetings, please let me know if this is default behavior.
I have a table called "employees" - in this table is a "department" field, but it is a lookup field:
employee table:
emp_id - int(10)
name - varchar(50)
email - varchar(50)
department table:
[color="#ff0000"]department_id - int(10)
department - varchar(50)
So - naturally - I have on the add page that this is a "lookup" field and use the lookup wizard.
It links it by "department_id", and displays and sorts it based on "department"
But, when sorting the column in the "list" grid, it doesn't sort them on "department" (alphabetically), but rather on department_id.
It appears to be the same for simple search as well.
I know there is a article on this, but I think I need to make my employees table's SQL script to have INNER JOIN?
Is this correct?
If so, can someone suggest the proper SQL command to update the above tables to?
Thanks all!