Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
/* select customer , min(first_order_date) as first_order_date from (select contact_first as customer , order_date as first_order_date , rank() over(partition by contact_first order by order_date) as ra from customer join sales using(cust_no) where ship_date is null) t group by customer */ select * from sales

Stuck with a problem? Got Error? Ask AI support!

Copy Clear