| От | Bruno Wolff III |
|---|---|
| Тема | Re: SQL query |
| Дата | |
| Msg-id | 20050211133953.GB5110@wolff.to обсуждение исходный текст |
| Ответ на | SQL query (David Goodenough <david.goodenough@btconnect.com>) |
| Ответы |
Re: SQL query
|
| Список | pgsql-general |
On Fri, Feb 11, 2005 at 11:07:24 +0000, David Goodenough <david.goodenough@btconnect.com> wrote: > > I thought of using an inner select for the join, and using limit 1 to > get just the one, and forcing the order by to give me the billing > address by preference, but I am then dependant on the sort order > of the particular type values I am selecting from. You can order by boolean expressions such as type = 'billing'. You can use that with LIMIT or DISTINCT ON to get just the address you want.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера