postgresql – selecting maximum for each group

Main menu:

Topics

Recent Posts

Blog

 

February 2012
M T W T F S S
« Jan    
 12345
6789101112
13141516171819
20212223242526
272829  

Past Posts

Java/J2EE

JDBC

Other

Archive for category JavaRanch

TSS Symposium Preview – Throw Away All The Rules. Now What Process Do You Follow?

February 17th, 2011 by Jeanne Boyarsky

As previously mentioned, Scott and I are both be presenting talks at TheServerSide Java Symposium in March. In preparation for the conference, we are providing sneak peaks of talks this week on the blog.  Scott gave a sneak preview of his GWT lecture.  He has so much information it didn’t all fit in his slides! [...]

postgresql and jdbc

June 13th, 2010 by Jeanne Boyarsky

In postgresql – selecting maximum for each group, we saw the actual stored function.  That was the easy part.  Then there was dealing with Postgresql and JDBC.  I encountered a few surprises while doing this. Calling the stored function I expected to use JDBC’s CallableStatement since I was calling a stored procedure.  Nope.  The proper [...]

postgresql – selecting maximum for each group

June 13th, 2010 by Jeanne Boyarsky

I had a requirement to return the thread with the most replies in each forum at JavaRanch‘s Coderanch forums.  In Postgresql 8.4, this would be very easy – just use the window functions.  Unfortunately, we aren’t on Postgresql 8.4 yet.  The other common pattern is something like This doesn’t work well for me either because [...]