
September 13th, 2004, 01:22 PM
|
|
Contributing User
|
|
Join Date: Aug 2004
Posts: 71
Time spent in forums: 2 m 30 sec
Reputation Power: 5
|
|
|
Group By in SQL
I am trying to create a report that includes data from multiple tables.
SOme of the tables have multiple values for the same record. Following are a few of my tables and their structure:
Country Employee Emp_projects Proj_Technology
name(varchar) emp_id proj_id(number) proj_id
map(OLE) emp_name emp_id tech_id
In the above structure following could be the case:
- Each country has many employees
- Employee can be working on many projects
- Each projects can involve multiple technologies
Now I have to create a report for each country. Listing all the employees and for each employee all the projects and technologies respectively.
I was trying to use a group by to achieve this task but unfortunatly cannot use it with an OLE object(map field in my country table).
Currently in my report what it does it it shows the country information each time a new emplyee has been found for that country.
Any ideas how this be done. Would appreciate any pointers. Thanks.
GreetInfo
|