FoxAmateur
Programmer
Does anyone know why the following code generates an invalid subquery error in VFP 8.0?
I am trying to create a cursor of records where the phone number appears in tableA more than once.
Chris
![[spin] [spin] [spin]](/data/assets/smilies/spin.gif)
Code:
SELECT * from tableA
WHERE phone in (SELECT phone, count(phone) as count FROM tableA GROUP BY phone HAVING count > 1)
I am trying to create a cursor of records where the phone number appears in tableA more than once.
Chris
![[spin] [spin] [spin]](/data/assets/smilies/spin.gif)