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

How many sessions of MAX is PE capable of handling at a particular time?

1085


Describe the set operators in teradata.

1010


Highlight the advantages of PPI(Partition Primary Index).

1079


What are the various reporting tools in the market?

1074


How would you load a very large file in teradata in general?

1034


What are the primary characteristics of the Teradata.

1166


What is a node in teradata? Explain

1014


If a Node is busy what are the steps you can take to avoid ?

2416


What is the particular designated level at which a LOCK is liable to be applied in Teradata?

1049


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

1746


Explain and compare pros and cons of snow flake schemas?

1035


What is the difference between teradata and oracle?

1033


Let us say there is a file that consists of 100 records out of which we need to skip the first and the last 20 records. What will the code snippet?

1207


Highlight the differences between Primary Key and Primary Index.

1097


Hi Friends, Please send me Teradata Materials for certifications Thanks in advance !!

2184