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 / 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 |
How many columns can a postgres table have?
How do I add another column in postgresql?
List some of the features of postgresql ?
Is postgresql faster than mysql?
What is the difference between oracle and postgresql?
How do I install postgresql?
What is foreign key in postgresql?
Explain about the command enable debug?
What are foreign key constraints?
How to created a database?
Compare ‘postgresql’ with ‘nosql’?
Is postgresql secure?