Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Deleted() in SQL
Message
From
17/08/1999 13:54:52
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00254376
Message ID:
00254601
Views:
18
Hi Mark,

I wonder if it might work if you added a condition to the sub-select, along the lines of " where empid == customer.emp_num AND deleted()) ".

Good luck,

Jim N

>First, SET DELETED is OFF. Why does the following SQL not work?
>select cust_num, emp_num from customer ;
>   where customer.emp_num in ;
>   (select empid from employee where deleted())
>But the following will find the correct customer records:
>
>use employee order empid
>sele 0
>use customer
>set relation to emp_num into employee
>set filter to deleted("employee")
>locate
>
>TIA!
Previous
Reply
Map
View

Click here to load this message in the networking platform