Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete query
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00539028
Message ID:
00539046
Views:
14
>hi
>
>how can I write this query in MS access in vfp
>
>DELETE DISTINCTROW claim_detail.*
>FROM [claims 02] INNER JOIN claim_detail ON ([claims 02].LINE = claim_detail.LINE) AND ([claims 02].CLAIM_NUM = claim_detail.CLAIM_NUM);
>
>
>bhushan

I will take a shot:

DELETE from claim_detail
WHERE LINE+CLAIM_NUM IN (SELECT DISTINCT LINE+CLAIM_NUM from claims02)


Given that Claim_Detail is the table to delete from and Claims02 is the table used to check for data.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform