Win 10 LO 6.4.6.2 HSQL 2.51
Hi,
tblRentalObject rid (PK) rentalObject Varchar
tblBookings bid PK rid (FK) rentaldate Date
After a new RentalObject record is created, I want to run an insert statement to insert one year worth of records
into the bookings table starting with the current date increment by 1.
How would I set up the loop or is there a more efficient way ?
On db startup I also want to run another insert statement to add 1 day after the last one for every RentalObect present in bookings.
Guess its another loop but more complex as the last dates of rentalobjects may vary based on creationdate.
Grateful for any pointers, thanks