Re: Complex outer joins?
От | Stephan Szabo |
---|---|
Тема | Re: Complex outer joins? |
Дата | |
Msg-id | 20030324070821.Q24147-100000@megazone23.bigpanda.com обсуждение исходный текст |
Ответ на | Complex outer joins? ("Correia, Carla" <Carla.Correia@logicacmg.com>) |
Список | pgsql-sql |
On Mon, 24 Mar 2003, Correia, Carla wrote: > My problem is joins. I've seen the syntax on joins and have sucessefully > used SQLs with joins, but I've got some other big SQL statements using many > and complex > joins. > Simplified example: > > select G.SELID, G.TEXT, > L.ID as SELLEVELID , L.SELLEVEL, L.LEVELJOIN, L.LEVELTEXT, > C.ID as KRITERIENFELDID, C.SELFLD > from G, L, C > where > and G.SELID = L.SELID (+) > and L.SELID = C.SELID (+) > and L.SELLEVEL = C.SELLEVEL (+) > > How can i write this in Postgres? As the problem is that I use one same > table for varios joins. This is a problem in Postgres. Any ideas? I don't really understand the question, it looks like two levels of outer join to me, the first between g and l using selid and the second between that and c using selid and sellevel. What do you mean "one same table for various joins"?
В списке pgsql-sql по дате отправления: