Skip to content

Query suggestion

Note

This feature is available in Lite, Enterprise, Ultimate and Team editions only.

AI query completion helps you finish entire SQL statements based on what you’ve started typing. It works inside the SQL Editor and shows suggestions as ghost text.

Show the suggestion

To use the AI query suggestion:

  1. Activate the AI assistant.
  2. Enable AI query suggestion in the SQL Competition preferences.
  3. Start writing a query in the SQL Editor.
  4. (Optional) Add a comment above the query to guide the AI.

    -- Get the top 10 products by sales
    SELECT
    
  5. Right-click anywhere in the Script panel to open the context menu, then select Show AI Suggestion Text. Or use the shortcut:

    • Option+Cmd+Right Arrow (macOS).
    • Alt+Ctrl+Right Arrow (Windows).
  6. Press Right Arrow to insert the suggested text.