Re: [SQL] Debugging postmaster to fix possible bug in Postgres? Followup to How do you select

2003-02-13 Thread Nicholas Allen
Ooops! Appologies to all for being sooo stupid! I thought the order by was applied before the WHERE and if ordering in DESC order for example would mean greater than and so on in the where clause because I assumed meant it would appear before in the returned order. Of course the where just

Re: [SQL] Debugging postmaster to fix possible bug in Postgres? Followup to How do you select

2003-02-13 Thread Nicholas Allen
Because the WHERE clause is directly affected by the ORDER BY clause. If you leave out the order by clause then the row count will be completely different and therefore wrong. The ORDER BY clause is just as important as the WHERE clause when counting rows. It should be possible to get a count