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 / kart
select sname,max(mark) from xtable group by sname;
che 56
mat 40
phy 33
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
How to run sql statements through the web interface?
What's the difference between inner join and left join?
what is the syntax used for partition in tsql? : Transact sql
what are the t string functions available in tsql? : Transact sql
what is uncommittable transactions? : Transact sql
what are myisam tables? : Sql dba
Why do we need view in sql?
Is join an inner join?
Why is sql important?
Is clustered index a primary key?
How do I remove sql plus from windows 10?
can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba
What is inner join in sql?
how to load data files into tables with 'mysqlimport'? : Sql dba
What is latest version of sql?