How to remove this if not exists condition and how to print the result set same without if condition. The result set should be same as it behave with if not exists condition
IF NOT exists(select 1 from External_Blk_Itm_Contracts E INNER JOIN BUDTERMINALS BT ON BT.MBFTERMINALNAME = E.TerminalName AND E.ContractName = '00-000' Inner join BudCustomers BCu on BCu.LegalName = E.CustomerName INNEr JOIN BUDCONTRACTS BC ON BC.CUSTOMERID = bcu.CustomerID AND bc.TERMINALID = bt.TERMINALID)