Click here to Skip to main content
15,911,890 members
Home / Discussions / Database
   

Database

 
Questionusing aggregates on NULL Pin
Rob Philpott22-Mar-06 4:48
Rob Philpott22-Mar-06 4:48 
AnswerRe: using aggregates on NULL Pin
Michael Potter22-Mar-06 4:54
Michael Potter22-Mar-06 4:54 
GeneralRe: using aggregates on NULL Pin
Rob Philpott22-Mar-06 6:14
Rob Philpott22-Mar-06 6:14 
GeneralRe: using aggregates on NULL Pin
Michael Potter22-Mar-06 8:29
Michael Potter22-Mar-06 8:29 
GeneralRe: using aggregates on NULL Pin
Rob Philpott22-Mar-06 8:59
Rob Philpott22-Mar-06 8:59 
AnswerRe: using aggregates on NULL Pin
albCode22-Mar-06 4:55
albCode22-Mar-06 4:55 
AnswerRe: using aggregates on NULL Pin
Steve Schaneville22-Mar-06 7:15
professionalSteve Schaneville22-Mar-06 7:15 
AnswerRe: using aggregates on NULL Pin
Chris Meech22-Mar-06 7:22
Chris Meech22-Mar-06 7:22 
I think you need to change
SELECT tt.col, Count(isnull(tt.col, 'NULL'))

to
SELECT isnull(tt.col, 'NULL'), Count(tt.col)

and the group by needs the isnull check also.

Chris Meech

I am Canadian. [heard in a local bar]

When I want privacy, I'll close the bathroom door. [Stan Shannon]

BAD DAY FOR: Friendly competition, as Ford Motor Co. declared the employee parking lot at its truck plant in Dearborn, Mich., off limits to vehicles built by rival companies. Workers have to drive a Ford to work, or park across the street. [CNNMoney.com]

Nice sig! [Tim Deveaux on Matt Newman's sig with a quote from me]

-- modified at 13:23 Wednesday 22nd March, 2006
JokeRe: using aggregates on NULL Pin
Jorge Novo23-Mar-06 13:09
Jorge Novo23-Mar-06 13:09 
QuestionBLOB size in oracle 8? Pin
chilituna22-Mar-06 1:56
chilituna22-Mar-06 1:56 
QuestionProcedure Pin
ArielR22-Mar-06 0:06
ArielR22-Mar-06 0:06 
AnswerRe: Procedure Pin
J4amieC22-Mar-06 0:12
J4amieC22-Mar-06 0:12 
AnswerRe: Procedure Pin
HimaBindu Vejella22-Mar-06 0:39
HimaBindu Vejella22-Mar-06 0:39 
GeneralRe: Procedure Pin
ArielR22-Mar-06 3:17
ArielR22-Mar-06 3:17 
QuestionLinks for Stored Procedure Pin
Rajkamal_dfine22-Mar-06 0:02
Rajkamal_dfine22-Mar-06 0:02 
AnswerRe: Links for Stored Procedure Pin
HimaBindu Vejella22-Mar-06 0:47
HimaBindu Vejella22-Mar-06 0:47 
AnswerRe: Links for Stored Procedure Pin
HimaBindu Vejella22-Mar-06 0:56
HimaBindu Vejella22-Mar-06 0:56 
QuestionWhat do you need SQL Server for? Pin
Link260021-Mar-06 23:19
Link260021-Mar-06 23:19 
AnswerRe: What do you need SQL Server for? Pin
HimaBindu Vejella22-Mar-06 0:49
HimaBindu Vejella22-Mar-06 0:49 
GeneralRe: What do you need SQL Server for? Pin
Link260022-Mar-06 2:51
Link260022-Mar-06 2:51 
GeneralRe: What do you need SQL Server for? Pin
Michael Potter22-Mar-06 2:59
Michael Potter22-Mar-06 2:59 
GeneralRe: What do you need SQL Server for? Pin
Link260022-Mar-06 3:48
Link260022-Mar-06 3:48 
GeneralRe: What do you need SQL Server for? Pin
Michael Potter22-Mar-06 4:10
Michael Potter22-Mar-06 4:10 
GeneralRe: What do you need SQL Server for? Pin
Link260022-Mar-06 4:15
Link260022-Mar-06 4:15 
GeneralRe: What do you need SQL Server for? Pin
Michael Potter22-Mar-06 4:50
Michael Potter22-Mar-06 4:50 

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.