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

select subname,max(marks) from t1 groupby subname

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is vector point function?

560


What is loop in pl sql?

566


what is the difference between a web-garden and a web-farm? : Sql dba

554


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

2567


Is sql sequential or random?

534






How to fetch values from testtable1 that are not in testtable2 without using not keyword?

746


How to add a column ‘salary’ to a table employee_details?

583


What is a variable in sql?

511


How run sql*plus commands that are stored in a local file?

512


How are functions and procedures called in PL/SQL?

586


Explain the difference between rename and alias?

543


Define overloaded procedure?

620


What is the difference between union and union all command?

540


What is interval partition?

539


Is record in oracle pl sql?

527