Mercurial > hg > tema
view misc/biotopes/class.sql @ 30:54539dff18ca
Allow access to the calling (outer) context. Start parse_args implementation.
author | Mikhail Kryshen <mikhail@kryshen.net> |
---|---|
date | Fri, 15 May 2009 03:07:16 +0400 |
parents | 6c41a0b43e58 |
children |
line wrap: on
line source
SELECT t1.* FROM biotopelist AS t1 WHERE rusname AND Right(t1.rangcode, 8) = '00000000' AND EXISTS (SELECT NULL FROM biotopelist AS t2 WHERE Left(t2.rangcode, 1) = Left(t1.rangcode, 1) AND Right(t2.rangcode, 8) <> '00000000')