Thanks for the info, used a join in order to do that, now I have a "printrows with zcount 0" problem in my new question athttp://postgresql.1045698.n5.nabble.com/How-to-make-this-CTE-also-print-rows-with-0-as-count-td5726792.html
--View this message in context: http://postgresql.1045698.n5.nabble.com/Calling-the-CTE-for-multiple-inputs-tp5726661p5726793.htmlSent from the PostgreSQL - sql mailing list archive at Nabble.com.