View Single Post
  #1 (permalink)  
Old 04-20-2006, 12:08 AM
ben ben is offline
Administrator
 
Join Date: Mar 2007
Posts: 92
ben has disabled reputation
Default ANY dialect question:

Find the minimum or maximum value across several columns?


Find the minimum or maximum value across several columns

Assume you have the following columns:
Code:
col1  col2
2       4
1       2
3       5
We want the answer to be 1 for minimum and 5 for maximum.

This question was asked on the postgres.sql mailing list Gmane -- Mail To News And Back Again
Reply With Quote

ANSWER(S):