Dayananthan M. posted an article on
Dayananthan’s Weblog
-
Jun 12, 2008, 4:59 am
The following query will fetch you the max value among three columns
Create Table #test (Name Char(10), Qty1 INT, QTY2 INT, QTY3 INT)
Insert into #Test (Name, QTY1, QTY2, QTY3) Values (‘Monitor’,12,13,11)
Insert into #Test (Name, QTY1, QTY2, QTY3) Values (‘KeyBoard’,8,7,6)
Insert i...