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 |
What is postgresql written in?
What is postgres default password?
Is postgres a database?
Does creating a foreign key create an index?
Where is pg_hba conf?
What is the option used in PostgreSQL to increase the number of shared memory buffers shared among the backend processes
What is serial data type in postgresql?
What is write ahead logging in postgresql?
Why are stored procedures used?
What is postgres process?
What is shared_buffers postgresql?
How do I alter a table in postgresql?