2023-04-27 18:03:36 +02:00
|
|
|
|
2023-05-12 17:26:18 +02:00
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Musterstraße', 12, 10115, 'Berlin', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Hauptstraße', 23, 60311, 'Frankfurt am Main', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Am Königsplatz', 45, 80333, 'München', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Bahnhofstraße', 67, 40210, 'Düsseldorf', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Goethestraße', 89, 04109, 'Leipzig', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Schlossplatz', 101, 76131, 'Karlsruhe', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Hindenburgstraße', 123, 68161, 'Mannheim', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Am Markt', 234, 50667, 'Köln', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Ludwigstraße', 345, 80539, 'München', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Friedrichstraße', 456, 10117, 'Berlin', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Königsallee', 567, 40212, 'Düsseldorf', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Augustusplatz', 678, 04109, 'Leipzig', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Neumarkt', 789, 01067, 'Dresden', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Rathausplatz', 890, 20095, 'Hamburg', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Maximilianstraße', 901, 80333, 'München', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Wilhelmstraße', 111, 65185, 'Wiesbaden', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Rheinstraße', 222, 64283, 'Darmstadt', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Karlstraße', 333, 80333, 'München', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Bahnhofsplatz', 444, 90402, 'Nürnberg', 'Germany');
|
|
|
|
INSERT INTO ADDRESS VALUES (address_seq.nextval, 'Hohenzollernring', 555, 50672, 'Köln', 'Germany');
|
|
|
|
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Max', 'Müller', 28, 1);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Anna', 'Schmidt', 35, 2);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Felix', 'Wagner', 41, 3);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Marie', 'Hoffmann', 23, 4);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Julian', 'Schäfer', 47, 5);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Sophie', 'Koch', 29, 6);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'David', 'Bauer', 32, 7);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Laura', 'Richter', 26, 8);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Simon', 'Klein', 39, 9);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Hannah', 'Fuchs', 41, 10);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Nico', 'Kramer', 24, 11);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Lena', 'Huber', 31, 12);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Sebastian', 'Kaiser', 28, 13);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Maja', 'Becker', 35, 14);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Daniel', 'Lange', 30, 15);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Tobias', 'Schmid', 36, 16);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Jana', 'Weber', 27, 17);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Andreas', 'Meyer', 44, 18);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Lara', 'Hahn', 38, 19);
|
|
|
|
INSERT INTO Person VALUES (person_seq.nextval, 'Jan', 'Schreiber', 29, 20);
|
|
|
|
|
|
|
|
INSERT INTO CLERK VALUES (1,100,35000);
|
|
|
|
INSERT INTO CLERK VALUES (2,101,50000);
|
|
|
|
INSERT INTO CLERK VALUES (3,102,40000);
|
|
|
|
INSERT INTO CLERK VALUES (4,103,35000);
|
|
|
|
INSERT INTO CLERK VALUES (5,104,35000);
|
|
|
|
|
|
|
|
INSERT INTO CLIENT VALUES (6,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (7,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (8,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (9,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (10,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (11,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (12,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (13,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (14,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (15,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (16,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (17,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (18,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (19,17980641);
|
|
|
|
INSERT INTO CLIENT VALUES (20,17980641);
|
|
|
|
|
2023-04-27 18:03:36 +02:00
|
|
|
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);
|
2023-05-12 17:09:20 +02:00
|
|
|
commit;
|
|
|
|
|
|
|
|
|
|
|
|
DECLARE
|
|
|
|
clerkid NUMBER;
|
|
|
|
BEGIN
|
|
|
|
clerkid := mostValuableClerk(2);
|
|
|
|
DBMS_OUTPUT.PUT_LINE(clerkid);
|
|
|
|
end;
|