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
How to run a query in teradata?
Give the sizes of SMALLINT, BYTEINT and INTEGER.
What is primary index and secondary index?
Hi send me the Teradata dumps to my id rajeshanantha@yahoo.co.in Thanks Rajesh. A
If Fast Load Script fails and only the error tables are made available to you, then how will you restart?
what are the day to day activities of teradata DBA ?
How to identify ppi columns?
What are some commonly used bteq scripts?
What are the different design perspectives used in teradata?
How to write the query . eid enm doj dob i want to display the names who worked more than 25 years .
Explain and compare pros and cons of start schemas?
Can we have an unconnected lkp to lookup a db2 record against a teradata record? Doesnt seem to work. I could be wrong
What is spool space? Why do you get spool space errors? How do trouble-shoot them?
What are the newly developed features of Teradata?
What are the uses of client software involved in teradata?