| От | Frans de Wet |
|---|---|
| Тема | Retrieving the record not matched with a join. |
| Дата | |
| Msg-id | 000101be7bb8$93709360$0101a8c0@carolina обсуждение исходный текст |
| Ответ на | Re: [SQL] merging date and time (Oliver Smith <oliver@kfs.org>) |
| Список | pgsql-sql |
Hi, I have two tables, A and B. A contains records which includes an ID or one of the records in table B. A would typically contain the fields: IDA IDB DATA1 DATA2 and B: IDB DATA3 DATA4 I have several records in both but a few of the records in A has a IDB field which does not point to a valid record in B (the record has been deleted). I know how to get all the records in A that have existing records in B. SELECT * FROM A, B WHERE A.BID = B.BID. Now my question ... How do I get the records in A that DO NOT have existing records in B ??? Perplexed look and deep frown ;-) Thanks in Advance Frans
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера