Write SQL to compute max and min marks
Company: IBM
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Online Assessment
Overview: This question evaluates a candidate's ability to perform basic data aggregation in SQL, specifically computing summary statistics from a single table. It is commonly asked to assess competence in data manipulation and query result shaping within the Data Manipulation (SQL/Python) domain, focusing on practical application of SQL aggregation rather than purely conceptual theory.
Tables
marks(student_id INT, marks INT)
Hints
- Use aggregate functions to compute the max and min across all rows.
- The result should be a single row with two columns.