Цитата:
Сообщение от NumLock
Код:
SELECT *
FROM t04
WHERE NOT EXISTS
(SELECT 1
FROM t04m
WHERE t04m.kod_kab = t04.kod_kab)
общее поле kod_kab
|
Код:
form2.adoquery3.SQL.add('SELECT * FROM temporable where not exists (select 1 from CB where CB.catalog=temporable.catalog)');
неопознанная ошибка, а так
Код:
form2.adoquery3.SQL.add('SELECT * FROM temporable where not exists (select * from CB where CB.[catalog]=temporable.[catalog])');
выводит пустой набор хотя однозначно данные есть
Всё заработало таким вот образом:
Код:
form2.adoquery3.SQL.add('SELECT * FROM temporable where not exists (select 1 from CB where temporable.[catalog]=CB.[catalog])');
Благодарю!