Query to select not Null records in SQL Server

Last Reply 7 months ago By dharmendr

Posted 7 months ago

Dear All,

I have the query mentioned below.

SELECT [BNK_OrgNum],[BNK_RecRef],[MsgTp_RecRef],[MsgTyp_MsgID],[MsgTyp_Desc],MsgTyp_FK_ServType,MsgTp_Active 
FROM [Bank_Master],[SysDef_MessageType],[Bank_MsgType]
WHERE [MsgTp_FK_MsgType]=[MsgTyp_RecRef] AND [MsgTp_FK_Bank]=[BNK_RecRef] 
--AND [MsgTp_Active]=0 

For Some BNK_OrgNum the MsgTp_Active column=1 ,some MsgTp_Active=0. I need a query where the MsgTp_Active=0 where the BNK_OrgNum  is not using any MsgTyp_MsgID

This question does not have replies that have been liked.