Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Aged Yak Warrior
ISNULL(SUM(CASE WHEN NULLIF (TID, '0') IS NULL THEN Qty END), 0) AS QtyBooks
Flowing Fount of Yak Knowledge
select isnull(sum(Qty), 0) AS QtyBooks
where TID in ('0', '')
ISNULL(SUM(CASE WHEN TID IN ('0', '') THEN Qty END), 0) AS QtyBooks