Hi PH,
Could you please elaborate? As far as I know, the Nz function returns a value for a field that is NULL. How would I use the Nz(variant,value_when_null) function to simplify this query:
WHERE (LEFTJOINTABLE.id IS NULL) OR (LEFTJOINTABLEid IS NOT NULL AND (__PUT YOUR JOIN FILTERS HERE__)...
Here is the fix implemented as a function for use with LLBLGen in .NET 2.0:
Ryan
Public Shared Function getLeftJoinWHEREClause(Of TEntity As {IEntity, EntityBase})(ByRef myLeftJoinEntity As TEntity, ByRef myLeftJoinFilters As PredicateExpression) As PredicateExpression...
Problem: Cannot LEFT JOIN on x AND y when x and y are in different tables. "Join expression not supported" error.
PROVEN SOLUTION: If you want a true left join - where records are optional - and you're filtering by multiple fields in different tables - Then I have your answer.
To do...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.