engineering computer science MCQ #757

What is the result of the SQL query 'SELECT COUNT(DISTINCT country) FROM customers;'?

engineering computer science MCQ #757

  1. Question 1

    Q1. What is the result of the SQL query 'SELECT COUNT(DISTINCT country) FROM customers;'?

    • A) Total number of customers
    • B) Total number of countries
    • C) Total number of distinct countries
    • D) Total number of customers per country

    Answer: Total number of distinct countries

    Explanation: The SQL query uses the COUNT(DISTINCT) function to count the number of unique countries in the customers table.