feat: getLastBokkings function
This commit is contained in:
parent
a94872c924
commit
e0e6491d94
1 changed files with 11 additions and 0 deletions
|
@ -24,4 +24,15 @@ BEGIN
|
|||
GROUP BY CLERKID;
|
||||
|
||||
return finalclerkid;
|
||||
END;
|
||||
|
||||
CREATE OR REPLACE PROCEDURE getLastBookings(months IN NUMBER)
|
||||
IS
|
||||
CURSOR bookingsCursor IS SELECT BOOKINGID FROM BOOKING WHERE ARRIVALDATE >= ADD_MONTHS(SYSDATE,-months);
|
||||
|
||||
BEGIN
|
||||
FOR booking IN bookingsCursor
|
||||
LOOP
|
||||
DBMS_OUTPUT.PUT_LINE(booking.BOOKINGID);
|
||||
END LOOP;
|
||||
END;
|
Loading…
Reference in a new issue