diff --git a/modules/fbs-core/web/src/app/page-components/sql-playground/db-control-panel/db-control-templates/db-control-templates.component.ts b/modules/fbs-core/web/src/app/page-components/sql-playground/db-control-panel/db-control-templates/db-control-templates.component.ts index 18cccff41..696dcd657 100644 --- a/modules/fbs-core/web/src/app/page-components/sql-playground/db-control-panel/db-control-templates/db-control-templates.component.ts +++ b/modules/fbs-core/web/src/app/page-components/sql-playground/db-control-panel/db-control-templates/db-control-templates.component.ts @@ -51,14 +51,14 @@ export class DbControlTemplatesComponent implements OnInit { name: "Hotel, Daten (DDL)", category: this.categories[0], templateQuery: - "INSERT INTO hotel VALUES(1036, 'Ringhotel', 'Luenen', 'Kurt-Schumacher-Strasse', '1', '44534'); INSERT INTO hotel VALUES(34 ,'Haus Schmuelling','Bergkamen','Landwehrstrasse', '54', '59192'); INSERT INTO hotel VALUES(135, 'City Hotel', 'Dortmund', 'Auf dem Wall','62', '44147'); INSERT INTO hotel VALUES(843,'Maritim','Stralsund','Strandgasse','37','18435'); INSERT INTO hotel VALUES(428,'Riss','Chemnitz','An der Erzkuhle','23', '09008'); INSERT INTO hotel VALUES(522,'Bohne','Kakau b. Bitterfeld','Zur Plantage','14','06785'); INSERT INTO hotel VALUES(132,'Gruene Bogenschuetze','Geseke','An der Abtei','3','59590'); INSERT INTO hotel VALUES(625,'Hotel Adlon','Dortmund','Lilienthalstrasse','68a','44369'); INSERT INTO hotel VALUES(392,'Hotel Kempinski','Muenchen','Terminalstrasse', '20-22','85356'); INSERT INTO ausstattung VALUES(23,'Telefon', 5.67); INSERT INTO ausstattung VALUES(35,'Goldene Wascharmaturen', 45.16); INSERT INTO ausstattung VALUES(47,'Extragroße Badetuecher', 9.99); INSERT INTO ausstattung VALUES(59,'Bettwaesche', 10.32); INSERT INTO ausstattung VALUES(61,'Haekelkissenbezuege', 13.57); INSERT INTO ausstattung VALUES(73,'Kabelfernsehen', 15.66); INSERT INTO ausstattung VALUES(84,'Satellitenfernsehen', 16.55); INSERT INTO ausstattung VALUES(96,'Beamer', 23.79); INSERT INTO ausstattung VALUES(108,'Overheadprojektor', 17.43); INSERT INTO ausstattung VALUES(111,'Videorekorder', 16.89); INSERT INTO ausstattung VALUES(123,'DVD-Player', 18.52); INSERT INTO ausstattung VALUES(130,'HiFi-Multifunktionsanlage', 25.91); INSERT INTO ausstattung VALUES(142,'Stuhl', 4.31); INSERT INTO ausstattung VALUES(154,'Tisch', 5.76); INSERT INTO ausstattung VALUES(166,'Kopfkissen', 15.69); INSERT INTO ausstattung VALUES(178,'Gummibettlaken', 17.83); INSERT INTO ausstattung VALUES(62,'gehaekelte Toilettenrollendeckchen', 11.46); INSERT INTO zimmer VALUES(34, 3, 'No3', 1, 19.99); INSERT INTO zimmer VALUES(135, 312, 'Praesidentensuite', 6, 399.99); INSERT INTO zimmer VALUES(428, 222, 'Stollen Sued', 2, 24.99); INSERT INTO zimmer VALUES(843, 145, 'Seeblick', 3, 89.67); INSERT INTO zimmer VALUES(1036, 217, 'Waldblick', 2, 45.99); INSERT INTO zimmer VALUES(428, 111, 'Stollen Nord', 1, 23.99); INSERT INTO zimmer VALUES(843, 732, 'Krabbenkutter', 5, 485.00); INSERT INTO zimmer VALUES(135, 521, 'Westfalenzimmer', 4, 167.55); INSERT INTO zimmer VALUES(34, 4, 'No4', 2, 21.99); INSERT INTO zimmer VALUES(1036, 1214, 'Schwanenteich', 3, 76.99); INSERT INTO zimmer VALUES(522, 113,'Onkel Toms Huette', 2, 54.99); INSERT INTO zimmer VALUES(522, 124,'Singendes Zuckerrohr', 3, 65.35); INSERT INTO zimmer VALUES(132, 115,'Waldruh', 2, 55.34); INSERT INTO zimmer VALUES(132, 134,'Hochsitz', 4, 89.47); INSERT INTO zimmer VALUES(625, 257,'Metropolian', 2, 76.21); INSERT INTO zimmer VALUES(625, 412,'Blickpunkt', 3, 87.25); INSERT INTO zimmer VALUES(392, 233,'Waldfried', 1, 32.46); INSERT INTO zimmer VALUES(392, 513,'Flugplatz', 2, 43.62); INSERT INTO normal VALUES(1036, 217, 23); INSERT INTO normal VALUES(843, 145, 73); INSERT INTO normal VALUES(34, 3, 23); INSERT INTO normal VALUES(428, 222, 61); INSERT INTO normal VALUES(135, 312, 166); INSERT INTO normal VALUES(428, 111, 142); INSERT INTO normal VALUES(34, 4, 59); INSERT INTO normal VALUES(1036, 1214, 84); INSERT INTO normal VALUES(135, 521, 178); INSERT INTO normal VALUES(843, 732, 130); INSERT INTO normal VALUES(522, 113, 62); INSERT INTO normal VALUES(522, 124, 59); INSERT INTO normal VALUES(132, 115, 73); INSERT INTO normal VALUES(132, 134, 84); INSERT INTO normal VALUES(625, 257, 23); INSERT INTO normal VALUES(625, 412, 166); INSERT INTO normal VALUES(392, 233, 35); INSERT INTO normal VALUES(392, 513, 130); INSERT INTO normal VALUES(522, 113, 59); INSERT INTO gast VALUES(453, 'Muller', 'Jean-Paul', 'Havixbeck', '48329', 'Willi-Richter-Platz', '2b'); INSERT INTO gast VALUES(14753, 'Richter','Trude','Buxtehude','21614', 'Zwischen den Bruecken','6'); INSERT INTO gast VALUES(795, 'Stein','Flut','Herten','46599','Stan-Libuda-Strasse','1'); INSERT INTO gast VALUES(8531,'Mustermann','Martin','Musterstadt','10000','Poststrasse','13-15'); INSERT INTO gast VALUES(7184,'Postmann','Elfriede','Chemnitz','09008','Erich-Honecker-Platz','23'); INSERT INTO gast VALUES(3417,'Randzio','Katharina','Aue','08280','Goethestrasse','101a'); INSERT INTO gast VALUES(59375,'Engelke-Meise','Silke','Herne','44625','Jaegerstrasse','13'); INSERT INTO gast VALUES(58,'Ebbingmann','Adalbert','Fuessen','87629','Froschseenstrasse','33'); INSERT INTO gast VALUES(4711,'Matzke','Muximilian','Waldshut','79761','Kaiserstrasse','27'); INSERT INTO gast VALUES(8624,'Rupprecht','Knecht','Himmelstadt','97267','Kirchplatz','5'); INSERT INTO gast VALUES(2738,'Schmitz','Klaus','Dortmund','44147','Linienstrasse','7b'); INSERT INTO gast VALUES(2631,'Biene','Maja','Blumenberg','50765','Auf der Blume','24'); INSERT INTO gast VALUES(2632,'Groenemeyer','Herbert','Berlin','10435','Rheinsberger Strasse','48'); INSERT INTO gast VALUES(2635,'Baerbock','Annalena','Berlin','11011','Platz der Republik','1'); INSERT INTO reservierung VALUES(86542, '2002-09-09', 34, 453); INSERT INTO reservierung VALUES(145863, '2002-01-02', 135, 14753); INSERT INTO reservierung VALUES(46357, '2003-04-01', 843, 795); INSERT INTO reservierung VALUES(43358, '2003-03-23', 428, 8531); INSERT INTO reservierung VALUES(135, '1995-09-19', 1036, 7184); INSERT INTO reservierung VALUES(6834, '2004-08-13', 34, 3417); INSERT INTO reservierung VALUES(115, '2003-05-27', 428, 59375); INSERT INTO reservierung VALUES(8673, '2003-05-03', 135, 58); INSERT INTO reservierung VALUES(24, '1999-08-31', 843, 4711); INSERT INTO reservierung VALUES(9999, '2003-12-12', 1036, 8624); INSERT INTO reservierung VALUES(735, '2003-03-13', 132, 4711); INSERT INTO reservierung VALUES(567, '2002-02-24', 625, 2738); INSERT INTO reservierung VALUES(818, '2004-03-01', 392, 8624); INSERT INTO reservierung VALUES(361, '1998-12-21', 34, 59375); INSERT INTO reservierung VALUES(5294, '2001-10-10', 392, 3417); INSERT INTO reservierung VALUES(2732, '1996-04-13', 132, 7184); INSERT INTO reservierung VALUES(2432, '2001-07-16', 522, 453); INSERT INTO reservierung VALUES(1953, '2001-08-23', 135, 14753); INSERT INTO reservierung VALUES(356, '2004-01-01', 1036, 2631); INSERT INTO reservierung VALUES(5646, '2005-02-05', 522, 795); INSERT INTO reservierung VALUES(6748, '2005-03-22', 522, 795); INSERT INTO reservierung VALUES(2748, '2004-02-10', 132, 4711); INSERT INTO reservierung VALUES(2349, '2004-02-10', 132, 58); INSERT INTO reservierung VALUES(4241, '2005-02-10', 132, 58); INSERT INTO reservierung VALUES(6878, '2006-02-10', 132, 58); INSERT INTO rposition VALUES(86542, 1, '2002-10-10', '2003-10-10', 34, 3); INSERT INTO rposition VALUES(145863, 1, '2003-04-11', '2003-04-22', 135, 312); INSERT INTO rposition VALUES(43358, 1, '2003-05-05', '2003-05-06', 428, 222); INSERT INTO rposition VALUES(46357, 1, '2004-04-26', '2004-05-07', 843,145); INSERT INTO rposition VALUES(135, 1, '1997-09-18', '1997-09-22', 1036, 217); INSERT INTO rposition VALUES(115, 1, '2004-05-28', '2004-05-31', 428, 111); INSERT INTO rposition VALUES(24, 1, '2001-04-08', '2001-04-25', 843, 732); INSERT INTO rposition VALUES(24, 2, '2001-04-08', '2001-04-25', 843, 145); INSERT INTO rposition VALUES(24, 3, '2001-07-31', '2001-09-01', 34, 3); INSERT INTO rposition VALUES(24, 4, '2001-07-31', '2001-09-01', 34, 4); INSERT INTO rposition VALUES(8673, 1, '2003-07-01', '2003-07-15', 135, 521); INSERT INTO rposition VALUES(6834, 1, '2004-08-15', '2004-08-27', 34, 4); INSERT INTO rposition VALUES(9999, 1, '2004-04-30', '2004-06-30', 1036, 1214); INSERT INTO rposition VALUES(9999, 2, '2004-07-01', '2004-07-31', 135, 312); INSERT INTO rposition VALUES(9999, 3, '2004-08-31', '2004-10-01', 843, 145); INSERT INTO rposition VALUES(735, 1, '2003-03-20', '2004-04-20', 392, 233); INSERT INTO rposition VALUES(567, 1, '2003-04-23', '2003-05-07', 522,113); INSERT INTO rposition VALUES(818, 1, '2004-03-24', '2004-03-31', 132, 134); INSERT INTO rposition VALUES(361, 1, '1999-12-23', '2000-01-06', 625, 257); INSERT INTO rposition VALUES(5294, 1, '2002-04-02', '2002-04-16', 428, 111); INSERT INTO rposition VALUES(2732, 1, '1996-08-17', '1996-09-04', 522, 124); INSERT INTO rposition VALUES(2432, 1, '2002-06-15', '2002-07-16', 132, 115); INSERT INTO rposition VALUES(1953, 1, '2004-08-07', '2004-08-15', 392, 513); INSERT INTO rposition VALUES(818, 2, '2004-04-01', '2004-04-12', 843, 732); INSERT INTO rposition VALUES(356, 1, '2004-01-02', '2004-04-22', 522, 113); INSERT INTO rposition VALUES(5646, 1, '2005-03-06', '2005-03-22', 843, 145); INSERT INTO rposition VALUES(6748, 1, '2006-01-01', '2006-01-08', 843, 145); INSERT INTO rposition VALUES(2748, 1, '2004-04-01', '2004-04-08', 392, 233); INSERT INTO rposition VALUES(2349, 1, '2004-07-16', '2004-07-18', 392, 233); INSERT INTO rposition VALUES(4241, 1, '2005-07-16', '2005-07-18', 392, 233); INSERT INTO rposition VALUES(6878, 1, '2006-07-16', '2006-07-18', 392, 233); INSERT INTO zusatz VALUES(735, 1, 84, '2003-03-21', '2004-03-30'); INSERT INTO zusatz VALUES(567, 1, 61, '2003-04-23', '2003-05-07'); INSERT INTO zusatz VALUES(818, 1, 111, '2004-03-24', '2004-03-28'); INSERT INTO zusatz VALUES(361, 1, 142, '1999-12-26', '2000-01-06'); INSERT INTO zusatz VALUES(43358, 1, 154, '2003-05-05', '2003-05-06'); INSERT INTO zusatz VALUES(2732, 1, 47, '1996-08-17', '1996-08-18'); INSERT INTO zusatz VALUES(2432, 1, 123, '2002-06-30', '2002-07-01'); INSERT INTO zusatz VALUES(1953, 1, 178, '2004-08-07', '2004-08-15'); INSERT INTO zusatz VALUES(818, 2, 96, '2004-04-04', '2004-04-11'); INSERT INTO zusatz VALUES(818, 2, 108, '2004-04-03', '2004-04-10'); INSERT INTO zusatz VALUES(818, 2, 111, '2004-04-03', '2004-04-11'); INSERT INTO zusatz VALUES(735, 1, 130, '2003-03-22', '2004-03-29'); INSERT INTO zusatz VALUES(145863, 1, 35, '2003-04-14', '2003-04-19'); INSERT INTO zusatz VALUES(46357, 1, 61, '2004-04-26', '2004-05-07'); INSERT INTO zusatz VALUES(46357, 1, 84, '2004-04-30', '2004-05-03'); INSERT INTO zusatz VALUES(46357, 1, 111, '2004-05-01', '2004-05-03'); INSERT INTO zusatz VALUES(46357, 1, 130, '2004-04-30', '2004-05-02'); INSERT INTO zusatz VALUES(135, 1, 96, '1997-09-19', '1997-09-20'); INSERT INTO zusatz VALUES(135, 1, 108, '1997-09-19', '1997-09-19'); INSERT INTO zusatz VALUES(135, 1, 111, '1997-09-20', '1997-09-20'); INSERT INTO zusatz VALUES(24, 1, 142, '2001-04-16', '2001-04-19'); INSERT INTO zusatz VALUES(24, 3, 178, '2001-08-01', '2001-08-27'); INSERT INTO zusatz VALUES(24, 4, 47, '2001-08-01', '2001-08-27'); INSERT INTO zusatz VALUES(8673, 1, 47, '2003-07-03', '2003-07-05'); INSERT INTO zusatz VALUES(9999, 1, 84, '2004-05-05', '2004-05-05'); INSERT INTO zusatz VALUES(9999, 1, 130, '2004-06-06', '2004-06-07'); INSERT INTO zusatz VALUES(9999, 2, 130, '2004-07-01', '2004-07-31'); INSERT INTO zusatz VALUES(9999, 3, 130, '2004-09-01', '2004-09-30'); INSERT INTO zusatz VALUES(9999, 3, 61, '2004-09-01', '2004-09-30'); INSERT INTO zusatz Values(356, 1, 35, '2004-01-02', '2004-04-22'); INSERT INTO zusatz Values(356, 1, 47, '2004-01-02', '2004-04-22'); Update reservierung set datum=datum+730; Update rposition set von=von+1095, bis=bis+1095; Update zusatz set von=von+1095, bis=bis+1095; ALTER TABLE normal ADD anzahl INTEGER DEFAULT 1; ALTER TABLE zusatz ADD anzahl INTEGER DEFAULT 1; INSERT INTO ausstattung VALUES(46,'Bademantel','5.50'); INSERT INTO ausstattung VALUES(45,'Hausschuhe','2.35'); INSERT INTO ausstattung VALUES(50,'Kinderbett','0.0'); INSERT INTO ausstattung VALUES(51,'Hochstuhl','0.0'); INSERT INTO ausstattung VALUES(52,'Safe','2.45'); INSERT INTO ausstattung VALUES(53,'Heizdecke','16.85'); INSERT INTO ausstattung VALUES(54,'Duftkerzen','12.15'); INSERT INTO ausstattung VALUES(24,'W-LAN Zugang','5.95'); INSERT INTO ausstattung VALUES(25,'DSL-Anschluss','7.69'); INSERT INTO hotel VALUES(736,'Gasthof Sybille','Bad Lippspringe','An der Jordanquelle','1','33188'); INSERT INTO hotel VALUES(758,'Kastens Hotel','Duesseldorf','Lorettostr','5','40219'); INSERT INTO hotel VALUES(761,'Am Glockenturm','Arnsberg','Soesterstr','1','59821'); INSERT INTO zimmer VALUES(34,5,'No5',2,'21.99'); INSERT INTO zimmer VALUES(132,122,'Strecke',2,'60.45'); INSERT INTO zimmer VALUES(135,412,'Rosa Raum',2,'90.35'); INSERT INTO zimmer VALUES(392,414,'Schlafwohl',2,'59.95'); INSERT INTO zimmer VALUES(428,333,'Stollen West',2,'24.99'); INSERT INTO zimmer VALUES(522,135,'Missippi',2,'52.89'); INSERT INTO zimmer VALUES(625,333,'Schoene Aussicht',2,'74.25'); INSERT INTO zimmer VALUES(843,363,'Morgenroete',2,'195.25'); INSERT INTO zimmer VALUES(1036,512,'Angeraue',2,'50.12'); INSERT INTO zimmer VALUES(736,11,'Arminiusquelle',2,'45.40'); INSERT INTO zimmer VALUES(736,12,'Jordanquelle',2,'45.40'); INSERT INTO zimmer VALUES(736,14,'Lippequelle',2,50.50); INSERT INTO zimmer VALUES(758,25,'Rheinturm',2,78.99); INSERT INTO zimmer VALUES(758,26,'Stadttor',2,78.99); INSERT INTO zimmer VALUES(758,27,'Kniebruecke',2,74.99); INSERT INTO zimmer VALUES(761,31,'Schlossberg',2,25.85); INSERT INTO zimmer VALUES(761,32,'Gambrinus',2,19.99); INSERT INTO zimmer VALUES(761,33,'Muffrika',4,48.55); INSERT INTO normal VALUES(34,5,59,2); INSERT INTO normal VALUES(132,122,59,2); INSERT INTO normal VALUES(135,412,59,2); INSERT INTO normal VALUES(392,414,59,2); INSERT INTO normal VALUES(428,333,59,2); INSERT INTO normal VALUES(522,135,59,2); INSERT INTO normal VALUES(625,333,59,2); INSERT INTO normal VALUES(843,363,59,2); INSERT INTO normal VALUES(1036,512,59,2); INSERT INTO normal VALUES(736,11,59,2); INSERT INTO normal VALUES(736,12,59,2); INSERT INTO normal VALUES(736,14,59,2); INSERT INTO normal VALUES(758,25,59,2); INSERT INTO normal VALUES(758,26,59,2); INSERT INTO normal VALUES(758,27,59,2); INSERT INTO normal VALUES(761,31,59,2); INSERT INTO normal VALUES(761,32,59,2); INSERT INTO normal VALUES(761,33,59,4); INSERT INTO normal VALUES(34,5,62,1); INSERT INTO normal VALUES(132,122,62,1); INSERT INTO normal VALUES(135,412,62,1); INSERT INTO normal VALUES(392,414,62,1); INSERT INTO normal VALUES(428,333,62,1); INSERT INTO normal VALUES(522,135,62,1); INSERT INTO normal VALUES(625,333,62,1); INSERT INTO normal VALUES(843,363,62,1); INSERT INTO normal VALUES(1036,512,62,1); INSERT INTO normal VALUES(736,11,53,1); INSERT INTO normal VALUES(736,12,53,1); INSERT INTO normal VALUES(736,14,53,1); INSERT INTO normal VALUES(758,25,142,1); INSERT INTO normal VALUES(758,26,142,1); INSERT INTO normal VALUES(758,27,142,1); INSERT INTO normal VALUES(761,31,178,2); INSERT INTO normal VALUES(761,32,178,2); INSERT INTO normal VALUES(761,33,178,4); INSERT INTO gast VALUES(25,'Binz','Gunnar','Duesseldorf','40549','Heerdter Sandberg','3'); INSERT INTO gast VALUES(26,'Haller','Karl-Heinz','Dortmund','44143','Breierspfad','134'); INSERT INTO gast VALUES(27,'Kloepping','Harald','Bamberg','96058','Eckeystr','15'); INSERT INTO gast VALUES(28,'Schlanstein','Christina','Dillenburg','35683','Carl-Schurz-Str','9'); INSERT INTO gast VALUES(29,'Gauss','Kerstin','Neuss','41453','Badstr','3'); INSERT INTO gast VALUES(30,'Hansen','Irmgard','Bamberg','96023','Neuer Weg','15'); INSERT INTO gast VALUES(31,'Rosenberg','Brigitte','Duisburg','41025','Rahmerstr','168'); INSERT INTO gast VALUES(32,'Lampe','Rosa','Vechta','49377','Schwichtelerstr','14'); INSERT INTO gast VALUES(33,'Mondo','Dolores','Hagen','58093','Dortmunder Str','15a'); INSERT INTO reservierung VALUES(221,'2009-05-15',736,25); INSERT INTO reservierung VALUES(222,'2009-01-11',758,26); INSERT INTO reservierung VALUES(223,'2008-11-05',761,27); INSERT INTO reservierung VALUES(224,'2008-10-03',761,28); INSERT INTO reservierung VALUES(225,'2007-07-18',135,27); INSERT INTO reservierung VALUES(226,'2007-11-06',522,29); INSERT INTO reservierung VALUES(227,'2007-12-13',428,30); INSERT INTO reservierung VALUES(228,'2008-02-15',843,31); INSERT INTO reservierung VALUES(229,'2008-03-25',135,32); INSERT INTO reservierung VALUES(230,'2008-04-13',758,33); INSERT INTO reservierung VALUES(231,'2008-06-07',758,33); INSERT INTO reservierung VALUES(232,'2008-08-13',522,25); INSERT INTO reservierung VALUES(233,'2009-04-13',736,29); INSERT INTO reservierung VALUES(234,'2009-02-26',522,27); INSERT INTO reservierung VALUES(235,'2008-08-13',761,26); INSERT INTO reservierung VALUES(236,'2008-09-30',761,25); INSERT INTO reservierung VALUES(237,'2009-03-11',843,33); INSERT INTO reservierung VALUES(238,'2008-04-13',843,58); INSERT INTO reservierung VALUES(239,'2008-11-11',758,58); INSERT INTO reservierung VALUES(240,'2009-02-03',135,453); INSERT INTO reservierung VALUES(241,'2007-12-28',522,795); INSERT INTO rposition VALUES(221,1,'2009-05-25','2009-06-05',736,11); INSERT INTO rposition VALUES(222,1,'2009-04-15','2009-04-18',736,12); INSERT INTO rposition VALUES(223,1,'2009-01-11','2009-01-18',736,14); INSERT INTO rposition VALUES(223,2,'2009-02-11','2009-02-18',736,11); INSERT INTO rposition VALUES(223,3,'2009-03-11','2009-03-18',736,14); INSERT INTO rposition VALUES(224,1,'2008-11-11','2008-11-15',758,25); INSERT INTO rposition VALUES(225,1,'2007-07-31','2007-08-15',758,26); INSERT INTO rposition VALUES(226,1,'2007-11-11','2007-11-13',758,27); INSERT INTO rposition VALUES(227,1,'2008-01-12','2008-01-15',761,31); INSERT INTO rposition VALUES(228,1,'2008-03-02','2008-03-08',761,32); INSERT INTO rposition VALUES(228,2,'2008-04-02','2008-04-08',761,32); INSERT INTO rposition VALUES(228,3,'2008-05-02','2008-05-08',761,32); INSERT INTO rposition VALUES(229,1,'2008-03-28','2008-04-07',761,33); INSERT INTO rposition VALUES(230,1,'2008-05-02','2008-05-13',132,122); INSERT INTO rposition VALUES(231,1,'2008-07-01','2008-07-05',34,3); INSERT INTO rposition VALUES(231,2,'2008-07-01','2008-07-05',34,4); INSERT INTO rposition VALUES(231,3,'2008-07-01','2008-07-05',34,5); INSERT INTO rposition VALUES(232,1,'2008-09-19','2008-09-21',135,412); INSERT INTO rposition VALUES(233,1,'2009-05-01','2009-05-05',392,414); INSERT INTO rposition VALUES(234,1,'2009-03-01','2009-03-05',428,333); INSERT INTO rposition VALUES(235,1,'2008-09-01','2008-09-05',522,135); INSERT INTO rposition VALUES(236,1,'2008-12-01','2008-12-10',625,333); INSERT INTO rposition VALUES(237,1,'2009-03-18','2009-03-25',843,363); INSERT INTO rposition VALUES(238,1,'2008-07-01','2008-07-05',1036,512); INSERT INTO rposition VALUES(239,1,'2008-11-11','2008-11-15',758,26); INSERT INTO rposition VALUES(240,1,'2009-02-11','2009-02-15',135,412); INSERT INTO rposition VALUES(241,1,'2008-01-02','2008-01-09',522,135); INSERT INTO zusatz VALUES(221,1,50,'2009-05-25','2009-06-05',2); INSERT INTO zusatz VALUES(221,1,51,'2009-05-25','2009-06-05',2); INSERT INTO zusatz VALUES(222,1,53,'2009-04-15','2009-04-18',2); INSERT INTO zusatz VALUES(224,1,53,'2008-11-11','2008-11-15',1); INSERT INTO zusatz VALUES(225,1,52,'2007-07-31','2007-08-15',1); INSERT INTO zusatz VALUES(226,1,52,'2007-11-11','2007-11-13',1); INSERT INTO zusatz VALUES(227,1,52,'2008-01-12','2008-01-15',2); INSERT INTO zusatz VALUES(229,1,45,'2008-03-29','2008-04-07',2); INSERT INTO zusatz VALUES(230,1,45,'2008-05-03','2008-05-13',1); INSERT INTO zusatz VALUES(230,1,46,'2008-05-03','2008-05-13',1); INSERT INTO zusatz VALUES(232,1,54,'2008-09-19','2008-09-21',1); INSERT INTO zusatz VALUES(233,1,24,'2009-05-01','2009-05-05',1); INSERT INTO zusatz VALUES(234,1,25,'2009-03-03','2009-03-05',1); INSERT INTO zusatz VALUES(235,1,142,'2008-09-03','2008-09-04',4); INSERT INTO zusatz VALUES(235,1,154,'2008-09-03','2008-09-04',1); INSERT INTO zusatz VALUES(239,1,84,'2008-11-11','2008-11-15',1); INSERT INTO zusatz VALUES(240,1,111,'2009-02-11','2009-02-15',1);", + "INSERT INTO hotel VALUES(1036, 'Ringhotel', 'Luenen', 'Kurt-Schumacher-Strasse', '1', '44534'); INSERT INTO hotel VALUES(34 ,'Haus Schmuelling','Bergkamen','Landwehrstrasse', '54', '59192'); INSERT INTO hotel VALUES(135, 'City Hotel', 'Dortmund', 'Auf dem Wall','62', '44147'); INSERT INTO hotel VALUES(843,'Maritim','Stralsund','Strandgasse','37','18435'); INSERT INTO hotel VALUES(428,'Riss','Chemnitz','An der Erzkuhle','23', '09008'); INSERT INTO hotel VALUES(522,'Bohne','Kakau b. Bitterfeld','Zur Plantage','14','06785'); INSERT INTO hotel VALUES(132,'Gruene Bogenschuetze','Geseke','An der Abtei','3','59590'); INSERT INTO hotel VALUES(625,'Hotel Adlon','Dortmund','Lilienthalstrasse','68a','44369'); INSERT INTO hotel VALUES(392,'Hotel Kempinski','Muenchen','Terminalstrasse', '20-22','85356'); INSERT INTO ausstattung VALUES(23,'Telefon', 5.67); INSERT INTO ausstattung VALUES(35,'Goldene Wascharmaturen', 45.16); INSERT INTO ausstattung VALUES(47,'Extragroße Badetuecher', 9.99); INSERT INTO ausstattung VALUES(59,'Bettwaesche', 10.32); INSERT INTO ausstattung VALUES(61,'Haekelkissenbezuege', 13.57); INSERT INTO ausstattung VALUES(73,'Kabelfernsehen', 15.66); INSERT INTO ausstattung VALUES(84,'Satellitenfernsehen', 16.55); INSERT INTO ausstattung VALUES(96,'Beamer', 23.79); INSERT INTO ausstattung VALUES(108,'Overheadprojektor', 17.43); INSERT INTO ausstattung VALUES(111,'Videorekorder', 16.89); INSERT INTO ausstattung VALUES(123,'DVD-Player', 18.52); INSERT INTO ausstattung VALUES(130,'HiFi-Multifunktionsanlage', 25.91); INSERT INTO ausstattung VALUES(142,'Stuhl', 4.31); INSERT INTO ausstattung VALUES(154,'Tisch', 5.76); INSERT INTO ausstattung VALUES(166,'Kopfkissen', 15.69); INSERT INTO ausstattung VALUES(178,'Gummibettlaken', 17.83); INSERT INTO ausstattung VALUES(62,'gehaekelte Toilettenrollendeckchen', 11.46); INSERT INTO zimmer VALUES(34, 3, 'No3', 1, 19.99); INSERT INTO zimmer VALUES(135, 312, 'Praesidentensuite', 6, 399.99); INSERT INTO zimmer VALUES(428, 222, 'Stollen Sued', 2, 24.99); INSERT INTO zimmer VALUES(843, 145, 'Seeblick', 3, 89.67); INSERT INTO zimmer VALUES(1036, 217, 'Waldblick', 2, 45.99); INSERT INTO zimmer VALUES(428, 111, 'Stollen Nord', 1, 23.99); INSERT INTO zimmer VALUES(843, 732, 'Krabbenkutter', 5, 485.00); INSERT INTO zimmer VALUES(135, 521, 'Westfalenzimmer', 4, 167.55); INSERT INTO zimmer VALUES(34, 4, 'No4', 2, 21.99); INSERT INTO zimmer VALUES(1036, 1214, 'Schwanenteich', 3, 76.99); INSERT INTO zimmer VALUES(522, 113,'Onkel Toms Huette', 2, 54.99); INSERT INTO zimmer VALUES(522, 124,'Singendes Zuckerrohr', 3, 65.35); INSERT INTO zimmer VALUES(132, 115,'Waldruh', 2, 55.34); INSERT INTO zimmer VALUES(132, 134,'Hochsitz', 4, 89.47); INSERT INTO zimmer VALUES(625, 257,'Metropolian', 2, 76.21); INSERT INTO zimmer VALUES(625, 412,'Blickpunkt', 3, 87.25); INSERT INTO zimmer VALUES(392, 233,'Waldfried', 1, 32.46); INSERT INTO zimmer VALUES(392, 513,'Flugplatz', 2, 43.62); INSERT INTO normal VALUES(1036, 217, 23); INSERT INTO normal VALUES(843, 145, 73); INSERT INTO normal VALUES(34, 3, 23); INSERT INTO normal VALUES(428, 222, 61); INSERT INTO normal VALUES(135, 312, 166); INSERT INTO normal VALUES(428, 111, 142); INSERT INTO normal VALUES(34, 4, 59); INSERT INTO normal VALUES(1036, 1214, 84); INSERT INTO normal VALUES(135, 521, 178); INSERT INTO normal VALUES(843, 732, 130); INSERT INTO normal VALUES(522, 113, 62); INSERT INTO normal VALUES(522, 124, 59); INSERT INTO normal VALUES(132, 115, 73); INSERT INTO normal VALUES(132, 134, 84); INSERT INTO normal VALUES(625, 257, 23); INSERT INTO normal VALUES(625, 412, 166); INSERT INTO normal VALUES(392, 233, 35); INSERT INTO normal VALUES(392, 513, 130); INSERT INTO normal VALUES(522, 113, 59); INSERT INTO gast VALUES(453, 'Muller', 'Jean-Paul', 'Havixbeck', '48329', 'Willi-Richter-Platz', '2b'); INSERT INTO gast VALUES(14753, 'Richter','Trude','Buxtehude','21614', 'Zwischen den Bruecken','6'); INSERT INTO gast VALUES(795, 'Stein','Flut','Herten','46599','Stan-Libuda-Strasse','1'); INSERT INTO gast VALUES(8531,'Mustermann','Martin','Musterstadt','10000','Poststrasse','13-15'); INSERT INTO gast VALUES(7184,'Postmann','Elfriede','Chemnitz','09008','Erich-Honecker-Platz','23'); INSERT INTO gast VALUES(3417,'Randzio','Katharina','Aue','08280','Goethestrasse','101a'); INSERT INTO gast VALUES(59375,'Engelke-Meise','Silke','Herne','44625','Jaegerstrasse','13'); INSERT INTO gast VALUES(58,'Ebbingmann','Adalbert','Fuessen','87629','Froschseenstrasse','33'); INSERT INTO gast VALUES(4711,'Matzke','Muximilian','Waldshut','79761','Kaiserstrasse','27'); INSERT INTO gast VALUES(8624,'Rupprecht','Knecht','Himmelstadt','97267','Kirchplatz','5'); INSERT INTO gast VALUES(2738,'Schmitz','Klaus','Dortmund','44147','Linienstrasse','7b'); INSERT INTO gast VALUES(2631,'Biene','Maja','Blumenberg','50765','Auf der Blume','24'); INSERT INTO gast VALUES(2632,'Groenemeyer','Herbert','Berlin','10435','Rheinsberger Strasse','48'); INSERT INTO gast VALUES(2635,'Baerbock','Annalena','Berlin','11011','Platz der Republik','1'); INSERT INTO Gast (gnr,name,vorname,ort,plz,strasse,hausnr) VALUES (44,'Schulz','Maja','Gießen','35390','Wiesenstr.','10'); INSERT INTO reservierung VALUES(86542, '2002-09-09', 34, 453); INSERT INTO reservierung VALUES(145863, '2002-01-02', 135, 14753); INSERT INTO reservierung VALUES(46357, '2003-04-01', 843, 795); INSERT INTO reservierung VALUES(43358, '2003-03-23', 428, 8531); INSERT INTO reservierung VALUES(135, '1995-09-19', 1036, 7184); INSERT INTO reservierung VALUES(6834, '2004-08-13', 34, 3417); INSERT INTO reservierung VALUES(115, '2003-05-27', 428, 59375); INSERT INTO reservierung VALUES(8673, '2003-05-03', 135, 58); INSERT INTO reservierung VALUES(24, '1999-08-31', 843, 4711); INSERT INTO reservierung VALUES(9999, '2003-12-12', 1036, 8624); INSERT INTO reservierung VALUES(735, '2003-03-13', 132, 4711); INSERT INTO reservierung VALUES(567, '2002-02-24', 625, 2738); INSERT INTO reservierung VALUES(818, '2004-03-01', 392, 8624); INSERT INTO reservierung VALUES(361, '1998-12-21', 34, 59375); INSERT INTO reservierung VALUES(5294, '2001-10-10', 392, 3417); INSERT INTO reservierung VALUES(2732, '1996-04-13', 132, 7184); INSERT INTO reservierung VALUES(2432, '2001-07-16', 522, 453); INSERT INTO reservierung VALUES(1953, '2001-08-23', 135, 14753); INSERT INTO reservierung VALUES(356, '2004-01-01', 1036, 2631); INSERT INTO reservierung VALUES(5646, '2005-02-05', 522, 795); INSERT INTO reservierung VALUES(6748, '2005-03-22', 522, 795); INSERT INTO reservierung VALUES(2748, '2004-02-10', 132, 4711); INSERT INTO reservierung VALUES(2349, '2004-02-10', 132, 58); INSERT INTO reservierung VALUES(4241, '2005-02-10', 132, 58); INSERT INTO reservierung VALUES(6878, '2006-02-10', 132, 58); INSERT INTO rposition VALUES(86542, 1, '2002-10-10', '2003-10-10', 34, 3); INSERT INTO rposition VALUES(145863, 1, '2003-04-11', '2003-04-22', 135, 312); INSERT INTO rposition VALUES(43358, 1, '2003-05-05', '2003-05-06', 428, 222); INSERT INTO rposition VALUES(46357, 1, '2004-04-26', '2004-05-07', 843,145); INSERT INTO rposition VALUES(135, 1, '1997-09-18', '1997-09-22', 1036, 217); INSERT INTO rposition VALUES(115, 1, '2004-05-28', '2004-05-31', 428, 111); INSERT INTO rposition VALUES(24, 1, '2001-04-08', '2001-04-25', 843, 732); INSERT INTO rposition VALUES(24, 2, '2001-04-08', '2001-04-25', 843, 145); INSERT INTO rposition VALUES(24, 3, '2001-07-31', '2001-09-01', 34, 3); INSERT INTO rposition VALUES(24, 4, '2001-07-31', '2001-09-01', 34, 4); INSERT INTO rposition VALUES(8673, 1, '2003-07-01', '2003-07-15', 135, 521); INSERT INTO rposition VALUES(6834, 1, '2004-08-15', '2004-08-27', 34, 4); INSERT INTO rposition VALUES(9999, 1, '2004-04-30', '2004-06-30', 1036, 1214); INSERT INTO rposition VALUES(9999, 2, '2004-07-01', '2004-07-31', 135, 312); INSERT INTO rposition VALUES(9999, 3, '2004-08-31', '2004-10-01', 843, 145); INSERT INTO rposition VALUES(735, 1, '2003-03-20', '2004-04-20', 392, 233); INSERT INTO rposition VALUES(567, 1, '2003-04-23', '2003-05-07', 522,113); INSERT INTO rposition VALUES(818, 1, '2004-03-24', '2004-03-31', 132, 134); INSERT INTO rposition VALUES(361, 1, '1999-12-23', '2000-01-06', 625, 257); INSERT INTO rposition VALUES(5294, 1, '2002-04-02', '2002-04-16', 428, 111); INSERT INTO rposition VALUES(2732, 1, '1996-08-17', '1996-09-04', 522, 124); INSERT INTO rposition VALUES(2432, 1, '2002-06-15', '2002-07-16', 132, 115); INSERT INTO rposition VALUES(1953, 1, '2004-08-07', '2004-08-15', 392, 513); INSERT INTO rposition VALUES(818, 2, '2004-04-01', '2004-04-12', 843, 732); INSERT INTO rposition VALUES(356, 1, '2004-01-02', '2004-04-22', 522, 113); INSERT INTO rposition VALUES(5646, 1, '2005-03-06', '2005-03-22', 843, 145); INSERT INTO rposition VALUES(6748, 1, '2006-01-01', '2006-01-08', 843, 145); INSERT INTO rposition VALUES(2748, 1, '2004-04-01', '2004-04-08', 392, 233); INSERT INTO rposition VALUES(2349, 1, '2004-07-16', '2004-07-18', 392, 233); INSERT INTO rposition VALUES(4241, 1, '2005-07-16', '2005-07-18', 392, 233); INSERT INTO rposition VALUES(6878, 1, '2006-07-16', '2006-07-18', 392, 233); INSERT INTO zusatz VALUES(735, 1, 84, '2003-03-21', '2004-03-30'); INSERT INTO zusatz VALUES(567, 1, 61, '2003-04-23', '2003-05-07'); INSERT INTO zusatz VALUES(818, 1, 111, '2004-03-24', '2004-03-28'); INSERT INTO zusatz VALUES(361, 1, 142, '1999-12-26', '2000-01-06'); INSERT INTO zusatz VALUES(43358, 1, 154, '2003-05-05', '2003-05-06'); INSERT INTO zusatz VALUES(2732, 1, 47, '1996-08-17', '1996-08-18'); INSERT INTO zusatz VALUES(2432, 1, 123, '2002-06-30', '2002-07-01'); INSERT INTO zusatz VALUES(1953, 1, 178, '2004-08-07', '2004-08-15'); INSERT INTO zusatz VALUES(818, 2, 96, '2004-04-04', '2004-04-11'); INSERT INTO zusatz VALUES(818, 2, 108, '2004-04-03', '2004-04-10'); INSERT INTO zusatz VALUES(818, 2, 111, '2004-04-03', '2004-04-11'); INSERT INTO zusatz VALUES(735, 1, 130, '2003-03-22', '2004-03-29'); INSERT INTO zusatz VALUES(145863, 1, 35, '2003-04-14', '2003-04-19'); INSERT INTO zusatz VALUES(46357, 1, 61, '2004-04-26', '2004-05-07'); INSERT INTO zusatz VALUES(46357, 1, 84, '2004-04-30', '2004-05-03'); INSERT INTO zusatz VALUES(46357, 1, 111, '2004-05-01', '2004-05-03'); INSERT INTO zusatz VALUES(46357, 1, 130, '2004-04-30', '2004-05-02'); INSERT INTO zusatz VALUES(135, 1, 96, '1997-09-19', '1997-09-20'); INSERT INTO zusatz VALUES(135, 1, 108, '1997-09-19', '1997-09-19'); INSERT INTO zusatz VALUES(135, 1, 111, '1997-09-20', '1997-09-20'); INSERT INTO zusatz VALUES(24, 1, 142, '2001-04-16', '2001-04-19'); INSERT INTO zusatz VALUES(24, 3, 178, '2001-08-01', '2001-08-27'); INSERT INTO zusatz VALUES(24, 4, 47, '2001-08-01', '2001-08-27'); INSERT INTO zusatz VALUES(8673, 1, 47, '2003-07-03', '2003-07-05'); INSERT INTO zusatz VALUES(9999, 1, 84, '2004-05-05', '2004-05-05'); INSERT INTO zusatz VALUES(9999, 1, 130, '2004-06-06', '2004-06-07'); INSERT INTO zusatz VALUES(9999, 2, 130, '2004-07-01', '2004-07-31'); INSERT INTO zusatz VALUES(9999, 3, 130, '2004-09-01', '2004-09-30'); INSERT INTO zusatz VALUES(9999, 3, 61, '2004-09-01', '2004-09-30'); INSERT INTO zusatz Values(356, 1, 35, '2004-01-02', '2004-04-22'); INSERT INTO zusatz Values(356, 1, 47, '2004-01-02', '2004-04-22'); Update reservierung set datum=datum+730; Update rposition set von=von+1095, bis=bis+1095; Update zusatz set von=von+1095, bis=bis+1095; ALTER TABLE normal ADD anzahl INTEGER DEFAULT 1; ALTER TABLE zusatz ADD anzahl INTEGER DEFAULT 1; INSERT INTO ausstattung VALUES(46,'Bademantel','5.50'); INSERT INTO ausstattung VALUES(45,'Hausschuhe','2.35'); INSERT INTO ausstattung VALUES(50,'Kinderbett','0.0'); INSERT INTO ausstattung VALUES(51,'Hochstuhl','0.0'); INSERT INTO ausstattung VALUES(52,'Safe','2.45'); INSERT INTO ausstattung VALUES(53,'Heizdecke','16.85'); INSERT INTO ausstattung VALUES(54,'Duftkerzen','12.15'); INSERT INTO ausstattung VALUES(24,'W-LAN Zugang','5.95'); INSERT INTO ausstattung VALUES(25,'DSL-Anschluss','7.69'); INSERT INTO hotel VALUES(736,'Gasthof Sybille','Bad Lippspringe','An der Jordanquelle','1','33188'); INSERT INTO hotel VALUES(758,'Kastens Hotel','Duesseldorf','Lorettostr','5','40219'); INSERT INTO hotel VALUES(761,'Am Glockenturm','Arnsberg','Soesterstr','1','59821'); INSERT INTO zimmer VALUES(34,5,'No5',2,'21.99'); INSERT INTO zimmer VALUES(132,122,'Strecke',2,'60.45'); INSERT INTO zimmer VALUES(135,412,'Rosa Raum',2,'90.35'); INSERT INTO zimmer VALUES(392,414,'Schlafwohl',2,'59.95'); INSERT INTO zimmer VALUES(428,333,'Stollen West',2,'24.99'); INSERT INTO zimmer VALUES(522,135,'Missippi',2,'52.89'); INSERT INTO zimmer VALUES(625,333,'Schoene Aussicht',2,'74.25'); INSERT INTO zimmer VALUES(843,363,'Morgenroete',2,'195.25'); INSERT INTO zimmer VALUES(1036,512,'Angeraue',2,'50.12'); INSERT INTO zimmer VALUES(736,11,'Arminiusquelle',2,'45.40'); INSERT INTO zimmer VALUES(736,12,'Jordanquelle',2,'45.40'); INSERT INTO zimmer VALUES(736,14,'Lippequelle',2,50.50); INSERT INTO zimmer VALUES(758,25,'Rheinturm',2,78.99); INSERT INTO zimmer VALUES(758,26,'Stadttor',2,78.99); INSERT INTO zimmer VALUES(758,27,'Kniebruecke',2,74.99); INSERT INTO zimmer VALUES(761,31,'Schlossberg',2,25.85); INSERT INTO zimmer VALUES(761,32,'Gambrinus',2,19.99); INSERT INTO zimmer VALUES(761,33,'Muffrika',4,48.55); INSERT INTO normal VALUES(34,5,59,2); INSERT INTO normal VALUES(132,122,59,2); INSERT INTO normal VALUES(135,412,59,2); INSERT INTO normal VALUES(392,414,59,2); INSERT INTO normal VALUES(428,333,59,2); INSERT INTO normal VALUES(522,135,59,2); INSERT INTO normal VALUES(625,333,59,2); INSERT INTO normal VALUES(843,363,59,2); INSERT INTO normal VALUES(1036,512,59,2); INSERT INTO normal VALUES(736,11,59,2); INSERT INTO normal VALUES(736,12,59,2); INSERT INTO normal VALUES(736,14,59,2); INSERT INTO normal VALUES(758,25,59,2); INSERT INTO normal VALUES(758,26,59,2); INSERT INTO normal VALUES(758,27,59,2); INSERT INTO normal VALUES(761,31,59,2); INSERT INTO normal VALUES(761,32,59,2); INSERT INTO normal VALUES(761,33,59,4); INSERT INTO normal VALUES(34,5,62,1); INSERT INTO normal VALUES(132,122,62,1); INSERT INTO normal VALUES(135,412,62,1); INSERT INTO normal VALUES(392,414,62,1); INSERT INTO normal VALUES(428,333,62,1); INSERT INTO normal VALUES(522,135,62,1); INSERT INTO normal VALUES(625,333,62,1); INSERT INTO normal VALUES(843,363,62,1); INSERT INTO normal VALUES(1036,512,62,1); INSERT INTO normal VALUES(736,11,53,1); INSERT INTO normal VALUES(736,12,53,1); INSERT INTO normal VALUES(736,14,53,1); INSERT INTO normal VALUES(758,25,142,1); INSERT INTO normal VALUES(758,26,142,1); INSERT INTO normal VALUES(758,27,142,1); INSERT INTO normal VALUES(761,31,178,2); INSERT INTO normal VALUES(761,32,178,2); INSERT INTO normal VALUES(761,33,178,4); INSERT INTO gast VALUES(25,'Binz','Gunnar','Duesseldorf','40549','Heerdter Sandberg','3'); INSERT INTO gast VALUES(26,'Haller','Karl-Heinz','Dortmund','44143','Breierspfad','134'); INSERT INTO gast VALUES(27,'Kloepping','Harald','Bamberg','96058','Eckeystr','15'); INSERT INTO gast VALUES(28,'Schlanstein','Christina','Dillenburg','35683','Carl-Schurz-Str','9'); INSERT INTO gast VALUES(29,'Gauss','Kerstin','Neuss','41453','Badstr','3'); INSERT INTO gast VALUES(30,'Hansen','Irmgard','Bamberg','96023','Neuer Weg','15'); INSERT INTO gast VALUES(31,'Rosenberg','Brigitte','Duisburg','41025','Rahmerstr','168'); INSERT INTO gast VALUES(32,'Lampe','Rosa','Vechta','49377','Schwichtelerstr','14'); INSERT INTO gast VALUES(33,'Mondo','Dolores','Hagen','58093','Dortmunder Str','15a'); INSERT INTO reservierung VALUES(221,'2009-05-15',736,25); INSERT INTO reservierung VALUES(222,'2009-01-11',758,26); INSERT INTO reservierung VALUES(223,'2008-11-05',761,27); INSERT INTO reservierung VALUES(224,'2008-10-03',761,28); INSERT INTO reservierung VALUES(225,'2007-07-18',135,27); INSERT INTO reservierung VALUES(226,'2007-11-06',522,29); INSERT INTO reservierung VALUES(227,'2007-12-13',428,30); INSERT INTO reservierung VALUES(228,'2008-02-15',843,31); INSERT INTO reservierung VALUES(229,'2008-03-25',135,32); INSERT INTO reservierung VALUES(230,'2008-04-13',758,33); INSERT INTO reservierung VALUES(231,'2008-06-07',758,33); INSERT INTO reservierung VALUES(232,'2008-08-13',522,25); INSERT INTO reservierung VALUES(233,'2009-04-13',736,29); INSERT INTO reservierung VALUES(234,'2009-02-26',522,27); INSERT INTO reservierung VALUES(235,'2008-08-13',761,26); INSERT INTO reservierung VALUES(236,'2008-09-30',761,25); INSERT INTO reservierung VALUES(237,'2009-03-11',843,33); INSERT INTO reservierung VALUES(238,'2008-04-13',843,58); INSERT INTO reservierung VALUES(239,'2008-11-11',758,58); INSERT INTO reservierung VALUES(240,'2009-02-03',135,453); INSERT INTO reservierung VALUES(241,'2007-12-28',522,795); INSERT INTO rposition VALUES(221,1,'2009-05-25','2009-06-05',736,11); INSERT INTO rposition VALUES(222,1,'2009-04-15','2009-04-18',736,12); INSERT INTO rposition VALUES(223,1,'2009-01-11','2009-01-18',736,14); INSERT INTO rposition VALUES(223,2,'2009-02-11','2009-02-18',736,11); INSERT INTO rposition VALUES(223,3,'2009-03-11','2009-03-18',736,14); INSERT INTO rposition VALUES(224,1,'2008-11-11','2008-11-15',758,25); INSERT INTO rposition VALUES(225,1,'2007-07-31','2007-08-15',758,26); INSERT INTO rposition VALUES(226,1,'2007-11-11','2007-11-13',758,27); INSERT INTO rposition VALUES(227,1,'2008-01-12','2008-01-15',761,31); INSERT INTO rposition VALUES(228,1,'2008-03-02','2008-03-08',761,32); INSERT INTO rposition VALUES(228,2,'2008-04-02','2008-04-08',761,32); INSERT INTO rposition VALUES(228,3,'2008-05-02','2008-05-08',761,32); INSERT INTO rposition VALUES(229,1,'2008-03-28','2008-04-07',761,33); INSERT INTO rposition VALUES(230,1,'2008-05-02','2008-05-13',132,122); INSERT INTO rposition VALUES(231,1,'2008-07-01','2008-07-05',34,3); INSERT INTO rposition VALUES(231,2,'2008-07-01','2008-07-05',34,4); INSERT INTO rposition VALUES(231,3,'2008-07-01','2008-07-05',34,5); INSERT INTO rposition VALUES(232,1,'2008-09-19','2008-09-21',135,412); INSERT INTO rposition VALUES(233,1,'2009-05-01','2009-05-05',392,414); INSERT INTO rposition VALUES(234,1,'2009-03-01','2009-03-05',428,333); INSERT INTO rposition VALUES(235,1,'2008-09-01','2008-09-05',522,135); INSERT INTO rposition VALUES(236,1,'2008-12-01','2008-12-10',625,333); INSERT INTO rposition VALUES(237,1,'2009-03-18','2009-03-25',843,363); INSERT INTO rposition VALUES(238,1,'2008-07-01','2008-07-05',1036,512); INSERT INTO rposition VALUES(239,1,'2008-11-11','2008-11-15',758,26); INSERT INTO rposition VALUES(240,1,'2009-02-11','2009-02-15',135,412); INSERT INTO rposition VALUES(241,1,'2008-01-02','2008-01-09',522,135); INSERT INTO zusatz VALUES(221,1,50,'2009-05-25','2009-06-05',2); INSERT INTO zusatz VALUES(221,1,51,'2009-05-25','2009-06-05',2); INSERT INTO zusatz VALUES(222,1,53,'2009-04-15','2009-04-18',2); INSERT INTO zusatz VALUES(224,1,53,'2008-11-11','2008-11-15',1); INSERT INTO zusatz VALUES(225,1,52,'2007-07-31','2007-08-15',1); INSERT INTO zusatz VALUES(226,1,52,'2007-11-11','2007-11-13',1); INSERT INTO zusatz VALUES(227,1,52,'2008-01-12','2008-01-15',2); INSERT INTO zusatz VALUES(229,1,45,'2008-03-29','2008-04-07',2); INSERT INTO zusatz VALUES(230,1,45,'2008-05-03','2008-05-13',1); INSERT INTO zusatz VALUES(230,1,46,'2008-05-03','2008-05-13',1); INSERT INTO zusatz VALUES(232,1,54,'2008-09-19','2008-09-21',1); INSERT INTO zusatz VALUES(233,1,24,'2009-05-01','2009-05-05',1); INSERT INTO zusatz VALUES(234,1,25,'2009-03-03','2009-03-05',1); INSERT INTO zusatz VALUES(235,1,142,'2008-09-03','2008-09-04',4); INSERT INTO zusatz VALUES(235,1,154,'2008-09-03','2008-09-04',1); INSERT INTO zusatz VALUES(239,1,84,'2008-11-11','2008-11-15',1); INSERT INTO zusatz VALUES(240,1,111,'2009-02-11','2009-02-15',1);", }, { id: 3, name: "Hotel, Schema + Daten", category: this.categories[0], templateQuery: - "CREATE TABLE hotel ( HoNr INTEGER NOT NULL, HName VARCHAR(40), Ort VARCHAR(40), Straße VARCHAR(40), HausNr VARCHAR(5), PLZ CHAR(5), CONSTRAINT pk_hotel PRIMARY KEY(HoNr)); CREATE TABLE zimmer ( HoNr INTEGER NOT NULL, ZNr INTEGER NOT NULL, ZName VARCHAR(40), Kapazitaet INTEGER, Preis DECIMAL(8,2), CONSTRAINT pk_zimmer PRIMARY KEY(HoNr, ZNr), CONSTRAINT fk_zimmer FOREIGN KEY(HoNr) REFERENCES hotel(HoNr)); CREATE TABLE ausstattung ( ANr INTEGER NOT NULL, Bezeichnung VARCHAR(40), Zusatzkosten DECIMAL(8,2), CONSTRAINT pk_ausstattung PRIMARY KEY(ANr)); CREATE TABLE normal ( HoNr INTEGER NOT NULL, ZNr INTEGER NOT NULL, ANr INTEGER NOT NULL, CONSTRAINT pk_normal PRIMARY KEY(HoNr, ZNr, ANr), CONSTRAINT fk_normal_1 FOREIGN KEY(ANr) REFERENCES ausstattung(ANr), CONSTRAINT fk_normal_2 FOREIGN KEY(HoNr, ZNr) REFERENCES zimmer(HoNr, ZNr)); CREATE TABLE gast ( GNr INTEGER NOT NULL, Name VARCHAR(30), Vorname VARCHAR(40), Ort VARCHAR(50), PLZ CHAR(5), Strasse VARCHAR(50), HausNr VARCHAR(5), CONSTRAINT pk_gast PRIMARY KEY(GNr)); CREATE TABLE reservierung ( RNr INTEGER NOT NULL, Datum DATE, HoNr INTEGER, GNr INTEGER, CONSTRAINT pk_reservierung PRIMARY KEY(RNr), CONSTRAINT fk_reservierung_1 FOREIGN KEY(HoNr) REFERENCES hotel(HoNr), CONSTRAINT fk_reservierung_2 FOREIGN KEY(GNr) REFERENCES gast(GNr)); CREATE TABLE rposition ( RNr INTEGER NOT NULL, RPos INTEGER NOT NULL, von DATE, bis DATE, HoNr INTEGER, ZNr INTEGER, CONSTRAINT pk_position PRIMARY KEY(RNr, RPos), CONSTRAINT fk_position_1 FOREIGN KEY(RNr) REFERENCES reservierung(RNr), CONSTRAINT fk_position_2 FOREIGN KEY(HoNr, ZNr) REFERENCES zimmer(HoNr, ZNr), CONSTRAINT check_date CHECK (von <= bis)); CREATE TABLE zusatz ( RNr INTEGER NOT NULL, RPos INTEGER NOT NULL, ANr INTEGER NOT NULL, von DATE, bis DATE, CONSTRAINT pk_zusatz PRIMARY KEY(RNr, RPos, ANr), CONSTRAINT fk_zusatz_1 FOREIGN KEY(RNr, RPos) REFERENCES rposition(RNr, RPos), CONSTRAINT fk_zusatz_2 FOREIGN KEY(ANr) REFERENCES ausstattung(ANr), CONSTRAINT check_date CHECK (von <= bis)); INSERT INTO hotel VALUES(1036, 'Ringhotel', 'Luenen', 'Kurt-Schumacher-Strasse', '1', '44534'); INSERT INTO hotel VALUES(34 ,'Haus Schmuelling','Bergkamen','Landwehrstrasse', '54', '59192'); INSERT INTO hotel VALUES(135, 'City Hotel', 'Dortmund', 'Auf dem Wall','62', '44147'); INSERT INTO hotel VALUES(843,'Maritim','Stralsund','Strandgasse','37','18435'); INSERT INTO hotel VALUES(428,'Riss','Chemnitz','An der Erzkuhle','23', '09008'); INSERT INTO hotel VALUES(522,'Bohne','Kakau b. Bitterfeld','Zur Plantage','14','06785'); INSERT INTO hotel VALUES(132,'Gruene Bogenschuetze','Geseke','An der Abtei','3','59590'); INSERT INTO hotel VALUES(625,'Hotel Adlon','Dortmund','Lilienthalstrasse','68a','44369'); INSERT INTO hotel VALUES(392,'Hotel Kempinski','Muenchen','Terminalstrasse', '20-22','85356'); INSERT INTO ausstattung VALUES(23,'Telefon', 5.67); INSERT INTO ausstattung VALUES(35,'Goldene Wascharmaturen', 45.16); INSERT INTO ausstattung VALUES(47,'Extragroße Badetuecher', 9.99); INSERT INTO ausstattung VALUES(59,'Bettwaesche', 10.32); INSERT INTO ausstattung VALUES(61,'Haekelkissenbezuege', 13.57); INSERT INTO ausstattung VALUES(73,'Kabelfernsehen', 15.66); INSERT INTO ausstattung VALUES(84,'Satellitenfernsehen', 16.55); INSERT INTO ausstattung VALUES(96,'Beamer', 23.79); INSERT INTO ausstattung VALUES(108,'Overheadprojektor', 17.43); INSERT INTO ausstattung VALUES(111,'Videorekorder', 16.89); INSERT INTO ausstattung VALUES(123,'DVD-Player', 18.52); INSERT INTO ausstattung VALUES(130,'HiFi-Multifunktionsanlage', 25.91); INSERT INTO ausstattung VALUES(142,'Stuhl', 4.31); INSERT INTO ausstattung VALUES(154,'Tisch', 5.76); INSERT INTO ausstattung VALUES(166,'Kopfkissen', 15.69); INSERT INTO ausstattung VALUES(178,'Gummibettlaken', 17.83); INSERT INTO ausstattung VALUES(62,'gehaekelte Toilettenrollendeckchen', 11.46); INSERT INTO zimmer VALUES(34, 3, 'No3', 1, 19.99); INSERT INTO zimmer VALUES(135, 312, 'Praesidentensuite', 6, 399.99); INSERT INTO zimmer VALUES(428, 222, 'Stollen Sued', 2, 24.99); INSERT INTO zimmer VALUES(843, 145, 'Seeblick', 3, 89.67); INSERT INTO zimmer VALUES(1036, 217, 'Waldblick', 2, 45.99); INSERT INTO zimmer VALUES(428, 111, 'Stollen Nord', 1, 23.99); INSERT INTO zimmer VALUES(843, 732, 'Krabbenkutter', 5, 485.00); INSERT INTO zimmer VALUES(135, 521, 'Westfalenzimmer', 4, 167.55); INSERT INTO zimmer VALUES(34, 4, 'No4', 2, 21.99); INSERT INTO zimmer VALUES(1036, 1214, 'Schwanenteich', 3, 76.99); INSERT INTO zimmer VALUES(522, 113,'Onkel Toms Huette', 2, 54.99); INSERT INTO zimmer VALUES(522, 124,'Singendes Zuckerrohr', 3, 65.35); INSERT INTO zimmer VALUES(132, 115,'Waldruh', 2, 55.34); INSERT INTO zimmer VALUES(132, 134,'Hochsitz', 4, 89.47); INSERT INTO zimmer VALUES(625, 257,'Metropolian', 2, 76.21); INSERT INTO zimmer VALUES(625, 412,'Blickpunkt', 3, 87.25); INSERT INTO zimmer VALUES(392, 233,'Waldfried', 1, 32.46); INSERT INTO zimmer VALUES(392, 513,'Flugplatz', 2, 43.62); INSERT INTO normal VALUES(1036, 217, 23); INSERT INTO normal VALUES(843, 145, 73); INSERT INTO normal VALUES(34, 3, 23); INSERT INTO normal VALUES(428, 222, 61); INSERT INTO normal VALUES(135, 312, 166); INSERT INTO normal VALUES(428, 111, 142); INSERT INTO normal VALUES(34, 4, 59); INSERT INTO normal VALUES(1036, 1214, 84); INSERT INTO normal VALUES(135, 521, 178); INSERT INTO normal VALUES(843, 732, 130); INSERT INTO normal VALUES(522, 113, 62); INSERT INTO normal VALUES(522, 124, 59); INSERT INTO normal VALUES(132, 115, 73); INSERT INTO normal VALUES(132, 134, 84); INSERT INTO normal VALUES(625, 257, 23); INSERT INTO normal VALUES(625, 412, 166); INSERT INTO normal VALUES(392, 233, 35); INSERT INTO normal VALUES(392, 513, 130); INSERT INTO normal VALUES(522, 113, 59); INSERT INTO gast VALUES(453, 'Muller', 'Jean-Paul', 'Havixbeck', '48329', 'Willi-Richter-Platz', '2b'); INSERT INTO gast VALUES(14753, 'Richter','Trude','Buxtehude','21614', 'Zwischen den Bruecken','6'); INSERT INTO gast VALUES(795, 'Stein','Flut','Herten','46599','Stan-Libuda-Strasse','1'); INSERT INTO gast VALUES(8531,'Mustermann','Martin','Musterstadt','10000','Poststrasse','13-15'); INSERT INTO gast VALUES(7184,'Postmann','Elfriede','Chemnitz','09008','Erich-Honecker-Platz','23'); INSERT INTO gast VALUES(3417,'Randzio','Katharina','Aue','08280','Goethestrasse','101a'); INSERT INTO gast VALUES(59375,'Engelke-Meise','Silke','Herne','44625','Jaegerstrasse','13'); INSERT INTO gast VALUES(58,'Ebbingmann','Adalbert','Fuessen','87629','Froschseenstrasse','33'); INSERT INTO gast VALUES(4711,'Matzke','Muximilian','Waldshut','79761','Kaiserstrasse','27'); INSERT INTO gast VALUES(8624,'Rupprecht','Knecht','Himmelstadt','97267','Kirchplatz','5'); INSERT INTO gast VALUES(2738,'Schmitz','Klaus','Dortmund','44147','Linienstrasse','7b'); INSERT INTO gast VALUES(2631,'Biene','Maja','Blumenberg','50765','Auf der Blume','24'); INSERT INTO gast VALUES(2632,'Groenemeyer','Herbert','Berlin','10435','Rheinsberger Strasse','48'); INSERT INTO gast VALUES(2635,'Baerbock','Annalena','Berlin','11011','Platz der Republik','1'); INSERT INTO reservierung VALUES(86542, '2002-09-09', 34, 453); INSERT INTO reservierung VALUES(145863, '2002-01-02', 135, 14753); INSERT INTO reservierung VALUES(46357, '2003-04-01', 843, 795); INSERT INTO reservierung VALUES(43358, '2003-03-23', 428, 8531); INSERT INTO reservierung VALUES(135, '1995-09-19', 1036, 7184); INSERT INTO reservierung VALUES(6834, '2004-08-13', 34, 3417); INSERT INTO reservierung VALUES(115, '2003-05-27', 428, 59375); INSERT INTO reservierung VALUES(8673, '2003-05-03', 135, 58); INSERT INTO reservierung VALUES(24, '1999-08-31', 843, 4711); INSERT INTO reservierung VALUES(9999, '2003-12-12', 1036, 8624); INSERT INTO reservierung VALUES(735, '2003-03-13', 132, 4711); INSERT INTO reservierung VALUES(567, '2002-02-24', 625, 2738); INSERT INTO reservierung VALUES(818, '2004-03-01', 392, 8624); INSERT INTO reservierung VALUES(361, '1998-12-21', 34, 59375); INSERT INTO reservierung VALUES(5294, '2001-10-10', 392, 3417); INSERT INTO reservierung VALUES(2732, '1996-04-13', 132, 7184); INSERT INTO reservierung VALUES(2432, '2001-07-16', 522, 453); INSERT INTO reservierung VALUES(1953, '2001-08-23', 135, 14753); INSERT INTO reservierung VALUES(356, '2004-01-01', 1036, 2631); INSERT INTO reservierung VALUES(5646, '2005-02-05', 522, 795); INSERT INTO reservierung VALUES(6748, '2005-03-22', 522, 795); INSERT INTO reservierung VALUES(2748, '2004-02-10', 132, 4711); INSERT INTO reservierung VALUES(2349, '2004-02-10', 132, 58); INSERT INTO reservierung VALUES(4241, '2005-02-10', 132, 58); INSERT INTO reservierung VALUES(6878, '2006-02-10', 132, 58); INSERT INTO rposition VALUES(86542, 1, '2002-10-10', '2003-10-10', 34, 3); INSERT INTO rposition VALUES(145863, 1, '2003-04-11', '2003-04-22', 135, 312); INSERT INTO rposition VALUES(43358, 1, '2003-05-05', '2003-05-06', 428, 222); INSERT INTO rposition VALUES(46357, 1, '2004-04-26', '2004-05-07', 843,145); INSERT INTO rposition VALUES(135, 1, '1997-09-18', '1997-09-22', 1036, 217); INSERT INTO rposition VALUES(115, 1, '2004-05-28', '2004-05-31', 428, 111); INSERT INTO rposition VALUES(24, 1, '2001-04-08', '2001-04-25', 843, 732); INSERT INTO rposition VALUES(24, 2, '2001-04-08', '2001-04-25', 843, 145); INSERT INTO rposition VALUES(24, 3, '2001-07-31', '2001-09-01', 34, 3); INSERT INTO rposition VALUES(24, 4, '2001-07-31', '2001-09-01', 34, 4); INSERT INTO rposition VALUES(8673, 1, '2003-07-01', '2003-07-15', 135, 521); INSERT INTO rposition VALUES(6834, 1, '2004-08-15', '2004-08-27', 34, 4); INSERT INTO rposition VALUES(9999, 1, '2004-04-30', '2004-06-30', 1036, 1214); INSERT INTO rposition VALUES(9999, 2, '2004-07-01', '2004-07-31', 135, 312); INSERT INTO rposition VALUES(9999, 3, '2004-08-31', '2004-10-01', 843, 145); INSERT INTO rposition VALUES(735, 1, '2003-03-20', '2004-04-20', 392, 233); INSERT INTO rposition VALUES(567, 1, '2003-04-23', '2003-05-07', 522,113); INSERT INTO rposition VALUES(818, 1, '2004-03-24', '2004-03-31', 132, 134); INSERT INTO rposition VALUES(361, 1, '1999-12-23', '2000-01-06', 625, 257); INSERT INTO rposition VALUES(5294, 1, '2002-04-02', '2002-04-16', 428, 111); INSERT INTO rposition VALUES(2732, 1, '1996-08-17', '1996-09-04', 522, 124); INSERT INTO rposition VALUES(2432, 1, '2002-06-15', '2002-07-16', 132, 115); INSERT INTO rposition VALUES(1953, 1, '2004-08-07', '2004-08-15', 392, 513); INSERT INTO rposition VALUES(818, 2, '2004-04-01', '2004-04-12', 843, 732); INSERT INTO rposition VALUES(356, 1, '2004-01-02', '2004-04-22', 522, 113); INSERT INTO rposition VALUES(5646, 1, '2005-03-06', '2005-03-22', 843, 145); INSERT INTO rposition VALUES(6748, 1, '2006-01-01', '2006-01-08', 843, 145); INSERT INTO rposition VALUES(2748, 1, '2004-04-01', '2004-04-08', 392, 233); INSERT INTO rposition VALUES(2349, 1, '2004-07-16', '2004-07-18', 392, 233); INSERT INTO rposition VALUES(4241, 1, '2005-07-16', '2005-07-18', 392, 233); INSERT INTO rposition VALUES(6878, 1, '2006-07-16', '2006-07-18', 392, 233); INSERT INTO zusatz VALUES(735, 1, 84, '2003-03-21', '2004-03-30'); INSERT INTO zusatz VALUES(567, 1, 61, '2003-04-23', '2003-05-07'); INSERT INTO zusatz VALUES(818, 1, 111, '2004-03-24', '2004-03-28'); INSERT INTO zusatz VALUES(361, 1, 142, '1999-12-26', '2000-01-06'); INSERT INTO zusatz VALUES(43358, 1, 154, '2003-05-05', '2003-05-06'); INSERT INTO zusatz VALUES(2732, 1, 47, '1996-08-17', '1996-08-18'); INSERT INTO zusatz VALUES(2432, 1, 123, '2002-06-30', '2002-07-01'); INSERT INTO zusatz VALUES(1953, 1, 178, '2004-08-07', '2004-08-15'); INSERT INTO zusatz VALUES(818, 2, 96, '2004-04-04', '2004-04-11'); INSERT INTO zusatz VALUES(818, 2, 108, '2004-04-03', '2004-04-10'); INSERT INTO zusatz VALUES(818, 2, 111, '2004-04-03', '2004-04-11'); INSERT INTO zusatz VALUES(735, 1, 130, '2003-03-22', '2004-03-29'); INSERT INTO zusatz VALUES(145863, 1, 35, '2003-04-14', '2003-04-19'); INSERT INTO zusatz VALUES(46357, 1, 61, '2004-04-26', '2004-05-07'); INSERT INTO zusatz VALUES(46357, 1, 84, '2004-04-30', '2004-05-03'); INSERT INTO zusatz VALUES(46357, 1, 111, '2004-05-01', '2004-05-03'); INSERT INTO zusatz VALUES(46357, 1, 130, '2004-04-30', '2004-05-02'); INSERT INTO zusatz VALUES(135, 1, 96, '1997-09-19', '1997-09-20'); INSERT INTO zusatz VALUES(135, 1, 108, '1997-09-19', '1997-09-19'); INSERT INTO zusatz VALUES(135, 1, 111, '1997-09-20', '1997-09-20'); INSERT INTO zusatz VALUES(24, 1, 142, '2001-04-16', '2001-04-19'); INSERT INTO zusatz VALUES(24, 3, 178, '2001-08-01', '2001-08-27'); INSERT INTO zusatz VALUES(24, 4, 47, '2001-08-01', '2001-08-27'); INSERT INTO zusatz VALUES(8673, 1, 47, '2003-07-03', '2003-07-05'); INSERT INTO zusatz VALUES(9999, 1, 84, '2004-05-05', '2004-05-05'); INSERT INTO zusatz VALUES(9999, 1, 130, '2004-06-06', '2004-06-07'); INSERT INTO zusatz VALUES(9999, 2, 130, '2004-07-01', '2004-07-31'); INSERT INTO zusatz VALUES(9999, 3, 130, '2004-09-01', '2004-09-30'); INSERT INTO zusatz VALUES(9999, 3, 61, '2004-09-01', '2004-09-30'); INSERT INTO zusatz Values(356, 1, 35, '2004-01-02', '2004-04-22'); INSERT INTO zusatz Values(356, 1, 47, '2004-01-02', '2004-04-22'); Update reservierung set datum=datum+730; Update rposition set von=von+1095, bis=bis+1095; Update zusatz set von=von+1095, bis=bis+1095; ALTER TABLE normal ADD anzahl INTEGER DEFAULT 1; ALTER TABLE zusatz ADD anzahl INTEGER DEFAULT 1; INSERT INTO ausstattung VALUES(46,'Bademantel','5.50'); INSERT INTO ausstattung VALUES(45,'Hausschuhe','2.35'); INSERT INTO ausstattung VALUES(50,'Kinderbett','0.0'); INSERT INTO ausstattung VALUES(51,'Hochstuhl','0.0'); INSERT INTO ausstattung VALUES(52,'Safe','2.45'); INSERT INTO ausstattung VALUES(53,'Heizdecke','16.85'); INSERT INTO ausstattung VALUES(54,'Duftkerzen','12.15'); INSERT INTO ausstattung VALUES(24,'W-LAN Zugang','5.95'); INSERT INTO ausstattung VALUES(25,'DSL-Anschluss','7.69'); INSERT INTO hotel VALUES(736,'Gasthof Sybille','Bad Lippspringe','An der Jordanquelle','1','33188'); INSERT INTO hotel VALUES(758,'Kastens Hotel','Duesseldorf','Lorettostr','5','40219'); INSERT INTO hotel VALUES(761,'Am Glockenturm','Arnsberg','Soesterstr','1','59821'); INSERT INTO zimmer VALUES(34,5,'No5',2,'21.99'); INSERT INTO zimmer VALUES(132,122,'Strecke',2,'60.45'); INSERT INTO zimmer VALUES(135,412,'Rosa Raum',2,'90.35'); INSERT INTO zimmer VALUES(392,414,'Schlafwohl',2,'59.95'); INSERT INTO zimmer VALUES(428,333,'Stollen West',2,'24.99'); INSERT INTO zimmer VALUES(522,135,'Missippi',2,'52.89'); INSERT INTO zimmer VALUES(625,333,'Schoene Aussicht',2,'74.25'); INSERT INTO zimmer VALUES(843,363,'Morgenroete',2,'195.25'); INSERT INTO zimmer VALUES(1036,512,'Angeraue',2,'50.12'); INSERT INTO zimmer VALUES(736,11,'Arminiusquelle',2,'45.40'); INSERT INTO zimmer VALUES(736,12,'Jordanquelle',2,'45.40'); INSERT INTO zimmer VALUES(736,14,'Lippequelle',2,50.50); INSERT INTO zimmer VALUES(758,25,'Rheinturm',2,78.99); INSERT INTO zimmer VALUES(758,26,'Stadttor',2,78.99); INSERT INTO zimmer VALUES(758,27,'Kniebruecke',2,74.99); INSERT INTO zimmer VALUES(761,31,'Schlossberg',2,25.85); INSERT INTO zimmer VALUES(761,32,'Gambrinus',2,19.99); INSERT INTO zimmer VALUES(761,33,'Muffrika',4,48.55); INSERT INTO normal VALUES(34,5,59,2); INSERT INTO normal VALUES(132,122,59,2); INSERT INTO normal VALUES(135,412,59,2); INSERT INTO normal VALUES(392,414,59,2); INSERT INTO normal VALUES(428,333,59,2); INSERT INTO normal VALUES(522,135,59,2); INSERT INTO normal VALUES(625,333,59,2); INSERT INTO normal VALUES(843,363,59,2); INSERT INTO normal VALUES(1036,512,59,2); INSERT INTO normal VALUES(736,11,59,2); INSERT INTO normal VALUES(736,12,59,2); INSERT INTO normal VALUES(736,14,59,2); INSERT INTO normal VALUES(758,25,59,2); INSERT INTO normal VALUES(758,26,59,2); INSERT INTO normal VALUES(758,27,59,2); INSERT INTO normal VALUES(761,31,59,2); INSERT INTO normal VALUES(761,32,59,2); INSERT INTO normal VALUES(761,33,59,4); INSERT INTO normal VALUES(34,5,62,1); INSERT INTO normal VALUES(132,122,62,1); INSERT INTO normal VALUES(135,412,62,1); INSERT INTO normal VALUES(392,414,62,1); INSERT INTO normal VALUES(428,333,62,1); INSERT INTO normal VALUES(522,135,62,1); INSERT INTO normal VALUES(625,333,62,1); INSERT INTO normal VALUES(843,363,62,1); INSERT INTO normal VALUES(1036,512,62,1); INSERT INTO normal VALUES(736,11,53,1); INSERT INTO normal VALUES(736,12,53,1); INSERT INTO normal VALUES(736,14,53,1); INSERT INTO normal VALUES(758,25,142,1); INSERT INTO normal VALUES(758,26,142,1); INSERT INTO normal VALUES(758,27,142,1); INSERT INTO normal VALUES(761,31,178,2); INSERT INTO normal VALUES(761,32,178,2); INSERT INTO normal VALUES(761,33,178,4); INSERT INTO gast VALUES(25,'Binz','Gunnar','Duesseldorf','40549','Heerdter Sandberg','3'); INSERT INTO gast VALUES(26,'Haller','Karl-Heinz','Dortmund','44143','Breierspfad','134'); INSERT INTO gast VALUES(27,'Kloepping','Harald','Bamberg','96058','Eckeystr','15'); INSERT INTO gast VALUES(28,'Schlanstein','Christina','Dillenburg','35683','Carl-Schurz-Str','9'); INSERT INTO gast VALUES(29,'Gauss','Kerstin','Neuss','41453','Badstr','3'); INSERT INTO gast VALUES(30,'Hansen','Irmgard','Bamberg','96023','Neuer Weg','15'); INSERT INTO gast VALUES(31,'Rosenberg','Brigitte','Duisburg','41025','Rahmerstr','168'); INSERT INTO gast VALUES(32,'Lampe','Rosa','Vechta','49377','Schwichtelerstr','14'); INSERT INTO gast VALUES(33,'Mondo','Dolores','Hagen','58093','Dortmunder Str','15a'); INSERT INTO reservierung VALUES(221,'2009-05-15',736,25); INSERT INTO reservierung VALUES(222,'2009-01-11',758,26); INSERT INTO reservierung VALUES(223,'2008-11-05',761,27); INSERT INTO reservierung VALUES(224,'2008-10-03',761,28); INSERT INTO reservierung VALUES(225,'2007-07-18',135,27); INSERT INTO reservierung VALUES(226,'2007-11-06',522,29); INSERT INTO reservierung VALUES(227,'2007-12-13',428,30); INSERT INTO reservierung VALUES(228,'2008-02-15',843,31); INSERT INTO reservierung VALUES(229,'2008-03-25',135,32); INSERT INTO reservierung VALUES(230,'2008-04-13',758,33); INSERT INTO reservierung VALUES(231,'2008-06-07',758,33); INSERT INTO reservierung VALUES(232,'2008-08-13',522,25); INSERT INTO reservierung VALUES(233,'2009-04-13',736,29); INSERT INTO reservierung VALUES(234,'2009-02-26',522,27); INSERT INTO reservierung VALUES(235,'2008-08-13',761,26); INSERT INTO reservierung VALUES(236,'2008-09-30',761,25); INSERT INTO reservierung VALUES(237,'2009-03-11',843,33); INSERT INTO reservierung VALUES(238,'2008-04-13',843,58); INSERT INTO reservierung VALUES(239,'2008-11-11',758,58); INSERT INTO reservierung VALUES(240,'2009-02-03',135,453); INSERT INTO reservierung VALUES(241,'2007-12-28',522,795); INSERT INTO rposition VALUES(221,1,'2009-05-25','2009-06-05',736,11); INSERT INTO rposition VALUES(222,1,'2009-04-15','2009-04-18',736,12); INSERT INTO rposition VALUES(223,1,'2009-01-11','2009-01-18',736,14); INSERT INTO rposition VALUES(223,2,'2009-02-11','2009-02-18',736,11); INSERT INTO rposition VALUES(223,3,'2009-03-11','2009-03-18',736,14); INSERT INTO rposition VALUES(224,1,'2008-11-11','2008-11-15',758,25); INSERT INTO rposition VALUES(225,1,'2007-07-31','2007-08-15',758,26); INSERT INTO rposition VALUES(226,1,'2007-11-11','2007-11-13',758,27); INSERT INTO rposition VALUES(227,1,'2008-01-12','2008-01-15',761,31); INSERT INTO rposition VALUES(228,1,'2008-03-02','2008-03-08',761,32); INSERT INTO rposition VALUES(228,2,'2008-04-02','2008-04-08',761,32); INSERT INTO rposition VALUES(228,3,'2008-05-02','2008-05-08',761,32); INSERT INTO rposition VALUES(229,1,'2008-03-28','2008-04-07',761,33); INSERT INTO rposition VALUES(230,1,'2008-05-02','2008-05-13',132,122); INSERT INTO rposition VALUES(231,1,'2008-07-01','2008-07-05',34,3); INSERT INTO rposition VALUES(231,2,'2008-07-01','2008-07-05',34,4); INSERT INTO rposition VALUES(231,3,'2008-07-01','2008-07-05',34,5); INSERT INTO rposition VALUES(232,1,'2008-09-19','2008-09-21',135,412); INSERT INTO rposition VALUES(233,1,'2009-05-01','2009-05-05',392,414); INSERT INTO rposition VALUES(234,1,'2009-03-01','2009-03-05',428,333); INSERT INTO rposition VALUES(235,1,'2008-09-01','2008-09-05',522,135); INSERT INTO rposition VALUES(236,1,'2008-12-01','2008-12-10',625,333); INSERT INTO rposition VALUES(237,1,'2009-03-18','2009-03-25',843,363); INSERT INTO rposition VALUES(238,1,'2008-07-01','2008-07-05',1036,512); INSERT INTO rposition VALUES(239,1,'2008-11-11','2008-11-15',758,26); INSERT INTO rposition VALUES(240,1,'2009-02-11','2009-02-15',135,412); INSERT INTO rposition VALUES(241,1,'2008-01-02','2008-01-09',522,135); INSERT INTO zusatz VALUES(221,1,50,'2009-05-25','2009-06-05',2); INSERT INTO zusatz VALUES(221,1,51,'2009-05-25','2009-06-05',2); INSERT INTO zusatz VALUES(222,1,53,'2009-04-15','2009-04-18',2); INSERT INTO zusatz VALUES(224,1,53,'2008-11-11','2008-11-15',1); INSERT INTO zusatz VALUES(225,1,52,'2007-07-31','2007-08-15',1); INSERT INTO zusatz VALUES(226,1,52,'2007-11-11','2007-11-13',1); INSERT INTO zusatz VALUES(227,1,52,'2008-01-12','2008-01-15',2); INSERT INTO zusatz VALUES(229,1,45,'2008-03-29','2008-04-07',2); INSERT INTO zusatz VALUES(230,1,45,'2008-05-03','2008-05-13',1); INSERT INTO zusatz VALUES(230,1,46,'2008-05-03','2008-05-13',1); INSERT INTO zusatz VALUES(232,1,54,'2008-09-19','2008-09-21',1); INSERT INTO zusatz VALUES(233,1,24,'2009-05-01','2009-05-05',1); INSERT INTO zusatz VALUES(234,1,25,'2009-03-03','2009-03-05',1); INSERT INTO zusatz VALUES(235,1,142,'2008-09-03','2008-09-04',4); INSERT INTO zusatz VALUES(235,1,154,'2008-09-03','2008-09-04',1); INSERT INTO zusatz VALUES(239,1,84,'2008-11-11','2008-11-15',1); INSERT INTO zusatz VALUES(240,1,111,'2009-02-11','2009-02-15',1);", + "CREATE TABLE hotel ( HoNr INTEGER NOT NULL, HName VARCHAR(40), Ort VARCHAR(40), Straße VARCHAR(40), HausNr VARCHAR(5), PLZ CHAR(5), CONSTRAINT pk_hotel PRIMARY KEY(HoNr)); CREATE TABLE zimmer ( HoNr INTEGER NOT NULL, ZNr INTEGER NOT NULL, ZName VARCHAR(40), Kapazitaet INTEGER, Preis DECIMAL(8,2), CONSTRAINT pk_zimmer PRIMARY KEY(HoNr, ZNr), CONSTRAINT fk_zimmer FOREIGN KEY(HoNr) REFERENCES hotel(HoNr)); CREATE TABLE ausstattung ( ANr INTEGER NOT NULL, Bezeichnung VARCHAR(40), Zusatzkosten DECIMAL(8,2), CONSTRAINT pk_ausstattung PRIMARY KEY(ANr)); CREATE TABLE normal ( HoNr INTEGER NOT NULL, ZNr INTEGER NOT NULL, ANr INTEGER NOT NULL, CONSTRAINT pk_normal PRIMARY KEY(HoNr, ZNr, ANr), CONSTRAINT fk_normal_1 FOREIGN KEY(ANr) REFERENCES ausstattung(ANr), CONSTRAINT fk_normal_2 FOREIGN KEY(HoNr, ZNr) REFERENCES zimmer(HoNr, ZNr)); CREATE TABLE gast ( GNr INTEGER NOT NULL, Name VARCHAR(30), Vorname VARCHAR(40), Ort VARCHAR(50), PLZ CHAR(5), Strasse VARCHAR(50), HausNr VARCHAR(5), CONSTRAINT pk_gast PRIMARY KEY(GNr)); CREATE TABLE reservierung ( RNr INTEGER NOT NULL, Datum DATE, HoNr INTEGER, GNr INTEGER, CONSTRAINT pk_reservierung PRIMARY KEY(RNr), CONSTRAINT fk_reservierung_1 FOREIGN KEY(HoNr) REFERENCES hotel(HoNr), CONSTRAINT fk_reservierung_2 FOREIGN KEY(GNr) REFERENCES gast(GNr)); CREATE TABLE rposition ( RNr INTEGER NOT NULL, RPos INTEGER NOT NULL, von DATE, bis DATE, HoNr INTEGER, ZNr INTEGER, CONSTRAINT pk_position PRIMARY KEY(RNr, RPos), CONSTRAINT fk_position_1 FOREIGN KEY(RNr) REFERENCES reservierung(RNr), CONSTRAINT fk_position_2 FOREIGN KEY(HoNr, ZNr) REFERENCES zimmer(HoNr, ZNr), CONSTRAINT check_date CHECK (von <= bis)); CREATE TABLE zusatz ( RNr INTEGER NOT NULL, RPos INTEGER NOT NULL, ANr INTEGER NOT NULL, von DATE, bis DATE, CONSTRAINT pk_zusatz PRIMARY KEY(RNr, RPos, ANr), CONSTRAINT fk_zusatz_1 FOREIGN KEY(RNr, RPos) REFERENCES rposition(RNr, RPos), CONSTRAINT fk_zusatz_2 FOREIGN KEY(ANr) REFERENCES ausstattung(ANr), CONSTRAINT check_date CHECK (von <= bis)); INSERT INTO hotel VALUES(1036, 'Ringhotel', 'Luenen', 'Kurt-Schumacher-Strasse', '1', '44534'); INSERT INTO hotel VALUES(34 ,'Haus Schmuelling','Bergkamen','Landwehrstrasse', '54', '59192'); INSERT INTO hotel VALUES(135, 'City Hotel', 'Dortmund', 'Auf dem Wall','62', '44147'); INSERT INTO hotel VALUES(843,'Maritim','Stralsund','Strandgasse','37','18435'); INSERT INTO hotel VALUES(428,'Riss','Chemnitz','An der Erzkuhle','23', '09008'); INSERT INTO hotel VALUES(522,'Bohne','Kakau b. Bitterfeld','Zur Plantage','14','06785'); INSERT INTO hotel VALUES(132,'Gruene Bogenschuetze','Geseke','An der Abtei','3','59590'); INSERT INTO hotel VALUES(625,'Hotel Adlon','Dortmund','Lilienthalstrasse','68a','44369'); INSERT INTO hotel VALUES(392,'Hotel Kempinski','Muenchen','Terminalstrasse', '20-22','85356'); INSERT INTO ausstattung VALUES(23,'Telefon', 5.67); INSERT INTO ausstattung VALUES(35,'Goldene Wascharmaturen', 45.16); INSERT INTO ausstattung VALUES(47,'Extragroße Badetuecher', 9.99); INSERT INTO ausstattung VALUES(59,'Bettwaesche', 10.32); INSERT INTO ausstattung VALUES(61,'Haekelkissenbezuege', 13.57); INSERT INTO ausstattung VALUES(73,'Kabelfernsehen', 15.66); INSERT INTO ausstattung VALUES(84,'Satellitenfernsehen', 16.55); INSERT INTO ausstattung VALUES(96,'Beamer', 23.79); INSERT INTO ausstattung VALUES(108,'Overheadprojektor', 17.43); INSERT INTO ausstattung VALUES(111,'Videorekorder', 16.89); INSERT INTO ausstattung VALUES(123,'DVD-Player', 18.52); INSERT INTO ausstattung VALUES(130,'HiFi-Multifunktionsanlage', 25.91); INSERT INTO ausstattung VALUES(142,'Stuhl', 4.31); INSERT INTO ausstattung VALUES(154,'Tisch', 5.76); INSERT INTO ausstattung VALUES(166,'Kopfkissen', 15.69); INSERT INTO ausstattung VALUES(178,'Gummibettlaken', 17.83); INSERT INTO ausstattung VALUES(62,'gehaekelte Toilettenrollendeckchen', 11.46); INSERT INTO zimmer VALUES(34, 3, 'No3', 1, 19.99); INSERT INTO zimmer VALUES(135, 312, 'Praesidentensuite', 6, 399.99); INSERT INTO zimmer VALUES(428, 222, 'Stollen Sued', 2, 24.99); INSERT INTO zimmer VALUES(843, 145, 'Seeblick', 3, 89.67); INSERT INTO zimmer VALUES(1036, 217, 'Waldblick', 2, 45.99); INSERT INTO zimmer VALUES(428, 111, 'Stollen Nord', 1, 23.99); INSERT INTO zimmer VALUES(843, 732, 'Krabbenkutter', 5, 485.00); INSERT INTO zimmer VALUES(135, 521, 'Westfalenzimmer', 4, 167.55); INSERT INTO zimmer VALUES(34, 4, 'No4', 2, 21.99); INSERT INTO zimmer VALUES(1036, 1214, 'Schwanenteich', 3, 76.99); INSERT INTO zimmer VALUES(522, 113,'Onkel Toms Huette', 2, 54.99); INSERT INTO zimmer VALUES(522, 124,'Singendes Zuckerrohr', 3, 65.35); INSERT INTO zimmer VALUES(132, 115,'Waldruh', 2, 55.34); INSERT INTO zimmer VALUES(132, 134,'Hochsitz', 4, 89.47); INSERT INTO zimmer VALUES(625, 257,'Metropolian', 2, 76.21); INSERT INTO zimmer VALUES(625, 412,'Blickpunkt', 3, 87.25); INSERT INTO zimmer VALUES(392, 233,'Waldfried', 1, 32.46); INSERT INTO zimmer VALUES(392, 513,'Flugplatz', 2, 43.62); INSERT INTO normal VALUES(1036, 217, 23); INSERT INTO normal VALUES(843, 145, 73); INSERT INTO normal VALUES(34, 3, 23); INSERT INTO normal VALUES(428, 222, 61); INSERT INTO normal VALUES(135, 312, 166); INSERT INTO normal VALUES(428, 111, 142); INSERT INTO normal VALUES(34, 4, 59); INSERT INTO normal VALUES(1036, 1214, 84); INSERT INTO normal VALUES(135, 521, 178); INSERT INTO normal VALUES(843, 732, 130); INSERT INTO normal VALUES(522, 113, 62); INSERT INTO normal VALUES(522, 124, 59); INSERT INTO normal VALUES(132, 115, 73); INSERT INTO normal VALUES(132, 134, 84); INSERT INTO normal VALUES(625, 257, 23); INSERT INTO normal VALUES(625, 412, 166); INSERT INTO normal VALUES(392, 233, 35); INSERT INTO normal VALUES(392, 513, 130); INSERT INTO normal VALUES(522, 113, 59); INSERT INTO gast VALUES(453, 'Muller', 'Jean-Paul', 'Havixbeck', '48329', 'Willi-Richter-Platz', '2b'); INSERT INTO gast VALUES(14753, 'Richter','Trude','Buxtehude','21614', 'Zwischen den Bruecken','6'); INSERT INTO gast VALUES(795, 'Stein','Flut','Herten','46599','Stan-Libuda-Strasse','1'); INSERT INTO gast VALUES(8531,'Mustermann','Martin','Musterstadt','10000','Poststrasse','13-15'); INSERT INTO gast VALUES(7184,'Postmann','Elfriede','Chemnitz','09008','Erich-Honecker-Platz','23'); INSERT INTO gast VALUES(3417,'Randzio','Katharina','Aue','08280','Goethestrasse','101a'); INSERT INTO gast VALUES(59375,'Engelke-Meise','Silke','Herne','44625','Jaegerstrasse','13'); INSERT INTO gast VALUES(58,'Ebbingmann','Adalbert','Fuessen','87629','Froschseenstrasse','33'); INSERT INTO gast VALUES(4711,'Matzke','Muximilian','Waldshut','79761','Kaiserstrasse','27'); INSERT INTO gast VALUES(8624,'Rupprecht','Knecht','Himmelstadt','97267','Kirchplatz','5'); INSERT INTO gast VALUES(2738,'Schmitz','Klaus','Dortmund','44147','Linienstrasse','7b'); INSERT INTO gast VALUES(2631,'Biene','Maja','Blumenberg','50765','Auf der Blume','24'); INSERT INTO gast VALUES(2632,'Groenemeyer','Herbert','Berlin','10435','Rheinsberger Strasse','48'); INSERT INTO gast VALUES(2635,'Baerbock','Annalena','Berlin','11011','Platz der Republik','1'); INSERT INTO Gast (gnr,name,vorname,ort,plz,strasse,hausnr) VALUES (44,'Schulz','Maja','Gießen','35390','Wiesenstr.','10'); INSERT INTO reservierung VALUES(86542, '2002-09-09', 34, 453); INSERT INTO reservierung VALUES(145863, '2002-01-02', 135, 14753); INSERT INTO reservierung VALUES(46357, '2003-04-01', 843, 795); INSERT INTO reservierung VALUES(43358, '2003-03-23', 428, 8531); INSERT INTO reservierung VALUES(135, '1995-09-19', 1036, 7184); INSERT INTO reservierung VALUES(6834, '2004-08-13', 34, 3417); INSERT INTO reservierung VALUES(115, '2003-05-27', 428, 59375); INSERT INTO reservierung VALUES(8673, '2003-05-03', 135, 58); INSERT INTO reservierung VALUES(24, '1999-08-31', 843, 4711); INSERT INTO reservierung VALUES(9999, '2003-12-12', 1036, 8624); INSERT INTO reservierung VALUES(735, '2003-03-13', 132, 4711); INSERT INTO reservierung VALUES(567, '2002-02-24', 625, 2738); INSERT INTO reservierung VALUES(818, '2004-03-01', 392, 8624); INSERT INTO reservierung VALUES(361, '1998-12-21', 34, 59375); INSERT INTO reservierung VALUES(5294, '2001-10-10', 392, 3417); INSERT INTO reservierung VALUES(2732, '1996-04-13', 132, 7184); INSERT INTO reservierung VALUES(2432, '2001-07-16', 522, 453); INSERT INTO reservierung VALUES(1953, '2001-08-23', 135, 14753); INSERT INTO reservierung VALUES(356, '2004-01-01', 1036, 2631); INSERT INTO reservierung VALUES(5646, '2005-02-05', 522, 795); INSERT INTO reservierung VALUES(6748, '2005-03-22', 522, 795); INSERT INTO reservierung VALUES(2748, '2004-02-10', 132, 4711); INSERT INTO reservierung VALUES(2349, '2004-02-10', 132, 58); INSERT INTO reservierung VALUES(4241, '2005-02-10', 132, 58); INSERT INTO reservierung VALUES(6878, '2006-02-10', 132, 58); INSERT INTO rposition VALUES(86542, 1, '2002-10-10', '2003-10-10', 34, 3); INSERT INTO rposition VALUES(145863, 1, '2003-04-11', '2003-04-22', 135, 312); INSERT INTO rposition VALUES(43358, 1, '2003-05-05', '2003-05-06', 428, 222); INSERT INTO rposition VALUES(46357, 1, '2004-04-26', '2004-05-07', 843,145); INSERT INTO rposition VALUES(135, 1, '1997-09-18', '1997-09-22', 1036, 217); INSERT INTO rposition VALUES(115, 1, '2004-05-28', '2004-05-31', 428, 111); INSERT INTO rposition VALUES(24, 1, '2001-04-08', '2001-04-25', 843, 732); INSERT INTO rposition VALUES(24, 2, '2001-04-08', '2001-04-25', 843, 145); INSERT INTO rposition VALUES(24, 3, '2001-07-31', '2001-09-01', 34, 3); INSERT INTO rposition VALUES(24, 4, '2001-07-31', '2001-09-01', 34, 4); INSERT INTO rposition VALUES(8673, 1, '2003-07-01', '2003-07-15', 135, 521); INSERT INTO rposition VALUES(6834, 1, '2004-08-15', '2004-08-27', 34, 4); INSERT INTO rposition VALUES(9999, 1, '2004-04-30', '2004-06-30', 1036, 1214); INSERT INTO rposition VALUES(9999, 2, '2004-07-01', '2004-07-31', 135, 312); INSERT INTO rposition VALUES(9999, 3, '2004-08-31', '2004-10-01', 843, 145); INSERT INTO rposition VALUES(735, 1, '2003-03-20', '2004-04-20', 392, 233); INSERT INTO rposition VALUES(567, 1, '2003-04-23', '2003-05-07', 522,113); INSERT INTO rposition VALUES(818, 1, '2004-03-24', '2004-03-31', 132, 134); INSERT INTO rposition VALUES(361, 1, '1999-12-23', '2000-01-06', 625, 257); INSERT INTO rposition VALUES(5294, 1, '2002-04-02', '2002-04-16', 428, 111); INSERT INTO rposition VALUES(2732, 1, '1996-08-17', '1996-09-04', 522, 124); INSERT INTO rposition VALUES(2432, 1, '2002-06-15', '2002-07-16', 132, 115); INSERT INTO rposition VALUES(1953, 1, '2004-08-07', '2004-08-15', 392, 513); INSERT INTO rposition VALUES(818, 2, '2004-04-01', '2004-04-12', 843, 732); INSERT INTO rposition VALUES(356, 1, '2004-01-02', '2004-04-22', 522, 113); INSERT INTO rposition VALUES(5646, 1, '2005-03-06', '2005-03-22', 843, 145); INSERT INTO rposition VALUES(6748, 1, '2006-01-01', '2006-01-08', 843, 145); INSERT INTO rposition VALUES(2748, 1, '2004-04-01', '2004-04-08', 392, 233); INSERT INTO rposition VALUES(2349, 1, '2004-07-16', '2004-07-18', 392, 233); INSERT INTO rposition VALUES(4241, 1, '2005-07-16', '2005-07-18', 392, 233); INSERT INTO rposition VALUES(6878, 1, '2006-07-16', '2006-07-18', 392, 233); INSERT INTO zusatz VALUES(735, 1, 84, '2003-03-21', '2004-03-30'); INSERT INTO zusatz VALUES(567, 1, 61, '2003-04-23', '2003-05-07'); INSERT INTO zusatz VALUES(818, 1, 111, '2004-03-24', '2004-03-28'); INSERT INTO zusatz VALUES(361, 1, 142, '1999-12-26', '2000-01-06'); INSERT INTO zusatz VALUES(43358, 1, 154, '2003-05-05', '2003-05-06'); INSERT INTO zusatz VALUES(2732, 1, 47, '1996-08-17', '1996-08-18'); INSERT INTO zusatz VALUES(2432, 1, 123, '2002-06-30', '2002-07-01'); INSERT INTO zusatz VALUES(1953, 1, 178, '2004-08-07', '2004-08-15'); INSERT INTO zusatz VALUES(818, 2, 96, '2004-04-04', '2004-04-11'); INSERT INTO zusatz VALUES(818, 2, 108, '2004-04-03', '2004-04-10'); INSERT INTO zusatz VALUES(818, 2, 111, '2004-04-03', '2004-04-11'); INSERT INTO zusatz VALUES(735, 1, 130, '2003-03-22', '2004-03-29'); INSERT INTO zusatz VALUES(145863, 1, 35, '2003-04-14', '2003-04-19'); INSERT INTO zusatz VALUES(46357, 1, 61, '2004-04-26', '2004-05-07'); INSERT INTO zusatz VALUES(46357, 1, 84, '2004-04-30', '2004-05-03'); INSERT INTO zusatz VALUES(46357, 1, 111, '2004-05-01', '2004-05-03'); INSERT INTO zusatz VALUES(46357, 1, 130, '2004-04-30', '2004-05-02'); INSERT INTO zusatz VALUES(135, 1, 96, '1997-09-19', '1997-09-20'); INSERT INTO zusatz VALUES(135, 1, 108, '1997-09-19', '1997-09-19'); INSERT INTO zusatz VALUES(135, 1, 111, '1997-09-20', '1997-09-20'); INSERT INTO zusatz VALUES(24, 1, 142, '2001-04-16', '2001-04-19'); INSERT INTO zusatz VALUES(24, 3, 178, '2001-08-01', '2001-08-27'); INSERT INTO zusatz VALUES(24, 4, 47, '2001-08-01', '2001-08-27'); INSERT INTO zusatz VALUES(8673, 1, 47, '2003-07-03', '2003-07-05'); INSERT INTO zusatz VALUES(9999, 1, 84, '2004-05-05', '2004-05-05'); INSERT INTO zusatz VALUES(9999, 1, 130, '2004-06-06', '2004-06-07'); INSERT INTO zusatz VALUES(9999, 2, 130, '2004-07-01', '2004-07-31'); INSERT INTO zusatz VALUES(9999, 3, 130, '2004-09-01', '2004-09-30'); INSERT INTO zusatz VALUES(9999, 3, 61, '2004-09-01', '2004-09-30'); INSERT INTO zusatz Values(356, 1, 35, '2004-01-02', '2004-04-22'); INSERT INTO zusatz Values(356, 1, 47, '2004-01-02', '2004-04-22'); Update reservierung set datum=datum+730; Update rposition set von=von+1095, bis=bis+1095; Update zusatz set von=von+1095, bis=bis+1095; ALTER TABLE normal ADD anzahl INTEGER DEFAULT 1; ALTER TABLE zusatz ADD anzahl INTEGER DEFAULT 1; INSERT INTO ausstattung VALUES(46,'Bademantel','5.50'); INSERT INTO ausstattung VALUES(45,'Hausschuhe','2.35'); INSERT INTO ausstattung VALUES(50,'Kinderbett','0.0'); INSERT INTO ausstattung VALUES(51,'Hochstuhl','0.0'); INSERT INTO ausstattung VALUES(52,'Safe','2.45'); INSERT INTO ausstattung VALUES(53,'Heizdecke','16.85'); INSERT INTO ausstattung VALUES(54,'Duftkerzen','12.15'); INSERT INTO ausstattung VALUES(24,'W-LAN Zugang','5.95'); INSERT INTO ausstattung VALUES(25,'DSL-Anschluss','7.69'); INSERT INTO hotel VALUES(736,'Gasthof Sybille','Bad Lippspringe','An der Jordanquelle','1','33188'); INSERT INTO hotel VALUES(758,'Kastens Hotel','Duesseldorf','Lorettostr','5','40219'); INSERT INTO hotel VALUES(761,'Am Glockenturm','Arnsberg','Soesterstr','1','59821'); INSERT INTO zimmer VALUES(34,5,'No5',2,'21.99'); INSERT INTO zimmer VALUES(132,122,'Strecke',2,'60.45'); INSERT INTO zimmer VALUES(135,412,'Rosa Raum',2,'90.35'); INSERT INTO zimmer VALUES(392,414,'Schlafwohl',2,'59.95'); INSERT INTO zimmer VALUES(428,333,'Stollen West',2,'24.99'); INSERT INTO zimmer VALUES(522,135,'Missippi',2,'52.89'); INSERT INTO zimmer VALUES(625,333,'Schoene Aussicht',2,'74.25'); INSERT INTO zimmer VALUES(843,363,'Morgenroete',2,'195.25'); INSERT INTO zimmer VALUES(1036,512,'Angeraue',2,'50.12'); INSERT INTO zimmer VALUES(736,11,'Arminiusquelle',2,'45.40'); INSERT INTO zimmer VALUES(736,12,'Jordanquelle',2,'45.40'); INSERT INTO zimmer VALUES(736,14,'Lippequelle',2,50.50); INSERT INTO zimmer VALUES(758,25,'Rheinturm',2,78.99); INSERT INTO zimmer VALUES(758,26,'Stadttor',2,78.99); INSERT INTO zimmer VALUES(758,27,'Kniebruecke',2,74.99); INSERT INTO zimmer VALUES(761,31,'Schlossberg',2,25.85); INSERT INTO zimmer VALUES(761,32,'Gambrinus',2,19.99); INSERT INTO zimmer VALUES(761,33,'Muffrika',4,48.55); INSERT INTO normal VALUES(34,5,59,2); INSERT INTO normal VALUES(132,122,59,2); INSERT INTO normal VALUES(135,412,59,2); INSERT INTO normal VALUES(392,414,59,2); INSERT INTO normal VALUES(428,333,59,2); INSERT INTO normal VALUES(522,135,59,2); INSERT INTO normal VALUES(625,333,59,2); INSERT INTO normal VALUES(843,363,59,2); INSERT INTO normal VALUES(1036,512,59,2); INSERT INTO normal VALUES(736,11,59,2); INSERT INTO normal VALUES(736,12,59,2); INSERT INTO normal VALUES(736,14,59,2); INSERT INTO normal VALUES(758,25,59,2); INSERT INTO normal VALUES(758,26,59,2); INSERT INTO normal VALUES(758,27,59,2); INSERT INTO normal VALUES(761,31,59,2); INSERT INTO normal VALUES(761,32,59,2); INSERT INTO normal VALUES(761,33,59,4); INSERT INTO normal VALUES(34,5,62,1); INSERT INTO normal VALUES(132,122,62,1); INSERT INTO normal VALUES(135,412,62,1); INSERT INTO normal VALUES(392,414,62,1); INSERT INTO normal VALUES(428,333,62,1); INSERT INTO normal VALUES(522,135,62,1); INSERT INTO normal VALUES(625,333,62,1); INSERT INTO normal VALUES(843,363,62,1); INSERT INTO normal VALUES(1036,512,62,1); INSERT INTO normal VALUES(736,11,53,1); INSERT INTO normal VALUES(736,12,53,1); INSERT INTO normal VALUES(736,14,53,1); INSERT INTO normal VALUES(758,25,142,1); INSERT INTO normal VALUES(758,26,142,1); INSERT INTO normal VALUES(758,27,142,1); INSERT INTO normal VALUES(761,31,178,2); INSERT INTO normal VALUES(761,32,178,2); INSERT INTO normal VALUES(761,33,178,4); INSERT INTO gast VALUES(25,'Binz','Gunnar','Duesseldorf','40549','Heerdter Sandberg','3'); INSERT INTO gast VALUES(26,'Haller','Karl-Heinz','Dortmund','44143','Breierspfad','134'); INSERT INTO gast VALUES(27,'Kloepping','Harald','Bamberg','96058','Eckeystr','15'); INSERT INTO gast VALUES(28,'Schlanstein','Christina','Dillenburg','35683','Carl-Schurz-Str','9'); INSERT INTO gast VALUES(29,'Gauss','Kerstin','Neuss','41453','Badstr','3'); INSERT INTO gast VALUES(30,'Hansen','Irmgard','Bamberg','96023','Neuer Weg','15'); INSERT INTO gast VALUES(31,'Rosenberg','Brigitte','Duisburg','41025','Rahmerstr','168'); INSERT INTO gast VALUES(32,'Lampe','Rosa','Vechta','49377','Schwichtelerstr','14'); INSERT INTO gast VALUES(33,'Mondo','Dolores','Hagen','58093','Dortmunder Str','15a'); INSERT INTO reservierung VALUES(221,'2009-05-15',736,25); INSERT INTO reservierung VALUES(222,'2009-01-11',758,26); INSERT INTO reservierung VALUES(223,'2008-11-05',761,27); INSERT INTO reservierung VALUES(224,'2008-10-03',761,28); INSERT INTO reservierung VALUES(225,'2007-07-18',135,27); INSERT INTO reservierung VALUES(226,'2007-11-06',522,29); INSERT INTO reservierung VALUES(227,'2007-12-13',428,30); INSERT INTO reservierung VALUES(228,'2008-02-15',843,31); INSERT INTO reservierung VALUES(229,'2008-03-25',135,32); INSERT INTO reservierung VALUES(230,'2008-04-13',758,33); INSERT INTO reservierung VALUES(231,'2008-06-07',758,33); INSERT INTO reservierung VALUES(232,'2008-08-13',522,25); INSERT INTO reservierung VALUES(233,'2009-04-13',736,29); INSERT INTO reservierung VALUES(234,'2009-02-26',522,27); INSERT INTO reservierung VALUES(235,'2008-08-13',761,26); INSERT INTO reservierung VALUES(236,'2008-09-30',761,25); INSERT INTO reservierung VALUES(237,'2009-03-11',843,33); INSERT INTO reservierung VALUES(238,'2008-04-13',843,58); INSERT INTO reservierung VALUES(239,'2008-11-11',758,58); INSERT INTO reservierung VALUES(240,'2009-02-03',135,453); INSERT INTO reservierung VALUES(241,'2007-12-28',522,795); INSERT INTO rposition VALUES(221,1,'2009-05-25','2009-06-05',736,11); INSERT INTO rposition VALUES(222,1,'2009-04-15','2009-04-18',736,12); INSERT INTO rposition VALUES(223,1,'2009-01-11','2009-01-18',736,14); INSERT INTO rposition VALUES(223,2,'2009-02-11','2009-02-18',736,11); INSERT INTO rposition VALUES(223,3,'2009-03-11','2009-03-18',736,14); INSERT INTO rposition VALUES(224,1,'2008-11-11','2008-11-15',758,25); INSERT INTO rposition VALUES(225,1,'2007-07-31','2007-08-15',758,26); INSERT INTO rposition VALUES(226,1,'2007-11-11','2007-11-13',758,27); INSERT INTO rposition VALUES(227,1,'2008-01-12','2008-01-15',761,31); INSERT INTO rposition VALUES(228,1,'2008-03-02','2008-03-08',761,32); INSERT INTO rposition VALUES(228,2,'2008-04-02','2008-04-08',761,32); INSERT INTO rposition VALUES(228,3,'2008-05-02','2008-05-08',761,32); INSERT INTO rposition VALUES(229,1,'2008-03-28','2008-04-07',761,33); INSERT INTO rposition VALUES(230,1,'2008-05-02','2008-05-13',132,122); INSERT INTO rposition VALUES(231,1,'2008-07-01','2008-07-05',34,3); INSERT INTO rposition VALUES(231,2,'2008-07-01','2008-07-05',34,4); INSERT INTO rposition VALUES(231,3,'2008-07-01','2008-07-05',34,5); INSERT INTO rposition VALUES(232,1,'2008-09-19','2008-09-21',135,412); INSERT INTO rposition VALUES(233,1,'2009-05-01','2009-05-05',392,414); INSERT INTO rposition VALUES(234,1,'2009-03-01','2009-03-05',428,333); INSERT INTO rposition VALUES(235,1,'2008-09-01','2008-09-05',522,135); INSERT INTO rposition VALUES(236,1,'2008-12-01','2008-12-10',625,333); INSERT INTO rposition VALUES(237,1,'2009-03-18','2009-03-25',843,363); INSERT INTO rposition VALUES(238,1,'2008-07-01','2008-07-05',1036,512); INSERT INTO rposition VALUES(239,1,'2008-11-11','2008-11-15',758,26); INSERT INTO rposition VALUES(240,1,'2009-02-11','2009-02-15',135,412); INSERT INTO rposition VALUES(241,1,'2008-01-02','2008-01-09',522,135); INSERT INTO zusatz VALUES(221,1,50,'2009-05-25','2009-06-05',2); INSERT INTO zusatz VALUES(221,1,51,'2009-05-25','2009-06-05',2); INSERT INTO zusatz VALUES(222,1,53,'2009-04-15','2009-04-18',2); INSERT INTO zusatz VALUES(224,1,53,'2008-11-11','2008-11-15',1); INSERT INTO zusatz VALUES(225,1,52,'2007-07-31','2007-08-15',1); INSERT INTO zusatz VALUES(226,1,52,'2007-11-11','2007-11-13',1); INSERT INTO zusatz VALUES(227,1,52,'2008-01-12','2008-01-15',2); INSERT INTO zusatz VALUES(229,1,45,'2008-03-29','2008-04-07',2); INSERT INTO zusatz VALUES(230,1,45,'2008-05-03','2008-05-13',1); INSERT INTO zusatz VALUES(230,1,46,'2008-05-03','2008-05-13',1); INSERT INTO zusatz VALUES(232,1,54,'2008-09-19','2008-09-21',1); INSERT INTO zusatz VALUES(233,1,24,'2009-05-01','2009-05-05',1); INSERT INTO zusatz VALUES(234,1,25,'2009-03-03','2009-03-05',1); INSERT INTO zusatz VALUES(235,1,142,'2008-09-03','2008-09-04',4); INSERT INTO zusatz VALUES(235,1,154,'2008-09-03','2008-09-04',1); INSERT INTO zusatz VALUES(239,1,84,'2008-11-11','2008-11-15',1); INSERT INTO zusatz VALUES(240,1,111,'2009-02-11','2009-02-15',1);", }, { id: 4,