Search Postgresql Archives

error with Subquery

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

 



Hi!

error with Subquery alias...

help...

SELECT *,(SELECT COUNT(id)
FROM articles a WHERE a.lft < articles.lft AND a.rgt > articles.rgt) AS depth
FROM articles
where (depth < 3)
ORDER BY lft


 Max                          mailto:maxim.bondaruk@xxxxxxxxx



[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