Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Removing or deleting first row of dataset.

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-12-21 : 18:28:18
Chris Mercado writes "My team has a query that is stomping all of us. We have a SUM query that displays multiple columns but do not want to see the entire first row since it displays "0" which is part of a calculation. We thought we could include a NOT clause within the WHERE statement, but removing the entire first row may change our calculation."

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-12-21 : 18:38:39
You can use HAVING SUM(Column1) <> 0. If that doesn't work, please post your current code.

Tara Kizer
aka tduggan
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-12-22 : 02:25:47
Post some sample data and the result you want

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -