cursor = database.cursor("select * from customer, rentals, videos where rentals.returnDate IS NULL AND rentals.customerId = customer.ID AND rentals.videoId = videos.id");
Rentals by Customer
click on title to return
Title
Customer
Due Date
while(cursor.next()) {
write(cursor.title);
write(cursor.name);
write(cursor.duedate.toLocaleString());
} cursor.close();
Home