Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Greatest Function in Netezza

Tags:

sql

netezza

Am trying to find the equivalent statement to below in Netezza

greatest(table1.column1, table2.column2, table3.column3)

also

least(table1.column1, table2.column2, table3.column3)

all the columns are dates

Any help is appreciated.

like image 959
user2740397 Avatar asked Mar 24 '26 05:03

user2740397


1 Answers

In newer versions of Netezza, this will also work:

max(table1.column1, table2.column2, table3.column3)
min(table1.column1, table2.column2, table3.column3)
like image 197
Alex Avatar answered Mar 28 '26 03:03

Alex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!