# Eksempel – Forespørgselsfejlfinding

I dette eksempel beder vi SQL Assistant om at fejlfinding en forespørgsel, der ikke fungerer som ønsket.

<figure><img src="https://2357114426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3A6IaxQnezOTzxb1j8V7%2Fuploads%2Fgit-blob-db78f96e419d730936924ce0cb9958f32ad47387%2Fsql-assistant-3.png?alt=media" alt="sql assistant 3" width="563"><figcaption></figcaption></figure>

<figure><img src="https://2357114426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3A6IaxQnezOTzxb1j8V7%2Fuploads%2Fgit-blob-9fab0be620c26a168e9217159e2850442df0510f%2Fsql-assistant-4.png?alt=media" alt="sql assistant 4" width="563"><figcaption></figcaption></figure>

SQL Assistant identificerer, hvad der er galt, og giver den korrekte forespørgsel, der er nødvendig for at hente de ønskede kundemails.

<figure><img src="https://2357114426-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3A6IaxQnezOTzxb1j8V7%2Fuploads%2Fgit-blob-a6d0e1fa43e10024f93c6cb5c4f35032764048ca%2Fsql-assistant-5.png?alt=media" alt="sql assistant 5" width="563"><figcaption></figcaption></figure>
