CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Introduction to SQL with AI

Afficher le cours

Instructions

  • Ask the AI to count the records in the customers table.
  • Label the result with the alias total_count.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

SELECT *
FROM customers;
Modifier et exécuter le code