Mercurial > hg > tema
view dist/biotopes/class.sql @ 0:1d2fe61a3a62 release_0_1
Tema 0.1 (imported from CVS).
author | Mikhail Kryshen <mikhail@kryshen.net> |
---|---|
date | Tue, 16 May 2006 18:04:09 +0400 |
parents | |
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')