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 |
PostgreSql Disadvantages
How is the statistics in PostgreSQL updated?
How to stop database server in postgresql?
How to create table with timestamp in postgres?
What do you mean by catalog?
Does postgresql have a gui?
What is mvcc in postgresql?
How do you edit data in pgadmin?
Where is psql data stored?
How to drop a constraint in postgres?
Do foreign keys speed up queries?
What is a table catalog?