ChatGPT-4o generates correct SQL queries based on a DB diagram.
Prompt:
Act as an experienced data analyst. Based on the attached database diagram, prepare a set of SQL queries that will:
- Present all persons with the first name “Pawel,” their last name, ID, and phone numbers.
- Count the number of business entities from each state. Present only states with at least 5 entities.
One question: How?
——
P.S. Enjoy this? You might like Top 9 High-ROI ChatGPT Use Cases for PMs: productcompass.pm/p/cha…
May 27, 2024
at
4:05 PM
Log in or sign up
Join the most interesting and insightful discussions.