i have column like below
studentid studentname sub1 sub2 sub3
1 aaa 40 70 90
2 bbb 60 80 50
i want to execute every student highest mark in which subject
my o/p like below
studentid studentname sub3 sub2
1 aaa 90
2 bbb 80
Answer Posted / radhika
Sel studentid,studentname,greatest(sub1,sub2,sub3) from tablename;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we collect statistics on table level?
What is the difference between fastload and multiload?
Why managing the data is important?
What is meant by Teradata Gateway?
What is the purpose of joins in teradata?
In Teradata, what is the significance of UPSERT command?
What is a sparse index?
What does sleep function does in fast load?
How many sessions of MAX is PE capable of handling at a particular time?
What are the enhanced features in teradata v2r5 and v2r6?
What is the difference between fastload and multiload? Which one is faster?
Syntax for case when statement?
What is database exceptions in teradata?
why use references rather than pointers in the public api, particularly for arguments which are modified?
How to view every column and the columns contained in indexes in teradata?