Browse Getting Started

Getting Started

Create or Review Your First SQL Query

Follow the workflow that matches whether you want to generate a new query or work with SQL you already have.

Write SQL with AI

Generate a new query from reviewed database structure and a natural-language question.

1

Add and confirm the schema

Extract, upload, or build the relevant tables and columns, then review their data types, keys, and database-defined relationships.

2

Investigate missing relationships

Open Relationships Overview. If expected tables remain disconnected, use Investigate Relationships to review and confirm evidence-based suggestions before generating SQL.

3

Describe the result

State what each result row should represent, including the required measures, groupings, filters, date range, and output fields.

4

Select exact schema fields

Use Find schema fields while writing prompts when a business term could map to more than one table or column.

5

Review and test

Inspect the generated SQL and dummy-data preview, then test the query in your own database environment before use.

Review Existing SQL

Start from a query you already have and ask SQL Mocker to explain, check, or revise it.

1

Add the existing query

Paste the SQL into Review Existing SQL or upload a supported SQL or text file.

2

Choose what you need

Select a predefined task or ask the assistant to explain, review, optimise, troubleshoot, or update the query.

3

Provide relevant context

Describe the intended result and any requirements the assistant should preserve, such as filters, calculations, output fields, or database dialect.

4

Review the response

Check the explanation, findings, and complete revised SQL against the original query intent.

5

Test before use

Run the reviewed query in your own database environment and verify its results before relying on it.

Learn more

Guide: Generate SQL from database schema metadata

Choose a SQL Mocker workflow

Select the workflow that matches your starting point.

Related documentation