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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Show data in matrix form

Author  Topic 

alto
Starting Member

3 Posts

Posted - 2011-06-18 : 06:57:43
I need to write a procedure that will show data in matrix form.

I have the following tables
1. tbl_Judge
Col: JudgeID, Name

2. Tbl_candidate
Clos: ID, CadidateName

2. tbl_VoteResult
Col: ResultID, FK_JudgeID, FK_CandidateID, Marks

I want to show data in below format

CandidateName Judge1GivenNo Judge2GivenNo Judge3GivenNo Judge4GivenNo Total
C1 3 7 5 9 24
C2 4 4 4 8 20
C3 2 5 7 8 22

JudgeGivenNo(these are judge name will come from judge table and shows marks data)

Please help me on this

alto
Starting Member

3 Posts

Posted - 2011-06-18 : 23:46:09
any one is having problem to understand the required query?
Go to Top of Page
   

- Advertisement -