View Single Post

   
  #5 (permalink)  
Old 04-09-2008, 10:17 AM
Martijn van Oosterhout
 
Posts: n/a
Default Re: join on next row

On Tue, Jun 20, 2006 at 05:13:50PM +0200, Sim Zacks wrote:
> Thank you for responding.
> I was thinking along those lines as well, though that would be an
> absolute performance killer.


I shouldn't be too bad, if you have the appropriate indexes defined.

However, it seems to me this is the kind of problem that is solved
trivially in a function. You simply store the previous row and when you
get the next one you output both.

Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEmBS7IB7bNG8LQkwRAhbwAJ9obXlaA8J1xRHRoBIKa8 yONSLQpwCdENG7
mN/pqeD5I7BZErJdurNpNZ8=
=vhPe
-----END PGP SIGNATURE-----

Reply With Quote