Question

Asked on 2012-02-18 at 14:25:18ID: 27593792

Delete all records in a table that match records in 2nd table

by: wispine500

Rating8.7Very Good

I am using VFP 6. I have 2 .dbf's, contract.dbf & deposit.dbf. Both tables have a field called tranid & have indexes setup on that field.

I need to delete all records in deposit.dbf that have the same tranid as those  in contract.dbf. I have tried the following but no records are deleted.

sele 1
USE deposit.dbf orde depoti
sele 2
USE contract.dbf orde contractti
sele deposit
set rela to tranid into contract
delete all for deposit.contnumb=loan.contnumb

Related Solutions

Solution

Access this solution immediately by signing up as a member of FoxproAnswers.com--it’s quick, easy, and secure. We will return you to this solution, unlocked, when you’re done.

About this Solution
Sign up Now to View This Solution
Zone
general
Tags
delete
Participating Experts
1
Solution Grade
A

Replies

 by:

Posted on 2012-02-18 at 14:41:43ID: 37614841

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: pcelba

Posted on 2012-02-18 at 14:47:36ID: 37614850

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: pcelba

Posted on 2012-02-18 at 14:51:36ID: 37614859

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: wispine

Posted on 2012-02-18 at 15:50:39ID: 37614964

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: wispine

Posted on 2012-02-18 at 16:27:30ID: 37615030

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: pcelba

Posted on 2012-02-19 at 01:23:57ID: 37615704

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Top Experts

  1. pcelba

    5,240

    0 points yesterday

    Profile
  2. mozner

    2,000

    0 points yesterday

    Profile
  3. mbarbir

    1,912

    0 points yesterday

    Profile
  4. jrbbldr

    1,500

    0 points yesterday

    Profile

BrowseAre you an Expert?