How can u find column name from a table which have max value
in a row.( not max value)

Answer Posted / prashanth

user greatedt function.

Ex select greatest(sal,bonus) from emp where emp_id = 1000;

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do sql triggers work?

742


Is sql open source?

713


What are the constraints available in sql?

781


What is a ddl command?

720


Does truncate remove indexes?

721






The select into statement is most often used to create backup copies of tables or for archiving records?

769


How do I view a sql trace file?

756


What is a procedure in pl sql?

777


What is a .db file?

724


Why is there a need for sqlcode and sqlerrm variables?

756


Define implicit and explicit cursors.

808


Is truncate ddl or dml?

751


a table has 2 classifications 1)liabilities 2)earnings this liabitity has 2 elements with 2 input values and the earnings have 2 elements with 2 input values i wrote a query so that my input is liability savings amount1 amount2 xxxx null xxxxxx 0 xxx1 null xxxxx1 0 null yyyy 0 yyyy null yyy1 0 yyy1 my problem is --when i developed a report(d2k) with this data my o/p is liabilities,amount1,savings,amount2 xxxx xxxxxx xxx1 xxxxx1 yyyy yyyy yyy1 yyy1 how could i move this savings,savings values 2 palces up. can any body provide me witha better solution

1949


What is a sql*loader control file?

788


What is the process of copying data from table a to table b?

801