SQLore
FeaturesPricingDownloadAboutContact
Start freeStart for free
SQLore
HomeFeaturesSolutionsPricingDownloadCompareFAQAboutBlogContact

SQLore © 2026

TermsPrivacyRefunds
Download for macOSDownload for WindowsSign in
  1. Home
  2. Solutions
  3. For people who already write SQL
For people who already write SQL

An AI SQL Assistant That Shows Its Working

Generate the query, explain the one you inherited, and find out why the other one takes forty seconds — without leaving the schema you are working in.

Download SQLoreSee all features

What is an AI SQL assistant?

An AI SQL assistant is a tool that writes, explains and optimises SQL using a language model grounded in your database schema. SQLore does all three for PostgreSQL and MySQL: it generates queries from plain English, translates unfamiliar SQL back into English, and reads the execution plan to identify missing indexes and badly ordered joins.

Three jobs, not one

Writing SQL is the job people name, and it is the one they spend the least time on. The hours go to the other two: understanding a query someone left behind, and working out why a query that used to be fine no longer is.

  • Generate — ask in English, get SQL that references your real tables and keys.
  • Explain — paste a query and get back what it joins, what it filters, and which part is doing the work.
  • Optimise — it reads the plan and names the cause: a missing index, a join in the wrong order, a filter that cannot use one.

Why generated SQL is usually wrong, and what fixes it

A model asked for "revenue by region last quarter" with no schema will invent a `revenue` column and a `region` table, because that is what the question implies. Grounding is the entire game. SQLore retrieves the relevant slice of your schema — the tables, the foreign keys between them, and the distinct values in the columns you are likely filtering on — and puts that in front of the model before it writes anything. The query comes back referencing `orders.total_cents` and a join through `customers` because those are the names that were actually available.

It runs the query, which is how it catches itself

One-shot generation has no feedback. SQLore is agentic: it writes the SQL, executes it read-only, reads the result, and if the result is obviously wrong — zero rows where there should be thousands, a join that fanned out and multiplied the totals — it revises and runs again. You see the query that worked, not the three that did not.

Custom rules, so it speaks your schema

Every database has vocabulary that is not in the column names. If "active" means `status_id = 3` in your system, you tell it once and it holds. That is the difference between an assistant that is impressive in a demo and one that is correct on the fourth Tuesday of using it.

Frequently asked questions

Can it explain SQL that I did not write?

Yes. Paste the query and it returns a plain-English reading: what each join is for, what the filters exclude, and which subquery or window function is carrying the logic. It resolves the table and column names against your live schema, so the explanation uses what those columns actually contain rather than guessing from their names.

How does it optimise a slow query?

It reads the execution plan the database itself produces and interprets it. The output is a cause and a suggestion — a sequential scan on a column that should be indexed, a join order that materialises a large intermediate result, a function wrapped around a column that makes an existing index unusable.

Will it write the migration to add the index it suggests?

It will write the DDL for you to read, but it cannot run it. SQLore is read-only by construction: generated SQL is validated to a single SELECT before execution, so anything that changes your database is something you copy out and apply yourself.

More answers on the main FAQ, or ask us directly.

Related

The technique

Natural Language To SQL, Done Against A Real Schema

Read more

For analysis

An AI Database Query Tool For The Questions Between Dashboards

Read more

The category, explained

The AI Database Assistant That Runs On Your Machine

Read more

Every page in this section covers a different question about the same product. See all solutions.

SQLore platform

Stop Writing The
Same Three Joins

Start free, upgrade when you are asking enough questions for it to matter.

Start for freeContact sales
sqlore.com
Connectionretail_db

staging

analytics

Add connection

MENU

Chat

Reports

Schema

History

Settings

Rows scanned

15,600+18%

Questions

25,800+14%

Avg latency

41 ms−16%

By product

By month

By connection