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

how to return null values in a query

$
0
0

Hi All,

I have this following query 

SELECT        (ct.amount)
FROM            dbo.card AS c WITH (NOLOCK) INNER JOIN
                         dbo.card_transaction_log AS ct WITH (NOLOCK) ON ct.card_id = c.card_id  AND ct.transaction_response_cd = '00' AND 
                         ct.transaction_type_cd = 'REDEMPTION' AND ct.lastupdated <= '2013-12-09 11:02:00'
                         
                         where c.card_id IN 
                         (
                         1767811,
                         1767812,
                         1767813 )


It returns me 2 values as one of the value is NULL,how to make it return all the 3 values including NULL?


Even if i use ISNULL to set it to 0 it doesnt work.

Can someone please help me with any suggestions?

Thanks

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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