From a sentence to a query.
Give TesterEye the business logic and it writes the SQL in your database's own dialect, along with the assumptions it made.
Business logic
Combine each customer with their orders. Full name is first name and last name with a space. Only include orders after 1 January 2024, and convert totals from cents to dollars.
SELECT c.id AS customer_id,
c.first_name || ' ' || c.last_name AS full_name,
o.id AS order_id,
o.total_cents / 100.0 AS total
FROM legacy.customers c
JOIN legacy.orders o ON o.customer_id = c.id
WHERE o.created_at >= '2024-01-01';- Yours to editReview and change the query before it runs. Execution is read-only.
- Any dialectConvert a query for another database, such as SQL Server and T-SQL.
- Asks when unsureIf the rule is ambiguous, you get a question instead of a guess.