| | |||||||
|
Welcome to the YD Scuba forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
| Technology: Discuss SQL Help in the Non-Diving Related Forums forums: OK, need some help here with SQ syntax. I'm good for the basics but get lost when trying to do ... |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| try adding this to the end HAVING SUM(AA.AssetPercentage) >0 or if you need to see 0 values AND NOT ISNULL(SUM(AA.AssetPercentage)) |
| ||||
| Martin i would recommend the Transact-SQL Desk top Reference for MS SQL SERVER Ron |
| ||||
| Thanks Ron. I tried the first one, and it works, but the ISNULL function requires two parameters, so i added this to the end instead: Code: HAVING(ISNULL(SUM(AA.AssetPercentage),NULL)ISNOTNULL) Thanks for the pointers. Martin |
| ||||
| Quote:
They have been promising to send me on a SQL course, so that may help a little. Thanks again Martin |
| Thread Tools | |
| Display Modes | |
| |
| | ||