I have a few SQL calculations that is counting data from my tables and views and giving me a number value. The problem is when calculation cannot find any results i always get a $0 insted of a clean 0 number value. how do i set this up the right way? This also only happens if i have not been assigned any projects. If you look at the picture you see what happens when i log in with nothing assigned..
SELECT COUNT
(DISTINCT Projects_ProjectID)
FROM
_v_Customer_addNotesToProjects
WHERE
Projects_Assigned_staff = '[@authfield:Users_UserID]'
AND
Project_Notes_Viewed = 'False'
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
LynnR
Hi.
I have a few SQL calculations that is counting data from my tables and views and giving me a number value. The problem is when calculation cannot find any results i always get a $0 insted of a clean 0 number value. how do i set this up the right way? This also only happens if i have not been assigned any projects. If you look at the picture you see what happens when i log in with nothing assigned..
SELECT COUNT
(DISTINCT Projects_ProjectID)
FROM
_v_Customer_addNotesToProjects
WHERE
Projects_Assigned_staff = '[@authfield:Users_UserID]'
AND
Project_Notes_Viewed = 'False'
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.