| От | hubert depesz lubaczewski |
|---|---|
| Тема | Re: Finding records that are not there |
| Дата | |
| Msg-id | 20080522164733.GA31210@depesz.com обсуждение |
| Ответ на | Finding records that are not there (Owen Hartnett <owen@clipboardinc.com>) |
| Ответы |
Re: Finding records that are not there
|
| Список | pgsql-general |
On Thu, May 22, 2008 at 12:21:35PM -0400, Owen Hartnett wrote: > The SQL I've tried is: > select commcost.maplot, commcost.unitno from commcost > where not exists(select 1 from commcost, bldg > where commcost.maplot = bldg.maplot and > commcost.unitno = bldg.unitno) > order by commcost.maplot change it to: > select commcost.maplot, commcost.unitno from commcost > where not exists(select 1 from bldg > where commcost.maplot = bldg.maplot and > commcost.unitno = bldg.unitno) > order by commcost.maplot or simply write: select * from commcost except select * from bldg; depesz
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера