with a as (select first_name , last_name , email,
/*ROW_NUMBER() OVER(PARTITION BY rental.customer_id ORDER BY rental_date) as a1,*/inventory_id,rental_date from rental /*(select * from rental where rental.inventory_id = 30) */
join customer on rental.customer_id = customer.customer_id)
/*join address on customer.address_id = address.address_id*/
/*select first_name , last_name , email, address,/*a1,inventory_id,rental_date from a
/*order by a1 desc/* limit 1*/
select * from a