Re: [SQL] ROW_NUMBER alias

2007-05-06 Thread Robins
Hi Stefan, Well that was just an example. That table had a primary key on (id, date). By bad then, coz I guess I should have clarified that earlier. But what I meant from the example was that it is trivial for the parser to automatically put an enveloping SELECT to add a ROW_NUMBER() field to an

Re: [SQL] ROW_NUMBER alias

2007-05-06 Thread Stefan Becker
I might be told off by some better SQL-User here on the list - still here is my 2 Cents worth > I needed ROW_NUMBER() in PostGresql and I did find the 'temporary sequence' > method as a workaround and i think it at least gets the job done relatively you use: > CREATE TEMP SEQUENCE rownum

[SQL] ROW_NUMBER alias

2007-05-06 Thread Robins
Hi, I needed ROW_NUMBER() in PostGresql and I did find the 'temporary sequence' method as a workaround and i think it at least gets the job done relatively well, ... so no problems there. Its just that from a usability point of view, isn't it better that we provide some kind of an aliasing mecha