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

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


Please Help Members By Posting Answers For Below Questions

If the PMON is not working then how do you manage and monitor all processes, resources and sessions etc.

2101


Can any one explain me the difference between BTEQ and MLOAD,TUMP. All canbe used for same purpose but still differnt methods. why ?

3541


What is bteq script in teradata?

1083


Give a justifiable reason why Multi-load supports NUSI instead of USI.

1082


What is oltp?

919


Difference between inner join and outer join?

955


how can we analyze the locks ?

2061


Highlight all the modes that are present under Confidence Level.

921


What is the purpose of joins in teradata and what are the available join types?

1007


how do you manage the production space. what are the proactive methods you can take ?

1884


Explain the term 'primary key' related to relational database management system?

984


What are the steps involved in the process flow of the sql statement through channel attached system?

1053


what are the day to day activities of teradata DBA ?

5758


What is the opening step in basic teradata query script?

984


Describe primary index in teradata?

959