Counting records
You've explored the customers table before. Now your manager is asking about the size of the customer database for planning purposes. Instead of exploring individual records, you need to provide a summary count. Start by understanding the size of your data.
To get the right result, you'll need to guide the AI with a clear prompt.
This exercise is part of the course
Introduction to SQL with AI
Exercise instructions
- Ask the AI to count the records in the customers table.
- Label the result with the alias
total_count
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
SELECT *
FROM customers;