Quantcast
Viewing all articles
Browse latest Browse all 8533

Re: How to filter UDF in User-defined tables?


Hi

Your problem is that the query dosen't recognize the field $[OITM.U_Producer] because it is UDF

you should put the sign " - " in the query

$[-OITM.U_Producer]

your query should be :

SELECT T1.[Name] FROM [dbo].[@5LEVEL]  T0  INNER JOIN [dbo].[@6LEVEL]  T1 ON T0.[Code] = T1.[U_MOD] WHERE T1.[U_MOD] =$[-OITM.U_Producer]

Try it I think it will work

 

This is the reason you see N''

the system add N before the value because the SQL need it in order to compare string value

the N'' mean that the value to compare is empty . $[-OITM.U_Producer] will solve the problem

hope it help you

shachar


Viewing all articles
Browse latest Browse all 8533

Trending Articles



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