SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 13th, 2004, 01:22 PM
greetInfo greetInfo is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 71 greetInfo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Group By in SQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT