Hi Experts,
i am getting the Null Exception Error. Can any one throw some light on what is Null Conversion Exception and how to solve this issue.
CreateProcedure SREELATR.Parentchild (IN ZSCHEMA NVARCHAR(20),
IN TABLENAME1 NVARCHAR(200),
IN TABLENAME2 NVARCHAR(200),
IN TABLEKEY NVARCHAR(100),
OUT OUT_RESULT NVARCHAR(2000))
LANGUAGE SQLSCRIPT AS
SQLQ NVARCHAR(5000);
BEGIN
EXEC 'SET SCHEMA '||:ZSCHEMA;
OUT_RESULT := 'SELECT distinct '||:TABLEKEY||' from SREELATR.'||:TABLENAME1||
' MINUS '
'SELECT DISTINCT '||:TABLEKEY||' from CDW_POC.'||:TABLENAME2;
EXEC OUT_RESULT;
END;