Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Warning: Null value is eliminated by an aggregate or other SET operation.

$
0
0

 

 

Hi,

 

When I run a aggregate query, the null values are eliminated , is there a way to get the all values including NULLs as well? Thanks,

 

below is my sample script

 

SELECT

DISTINCT

TF

.LEAD_ID,

MAX(DT.)           AS A,

MAX

(BMP.B)     AS B,

MAX(PC.C)       AS C,

MAX(BM.D)AS D

--INTO

#TEMP_FALL_OWNER_NULL

FROM

 TableA TF

 

INNER

JOIN tABLES

 

GROUPBY TF.LEAD_ID


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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