w3resource
SQL exercises

SQL Exercises: Find number of customers have listed their names

SQL Aggregate Functions: Exercise-4 with Solution

Write a SQL statement to know how many customers have listed their names.

Sample table: customer


Sample Solution:

SELECT COUNT(*) 
FROM customer;

Output of the Query:

count
8

Explanation:

Syntax of find number of customers have listed their names

Pictorial presentation:

Find number of customers have listed their names

Query Visualization:

Duration:

Query visualization of Find number of customers have listed their names - Duration

Rows:

Query visualization of Find number of customers have listed their names - Rows

Cost:

Query visualization of Find number of customers have listed their names - Cost

 

Practice Online


Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: Write a SQL statement to find the number of salesmen currently listing for all of their customers.
Next: Write a SQL statement find the number of customers who gets at least a gradation for his/her performance.

What is the difficulty level of this exercise?



New Content: Composer: Dependency manager for PHP, R Programming