Search Postgresql Archives

self-join on subselect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




How do you do a self-join on a subselect ?

	like
	SELECT a.x+b.x FROM (subselect) a, (subselect) b WHERE a.id = b.id+10

but without performing the subselect twice ..................................?

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
     joining column's datatypes do not match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux