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

Answer Posted / kotesh

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a left join?

507


What is a boolean in sql?

520


How do we accept inputs from user during runtime?

544


What is crud sql?

537


What is triggering circuit?

592






What is a join?

621


what are dynamic queries in t-sql? : Transact sql

555


Can one improve the performance of sql*loader? : aql loader

585


what are the advantages of mysql in comparison to oracle? : Sql dba

525


How to change the order of columns in Oracle SQL Plus ?

610


What is sql*loader and what is it used for? : aql loader

618


what does the t-sql command ident_incr does? : Transact sql

594


What is normalization in sql?

521


Can a select statement fire a trigger?

656


Are left and right joins the same?

529