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 / sonal
Try below :
sel studentid,studentname, greatest(sub1,sub2,sub3) max_masks
from student
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Differentiate database data and data warehouse data?
What is the syntax for case when statement?
What is TPD?
Explain BYNET.
What is a dimension table?
how do we write scripts in unix how to execute scripts in real time anybody please needfull or give me number i will cal u
What is upsert statement in teradata?
What are the updated features of teradata?
What is the difference between global temporary tables and volatile temporary tables?
Explain the teradata primary index mechanics in detail with a diagram.
There is a column with date in it. If I want to get just month how it can be done? Can I use sub string?
Hi Friends, Please send me Teradata Materials for certifications Thanks in advance !!
Highlight the limitations of TPUMP Utility.
What are the various indexes in teradata? How to use them? Why are they preferred?
How teradata makes sure that there are no duplicate rows being inserted when its a set table?