i have three table
1. student (stuid,name)
2. subject (subid,sname,studid)
3. marks (subid,studentid,marks)
i want the reslut of how as got max marks in each subject
sudentname,max(marks), name
abc,70,nikitha
Answer Posted / somnath banerjee
select (select studentname from student where stuid=a.studentid) as studentname,marks,(select sname from subject where subid=a.subid) as name from (select subid,studentid,max(marks) from marks group by subid,studentid) a;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is postgresql vs mysql?
What does postgresql mean?
What is function and stored procedure?
How do you query pgadmin?
What is toast in postgres?
What are the character types that are available in postgresql?
What is postgres vacuum?
Is it postgre or postgres?
How do you run a query in pgadmin 3?
What is postgis extension?
What do you mean by catalog?
What is the advantage of postgresql?
Do indexes speed up queries?
What is blob in postgresql?
What is vacuuming in postgresql?