Click here to Skip to main content
15,887,135 members
Home / Discussions / Database
   

Database

 
AnswerRe: help!! phaleeezz!! error message: Plan dates are invalid (SQL 2000) Pin
Illegal Operation25-Oct-07 1:12
Illegal Operation25-Oct-07 1:12 
AnswerRe: help!! phaleeezz!! error message: Plan dates are invalid (SQL 2000) Pin
GuyThiebaut25-Oct-07 3:43
professionalGuyThiebaut25-Oct-07 3:43 
GeneralRe: help!! phaleeezz!! error message: Plan dates are invalid (SQL 2000) Pin
anthoy25-Oct-07 14:46
anthoy25-Oct-07 14:46 
QuestionERROR_MESSAGE() & SQL2005 Pin
Graham_424-Oct-07 22:21
Graham_424-Oct-07 22:21 
AnswerRe: ERROR_MESSAGE() & SQL2005 Pin
Sandeep Kumar24-Oct-07 22:54
Sandeep Kumar24-Oct-07 22:54 
GeneralRe: ERROR_MESSAGE() & SQL2005 Pin
Graham_424-Oct-07 23:02
Graham_424-Oct-07 23:02 
QuestionCount problem Pin
Nishad8524-Oct-07 18:31
Nishad8524-Oct-07 18:31 
AnswerRe: Count problem Pin
_Damian S_24-Oct-07 20:24
professional_Damian S_24-Oct-07 20:24 
select School, Semester, Grade, Campus,
sum(CASE WHEN Status = 'Accepted' THEN 1 ELSE 0 END) AS NumOfAccepted,
sum(CASE WHEN Status = 'Rejected' THEN 1 ELSE 0 END) AS NumOfRejected
from StudentResult
group by School, Semester, Grade, Campus

Of course, this is what you have asked for, but not necessarily the best way of going about it... you could always just use count (*) and use the Status as a Column heading also...


-------------------------------------------
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Just bugger off and leave me alone!!

Questionhow to know other users are connecting to my sql database Pin
skyleo_200824-Oct-07 17:06
skyleo_200824-Oct-07 17:06 
AnswerRe: how to know other users are connecting to my sql database Pin
N a v a n e e t h24-Oct-07 20:36
N a v a n e e t h24-Oct-07 20:36 
GeneralRe: how to know other users are connecting to my sql database Pin
skyleo_200824-Oct-07 22:04
skyleo_200824-Oct-07 22:04 
GeneralRe: how to know other users are connecting to my sql database Pin
N a v a n e e t h24-Oct-07 22:54
N a v a n e e t h24-Oct-07 22:54 
AnswerRe: how to know other users are connecting to my sql database Pin
John-ph25-Oct-07 3:08
John-ph25-Oct-07 3:08 
GeneralRe: how to know other users are connecting to my sql database Pin
skyleo_200825-Oct-07 15:01
skyleo_200825-Oct-07 15:01 
QuestionHow to create SQL function Pin
Yulianto.24-Oct-07 16:25
Yulianto.24-Oct-07 16:25 
AnswerRe: How to create SQL function Pin
Tirthadip24-Oct-07 21:04
Tirthadip24-Oct-07 21:04 
QuestionNewbie: round control buttons Pin
lee_hatcher24-Oct-07 14:48
lee_hatcher24-Oct-07 14:48 
AnswerRe: Newbie: round control buttons Pin
Paddy Boyd25-Oct-07 4:06
Paddy Boyd25-Oct-07 4:06 
GeneralRe: Newbie: round control buttons Pin
lee_hatcher25-Oct-07 5:06
lee_hatcher25-Oct-07 5:06 
GeneralRe: Newbie: round control buttons Pin
Paddy Boyd25-Oct-07 5:30
Paddy Boyd25-Oct-07 5:30 
GeneralRe: Newbie: round control buttons Pin
lee_hatcher25-Oct-07 5:39
lee_hatcher25-Oct-07 5:39 
QuestionDTSX and file locations Pin
CurtOlive24-Oct-07 12:06
CurtOlive24-Oct-07 12:06 
QuestionRun SQL query in A2T Application Pin
wellpoint24-Oct-07 9:01
wellpoint24-Oct-07 9:01 
AnswerRe: Run SQL query in A2T Application Pin
Dave Kreskowiak24-Oct-07 9:38
mveDave Kreskowiak24-Oct-07 9:38 
QuestionInstalling SQL 2008 VHDs Pin
Mark J. Miller24-Oct-07 3:29
Mark J. Miller24-Oct-07 3:29 

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.