Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sqlcode -802

Status
Not open for further replies.

gdg1976

Programmer
Sep 1, 2021
14
IT
hi all,


i get sqlcode -802 from this UPDATE:

[pre]UPDATE taba SET afield1 = 'S'
WHERE afield2 = 'I'
AND afield3 IN
(SELECT bfield3 FROM tabb
WHERE bfield1 IN
( SELECT cfield1 FROM tabc
WHERE cfield1 = 'I'
GROUP BY cfield1 HAVING count(*) > 1)
GROUP BY bfield3)[/pre]

Perhaps the reason could be that the follow subselect has no record ?
[pre](SELECT cfield1 FROM tabc
WHERE cfield1 = 'I'
GROUP BY cfiel1 HAVING count(*) > 1 )[/pre]

but why don't i get 100 ?

thanks
Bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top