记录删除有关问题

记录删除问题表1xh,xm要查询xh相同但xm不相同的记录应该怎么写命令?我用的是vfp6.0[解决办法]use 表1index

记录删除问题
表1
xh,xm
要查询xh相同但xm不相同的记录应该怎么写命令?
我用的是vfp6.0

[解决办法]
use 表1
index on xh+xm to sy
total to temp on xh+xm
select * from 表1 where xh in (select xh,count(*) as num from temp group by xh where num> 1)