I have to make a query to:
show a view which shows the results of counting all the employee dedications per employee area, listed by the area names in alphabetical order.
$this->db->query('create temporary table temp as (select dedication.employee_employeeID, dedication ID, COUNT(area) AS TotalFrequency from dedication, employees where dedication.employee_employeeID = dedication group by dedication.employee_employeeID)');
However, doesn't seem to be working on my website?
here is my relationships: