Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Summary Portion of Query returns wrong values
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00717292
Message ID:
00717658
Vues:
27
Hi Kirk,

Shouldn't it be SUM() not COUNT()?
select det.specDesc,
	det.surgeon,
	SUM(det.doccount) as doccount,
        ...
>I'm still working on this darn thing, thought I had it until I went through the details. If I just run the detail part of the query by itself, I get the right number of detail records 33. If I run the complete thing returning the summary values, I get a doc count of 27. I've got it filtered for testing to just one doctor.
>
>Thanks for any help.
>
< snip >
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform