Click here to Skip to main content
15,893,588 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Stored Procedure Column Pin
Lea Hayes31-Mar-07 10:17
Lea Hayes31-Mar-07 10:17 
GeneralRe: SQL Stored Procedure Column Pin
Colin Angus Mackay31-Mar-07 10:24
Colin Angus Mackay31-Mar-07 10:24 
Questionself join Pin
zizu9096@gmail.com31-Mar-07 5:31
zizu9096@gmail.com31-Mar-07 5:31 
AnswerRe: self join Pin
Colin Angus Mackay31-Mar-07 10:13
Colin Angus Mackay31-Mar-07 10:13 
AnswerRe: self join Pin
DQNOK2-Apr-07 6:55
professionalDQNOK2-Apr-07 6:55 
QuestionHow to calll Oracle stored procedures from Microsoft Reporting Services Pin
maskor ma31-Mar-07 1:36
maskor ma31-Mar-07 1:36 
QuestionError: DataBinding: 'System.Data.DataRowView' [modified] Pin
nothingbutcat30-Mar-07 16:25
nothingbutcat30-Mar-07 16:25 
QuestionComplex Select Query Pin
Girish48130-Mar-07 7:48
Girish48130-Mar-07 7:48 
There is a table name "ResultData" which following data :

Rollno Result SchoolCode
1 First 1
2 First 1
3 Second 2
4 First 1
5 Fail 2
6 Third 2
7 Second 1
8 Fail 3
9 Fail 1
10 Second 2

I want the output like this :

(School code wise count of Result)

SchoolCode First Second Third Fail Total
1 3 1 0 1 5
2 0 2 1 1 4
3 0 0 0 1 1

Please write a single select query to get output.
Thanks in advance

Girish Kumar Sharma
AnswerRe: Complex Select Query Pin
DQNOK30-Mar-07 8:12
professionalDQNOK30-Mar-07 8:12 
GeneralRe: Complex Select Query Pin
Girish48130-Mar-07 8:28
Girish48130-Mar-07 8:28 
GeneralRe: Complex Select Query Pin
DQNOK30-Mar-07 8:39
professionalDQNOK30-Mar-07 8:39 
GeneralRe: Complex Select Query Pin
Jerry Hammond30-Mar-07 15:16
Jerry Hammond30-Mar-07 15:16 
GeneralRe: Complex Select Query Pin
DQNOK30-Mar-07 12:49
professionalDQNOK30-Mar-07 12:49 
GeneralRe: Complex Select Query Pin
Girish48130-Mar-07 21:23
Girish48130-Mar-07 21:23 
AnswerRe: Complex Select Query - I think that might help [modified] Pin
The_Server30-May-07 22:27
The_Server30-May-07 22:27 
QuestionSQL IDE Recommendation Pin
mobius11100130-Mar-07 5:28
mobius11100130-Mar-07 5:28 
AnswerRe: SQL IDE Recommendation Pin
Paul Conrad23-Apr-07 14:50
professionalPaul Conrad23-Apr-07 14:50 
AnswerRe: SQL IDE Recommendation Pin
Chennaigirl26-Sep-07 21:33
Chennaigirl26-Sep-07 21:33 
QuestionHow do I change the location of (LOCAL)? Pin
Marcus J. Smith30-Mar-07 5:01
professionalMarcus J. Smith30-Mar-07 5:01 
AnswerRe: How do I change the location of (LOCAL)? Pin
Colin Angus Mackay30-Mar-07 5:08
Colin Angus Mackay30-Mar-07 5:08 
GeneralRe: How do I change the location of (LOCAL)? Pin
Marcus J. Smith30-Mar-07 5:12
professionalMarcus J. Smith30-Mar-07 5:12 
GeneralRe: How do I change the location of (LOCAL)? Pin
Colin Angus Mackay30-Mar-07 6:49
Colin Angus Mackay30-Mar-07 6:49 
GeneralRe: How do I change the location of (LOCAL)? Pin
Marcus J. Smith30-Mar-07 7:13
professionalMarcus J. Smith30-Mar-07 7:13 
GeneralRe: How do I change the location of (LOCAL)? Pin
Colin Angus Mackay30-Mar-07 8:40
Colin Angus Mackay30-Mar-07 8:40 
AnswerRe: How do I change the location of (LOCAL)? Pin
kubben30-Mar-07 13:44
kubben30-Mar-07 13:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.