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 a table t1 a math 20
b phy 30
cchemisty 10
a math 40
b phy 23
c che 21
a math15
bphy 33
c che 56
write a quire to find out the max markr of each subject

Answers were Sorted based on User's Feedback



i have a table t1 a math 20 b phy 30 cchemisty 10 a math 40 b phy 23 c che 21 a math15 bphy 3..

Answer / kart

select sname,max(mark) from xtable group by sname;
che 56
mat 40
phy 33

Is This Answer Correct ?    14 Yes 2 No

i have a table t1 a math 20 b phy 30 cchemisty 10 a math 40 b phy 23 c che 21 a math15 bphy 3..

Answer / giri babu

select sname,max(smarks)
from t1
group by sname

Is This Answer Correct ?    1 Yes 0 No

i have a table t1 a math 20 b phy 30 cchemisty 10 a math 40 b phy 23 c che 21 a math15 bphy 3..

Answer / kotesh

select sname,max(marks) from student group by sname;

Is This Answer Correct ?    1 Yes 0 No

i have a table t1 a math 20 b phy 30 cchemisty 10 a math 40 b phy 23 c che 21 a math15 bphy 3..

Answer / sumit

select subject,max(marks) from t1 group by subject;

Is This Answer Correct ?    0 Yes 0 No

i have a table t1 a math 20 b phy 30 cchemisty 10 a math 40 b phy 23 c che 21 a math15 bphy 3..

Answer / dharmendra

select subject,max(marks) from table_name
group by subject

Is This Answer Correct ?    0 Yes 0 No

i have a table t1 a math 20 b phy 30 cchemisty 10 a math 40 b phy 23 c che 21 a math15 bphy 3..

Answer / kotesh

select subname,max(marks) from t1 groupby subname

Is This Answer Correct ?    0 Yes 0 No

i have a table t1 a math 20 b phy 30 cchemisty 10 a math 40 b phy 23 c che 21 a math15 bphy 3..

Answer / satishilluri

select max(math)max(phy),max(che) from t1

Is This Answer Correct ?    9 Yes 12 No

i have a table t1 a math 20 b phy 30 cchemisty 10 a math 40 b phy 23 c che 21 a math15 bphy 3..

Answer / naresh

select subid,max(math),max(phy),max(che) from tablet1
group by subid

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

How do you write an index?

0 Answers  


I have the table like this S.No Name ID 01 Xyz 123 I want the result as 01Xyz123 How to write the query to retrieve the entire row data in a single column?

1 Answers  


What is parameter substitution in sql?

0 Answers  


how instead of triger is helpful for mutating tables errors handlling ?

2 Answers   Oracle,


How to run sql*plus commands in sql developer?

0 Answers  


what is the output of this query selet * from employee where 1=2 ??

11 Answers  


How many sql commands are there?

0 Answers  


What is left inner join in sql?

0 Answers  


Is sql between inclusive?

0 Answers  


What is character functions?

0 Answers  


Which software is used for pl sql programming?

0 Answers  


can we call a procedure into another procedure?If yes means how you can pass the perameters for the two procedures?

2 Answers   Fujitsu,


Categories