Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excluding Deleted Rows from Multi-Table Select
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Excluding Deleted Rows from Multi-Table Select
Miscellaneous
Thread ID:
00322146
Message ID:
00322146
Views:
44
I am having trouble excluding deleted rows from one table in a four-table select statement. I've tried many different variations but can't seem to get it working. Any ideas?
SELECT lk.lk_userid, ul.activity, co.co_name, su.username, DELETED('testuserlog') AS uldeleted  ;
    FROM testuserlog ul ;
        JOIN seqlock lk ON ul.sessionid=lk.lk_sessionid ;
        JOIN sequser su ON lk.lk_userid=su.user ;
        JOIN seqco co ON ul.companyid=co.co_code ;
    WHERE NOT EMPTY(lk.lk_userid) ;
        AND NOT EMPTY(lk.lk_sessionid) ;
    HAVING uldeleted=.F.
Thanks,
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Next
Reply
Map
View

Click here to load this message in the networking platform