Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Problem TO make Group Query

Author  Topic 

rahul22984
Starting Member

1 Post

Posted - 2010-08-07 : 01:54:09
I have 3 tables

structure like that

Tblteams TblTeamsMembers TblAssessments
TId TMId EmpId
TId AssessmentType
tname EmpId ItemsDesignated(we have 5 itemsDesignated)
Total Score
The Problem is There are two type of assessments and I want To Get Avg total Score of a Team by employees score in team.

Points to be considerd

1. I used Group by clause but if i would mention only two assessmentTypes then query gives 10 rows (1 assessment have five rows at least)

2. only to get 5 rows with sum of two of assesments what will have to do.

Please revert soon!!!


Rahul

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2010-08-07 : 02:13:08
can you repost your question ?
please refer to http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

slimt_slimt
Aged Yak Warrior

746 Posts

Posted - 2010-08-07 : 07:55:26
please send DDL along with some sample data in order to deliver you solution to your problem.
Go to Top of Page
   

- Advertisement -