main logo
Subject: RE: DELETE FROM with subselect
Author: "Nancy Folsom"
Posted: 2004/02/28 12:34:00
 
View Entire Thread
New Search


Hi, Derek-

> How about:
>
> DELETE FROM Jobs WHERE Jobs.nJobID IN (SELECT Crap.nJobID FROM Crap)
>
>
> Maybe VFP is getting confused as to what table the first
> nJobID is in...

Trying a suggestion out in code first is sometimes helpful. <s> See my reply
to Michael with code snippet. The only time you'd need to alias the field is
if you're joining tables, AFAICT.

Regards-
Nancy Folsom
Pixel Dust Industries
Author _Debugging_Visual_FoxPro_Applications_
http://www.hentzenwerke.com/catalogpricelists/debugvfp.htm



 
©2004 Nancy Folsom
<-- Prior Message New Search Next Message -->