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

select subid,max(math),max(phy),max(che) from tablet1
group by subid

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you identify a primary key?

624


What is a file delimiter?

550


What are the types of queries in sql?

516


How do you modify a trigger?

522


what is rollback? : Sql dba

589






How many types of indexes are there in sql?

535


What is bulk compiling in pl/sql.?

605


Why do we use function in pl sql?

553


What is nosql db?

536


Does user triggers have entry for trigger with compilation errors?

590


What is the use of sql trace?

473


What is the difference between execution of triggers and stored procedures?

548


What is an oracle stored procedure?

586


Explain the the delete statements in sql?

574


How do I partition a table in sql?

538