Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



i have column like below studentid studentname sub1 sub2 sub3 1 aaa 40 70 ..

Answer / radhika

Sel studentid,studentname,greatest(sub1,sub2,sub3) from tablename;

Is This Answer Correct ?    0 Yes 0 No

i have column like below studentid studentname sub1 sub2 sub3 1 aaa 40 70 ..

Answer / 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

More Teradata Interview Questions

How a Referential integrity is handled in Teradata?

5 Answers  


Comment whether bottleneck is an error or not.

0 Answers  


What are the components used in smp and massively parallel processing (mpp) machines?

0 Answers  


what are the uses of fact table and dimension table in banking project?

0 Answers   TCS,


Aborted in Phase 2 data acquistion completed in fastload?

2 Answers  


I want to load 1000 rcds using. FL for every 100 records there is a check point.But script failed at 120 records, when we are restarting the script, it starts from last ckpt, but Target table contains populated data but FL doesnt support existing data in target table. How can we load data in FL?

4 Answers   IBM,


Hi Friends I have a sql question, We have the source data as below. 101 address1, address2, address3 and the output shoulb like below 101 address1 101 address2 101 address3 Required a SQL query for this output. Please let me know if you have any sql query for this. Thanks in advance. Hari M

6 Answers   JPMorgan Chase,


What is bteq utility in teradata?

0 Answers  


Steps to create a data model?

0 Answers  


Explain the new features of teradata?

0 Answers  


How do you create tables? Exact syntax, and create profiles, users in teradata?

0 Answers  


Write a program to show the parser component used in teradata?

0 Answers  


Categories