"Albretch Mueller" <lbrtchx@xxxxxxxxx> writes: > thank you Stefan your SQL worked, but still; I am just asking and my > programming bias will certainly show, but aren't you effectivly > "calling" count on the table three times if you go: The system is smart enough to only do the count() once. regards, tom lane