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


Please Help Members By Posting Answers For Below Questions

What is the difference among union, minus and intersect?

544


explain normalization concept? : Sql dba

585


Does access use sql?

556


What is a pl/sql block?

590


What is the difference between inner join and outer join?

527






What is sql deadlock?

562


How much does a sql dba make? : SQL DBA

506


Is oracel sql developer written in java?

646


What is rank () in sql?

529


What is sql table?

520


Is sql a backend language?

618


What is forward declaration in pl sql?

588


what is a trigger? : Sql dba

573


What are the types pl/sql code blocks?

609


Why partition by is used in sql?

552