Re: JOIN a table twice for different values in the same query
В списке pgsql-sql по дате отправления:
| От | Colin Wetherbee |
|---|---|
| Тема | Re: JOIN a table twice for different values in the same query |
| Дата | |
| Msg-id | 47869C8C.4080109@denterprises.org обсуждение исходный текст |
| Ответ на | Re: JOIN a table twice for different values in the same query ("Phillip Smith" <phillip.smith@weatherbeeta.com.au>) |
| Ответы |
Re: JOIN a table twice for different values in the same query
|
| Список | pgsql-sql |
Phillip Smith wrote: > As a side note - all the IATA codes are unique for each airport - > wouldn't it be better to use these as the Primary Key and Foreign > Keys? Then you wouldn't have to even join the tables unless you > wanted the port names (not just the code) This is true, but FWIW, my application will mostly be joining for the name of the airport or the city, not the code. I'll keep the idea of using the codes as keys in mind, though. Thanks for pointing that out. Colin
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера