Re: Need query

Поиск
Список
Период
Сортировка
От David G Johnston
Тема Re: Need query
Дата
Msg-id 1397237950480-5799694.post@n5.nabble.com
обсуждение исходный текст
Ответ на Need query  (Gaurav Jindal <gaurjin@gmail.com>)
Список pgsql-general
Gaurav Jindal wrote
> a has relation with b and b has relation with c

Given this statement what specifically are you having difficulty with.  You
are allowed to perform multiple joins, whether explicit or via FROM/WHERE,
in the same query.

SELECT ...
FROM a,b,c
WHERE a=b and b=c

OR

SELECT ...
FROM c
JOIN b on c=b
JOIN a ON b=a

David J.





--
View this message in context: http://postgresql.1045698.n5.nabble.com/Need-query-tp5799681p5799694.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


В списке pgsql-general по дате отправления:

Предыдущее
От: Andy Colson
Дата:
Сообщение: Re: efficient way to do "fuzzy" join
Следующее
От: Susan Cassidy
Дата:
Сообщение: Problem with query