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 / giri babu

select sname,max(smarks)
from t1
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

Can pl sql procedure have a return statement?

548


What are the types of variable use in pl sql?

564


Why do we use procedures in sql?

547


How to use transactions efficiently : transact sql

540


what is the command used to fetch first 5 characters of the string? : Sql dba

1132






How insert into statements in sql?

586


Is stored procedure faster than query?

562


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

543


What does select count (*) mean in sql?

545


Which one is better subquery or joins?

553


What is clustered index in sql?

583


What is full join in sql?

519


How much ram can sql express use?

505


Name the operator which is used in the query for pattern matching?

503


Why schema is used in sql?

515