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 / sumit

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is restrict in sql?

554


What does stand for in sql?

522


How do you update a table in sql?

519


What can you do with pl sql?

556


What is the difference between an inner join and an outer join?

514






What is the purpose of a secondary key?

506


How do I find duplicates in sql?

503


what are the 'mysql' command line options? : Sql dba

554


What is clustered index in sql?

583


How do I add a database to sql?

576


What is cursor and its types?

556


how to use 'mysql' to run sql statements? : Sql dba

537


What is pl/sql table? Why is it used?

559


What is sql partition?

548


How do I find duplicates in a single column in sql?

534