Get startedGet started for free

Iterating on queries

You're exploring customer data and used the AI assistant to help find out where your customers are from.

Without the schema information, it assumed that the table included some city information. You need to iterate on this with the AI assistant to correct the query to look at country instead.

This exercise is part of the course

Introduction to SQL with AI

View Course

Exercise instructions

  • Fix the query by replacing the incorrect field name with the correct one.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

SELECT city
FROM customers;
Edit and Run Code