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

Can we rollback delete command?

0 Answers  


How do you declare a user-defined exception?

0 Answers  


Can a procedure in a package be overloaded?

0 Answers   EXL,


How do I write a cron which will run a sql query and mail the results to agroup?

0 Answers  


overloading of stored procedure is possible in oracle?

3 Answers   Nelco,


Explain sql data types?

0 Answers  


How long it takes to learn pl sql?

0 Answers  


what is heap table? : Sql dba

0 Answers  


Can we commit inside a trigger?

0 Answers  


What is the relation b/w view and trigger

3 Answers   Accenture, TCS,


What are instead of triggers?

0 Answers  


Define commit?

0 Answers  


Categories