← Samsung questions

Find subject-wise maximum marks sorted by subject and marks

Filed under Samsung

Given a student table with columns student_name, subject, and marks, write an SQL query to find the maximum mark for each subject. Order the results by subject in ascending order and by marks in…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.