Write a query to display the student names and the maximum mark scored by them in any subject, ordered by name in ascending order. Give an alias to the maximum mark as max_mark.
Answers
Answered by
3
Answer:
this in micrsoft office access
Explanation:
first click new database
then click on table of data sheet
data sheet
the table is put
Answered by
14
The query to display the student names and the maximum mark scored by them in any subject, ordered by name in ascending order can be given as follows:
SELECT name, MAX(mark) as max_mark FROM student_info
GROUP BY name
ORDER BY name ASC;
The above query is formulated on the assumption that ‘student_info’ is a table in a database and name, mark are fields in the table with string and numeric data types respectively.
Similar questions
Math,
6 months ago
Math,
6 months ago
Chemistry,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Science,
1 year ago
Math,
1 year ago