Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Trying to use a sum in a where clause and I can't get the syntax right

$
0
0

In the select I need to sum(Day1)  field (which is a decimal field)  as Day1Hrs so I can test the field for 0 in my where clause

________________

and Day1Hrs = 0

I don't have enough experience with SQL to get the syntax right or even know if I can to that.  The where clause doesn't recognize the Day1Hrs field.  

Any help is appreciated.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>