SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
with a as(select inventory_id,return_date a1, LEAD(rental_date) over(order by rental_date) a2 from rental ) select count(between a2 and a1)) as avg_days_between_rentals from a

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear