Re: [SQL] Window function sort order help

2011-09-18 Thread nicoletta maia
2011/9/13 Dianna Harter : Hi, > [snip] > Any suggestions to get the order by to occur first then the partition by or > maybe there another approach that I could use? I tried to write the query without using the window: SELECT `X`.`consumer_id`, `X`.`move_date` , `X`.`history_timestamp` ,

Re: [SQL] Window function sort order help

2011-09-14 Thread Nicoletta Maia
2011/9/14 Dianna Harter : > [snip] > Thank you again for your help. You're welcome. Sorry about the syntax, but I could only try on MySQL... and I was curious about the problem :) Nicoletta -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http:

Re: [SQL] Window function sort order help

2011-09-14 Thread Nicoletta Maia
2011/9/13 Dianna Harter : Hi, > [snip] > Any suggestions to get the order by to occur first then the partition by or > maybe there another approach that I could use? I tried to write the query without using the window: SELECT `X`.`consumer_id`, `X`.`move_date` , `X`.`history_timestamp` ,