20 lines
No EOL
804 B
SQL
20 lines
No EOL
804 B
SQL
|
|
INSERT INTO ADRESS VALUES (12346901,'Maxhausenstrasse',18,29380,'Maxhausen','Deutschland');
|
|
INSERT INTO PERSON VALUES (1274689,'Max','Musterman',22,12346901);
|
|
INSERT INTO CLERK VALUES (1274689,12456,35000);
|
|
INSERT INTO CLIENT VALUES (1274689,17980641);
|
|
INSERT INTO ROOM VALUES (19724091,2,'LUXUS',10,1,7);
|
|
INSERT INTO CLEANINGPLAN VALUES (124890,TO_DATE('2023-05-03', 'YYYY-MM-DD'),90,19724091);
|
|
INSERT INTO CLEANINGCLERK VALUES (1274689,124890);
|
|
INSERT INTO BOOKING VALUES (124980,TO_DATE('2023-05-01', 'YYYY-MM-DD'),TO_DATE('2023-05-02', 'YYYY-MM-DD'),700,'No Pension',0,1274689);
|
|
INSERT INTO BOOKINGROOM VALUES (124980,19724091);
|
|
INSERT INTO BOOKINGGUEST VALUES (124980,1274689);
|
|
commit;
|
|
|
|
|
|
DECLARE
|
|
clerkid NUMBER;
|
|
BEGIN
|
|
clerkid := mostValuableClerk(2);
|
|
DBMS_OUTPUT.PUT_LINE(clerkid);
|
|
end; |