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

select subject,max(marks) from table_name
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 are sql ddl commands?

759


Are subqueries faster than joins?

739


explain advantages of myisam over innodb? : Sql dba

818


What is function and procedure in pl sql?

717


What is sequence in sql?

738


What is an escape character in sql?

757


how to analyze tables with 'mysqlcheck'? : Sql dba

733


Explain the difference between rename and alias?

750


what are the security recommendations while using mysql? : Sql dba

779


What is the difference between a procedure and a function?

710


What is data abstraction in sql?

743


Is oracle and sql same?

761


How do I run a script in sql developer?

717


what are the properties and different types of sub-queries? : Sql dba

715


What is raw datatype in sql?

740