[snip]
Can anyone explain why this SQL statement would fail? A friend was asked
it
in a pre-interview assessment and it threw him a bit.
 
SELECT T1.BldgName T1.StreetName, T1.Locality, T1.PostTown from PstlAddr
T1
Where T1.City='London' AND NOT EXISTS (SELECT T2.Pstl_Address_PK from
PrsnAddress T2)
[/snip]

Probably because there is no correlation in the sub-query, where the sub
references any column of the first table.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to