• Skip to main content

Annielytics.com

I make data sexy

  • About
  • Tools
  • Blog
  • Tips
  • Portfolio
  • Contact
  • Log In

Jul 12 2025

Prompt: Visualize a SQL Query

Prompt

“Draw a simple visual with boxes and arrows that shows what this SQL query is doing—like a mini flowchart.”

SELECT titles.pub_id, AVG(titles.price)  
FROM titles INNER JOIN publishers  
   ON titles.pub_id = publishers.pub_id  
WHERE publishers.state = 'CA'  
GROUP BY titles.pub_id  
HAVING AVG(price) > 10 

Model

I tested this prompt using ChatGPT 4o.

Result

Written by

Copyright © 2025