English

Find the maximum and minimum commission from the SALE table.

Advertisements
Advertisements

Question

Find the maximum and minimum commission from the SALE table.

Code Writing
Advertisements

Solution

SELECT MAX(Commission) AS Maximum_Commission,
       MIN(Commission) AS Minimum_Commission
FROM SALE;
  • MAX(Commission): Finds the highest commission value in the table.
  • MIN(Commission): Finds the lowest commission value in the table.
shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Querying and SQL Functions - Intext Questions [Page 14]

APPEARS IN

NCERT Informatics Practices [English] Class 12
Chapter 1 Querying and SQL Functions
Intext Questions | Q b) | Page 14
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×