Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

SQL Query Result As '0'

$
0
0

Hi

Please find the below query and help me how to get the result as '0 when there is no match.The result of the below query is

Stack   Total

---------

I want the  result as

Stack  Total

0              0

SELECT DISTINCT Stack ,  COUNT( Stack) 
                                                 AS Total 
FROM MSP_EpmResource_UserView WHERE [Type of Resource]='Retainer'and Stack!='IW'And  Stack!='Infra' 
GROUP BY Stack

Please,Help me on this.Very urgent

Thanks in advance


Sowjanya G


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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