SELECT *, DELETED() as lDeleted FROM <table> etc.>Deleted records appear in the view with .F. in the last column. When I run the same select in the command window, deleted records have .T. in the last column.
SELECT ... FROM ( SELECT DELETED() ,... FROM TABLE1 WHERE ... ) T1 JOIN (SELECT DELETED() ... FROM TABLE2 WHERE ) T2but this lose the ON optimization