DROP TABLE Appartement; CREATE TABLE Appartement ( NumAppart INT, NombresPieces INT, Superficie REAL, Adresse VARCHAR, Etage INT, PRIMARY KEY(NumAppart) ); DROP TABLE Appartient; CREATE TABLE Appartient ( NumAppart INT, NumResidence INT, PRIMARY KEY(NumAppart,NumResidence) ); DROP TABLE Residence; CREATE TABLE Residence ( NumResidence int, NombreEtages int, Ascenseur bool, NombreApparttotal int, Adresse VARCHAR, NomResidence VARCHAR, PRIMARY KEY(NumResidence)); DROP TABLE Personne; CREATE TABLE Personne ( NumPersonne int, AdressePersonne VARCHAR, Ville VARCHAR, CodePostal VARCHAR, NomPersonne VARCHAR, PrenomPersonne VARCHAR, PRIMARY KEY(NumPersonne)); DROP TABLE EstLocataire; CREATE TABLE EstLocataire ( NumAppart INT, NumLocataire INT, PRIMARY KEY(NumAppart,NumLocataire) ); DROP TABLE EstProprio; CREATE TABLE EstProprio ( NumAppart INT, NumPersonne INT, PRIMARY KEY(NumAppart,NumPersonne) ); INSERT INTO PERSONNE VALUES (1, '1 rue des saules', 'Nice', '06000', 'Joucquet', 'Pierre'); INSERT INTO PERSONNE VALUES (2, '2 rue des peupliers', 'Bordeaux', '33000', 'Martin', 'Paul'); INSERT INTO PERSONNE VALUES (3, '3 rue des ormes', 'Lille', '59000', 'Martini', 'Jacques'); INSERT INTO PERSONNE VALUES (4, '4 rue des ornes', 'Orleans', '45000', 'Robert', 'Michel'); INSERT INTO PERSONNE VALUES (5, '15 rue des chenes', 'Tour', '86500', 'Mattieu', 'Marc'); INSERT INTO PERSONNE VALUES (6, '11 rue des pissenlit', 'Nantes', '23000', 'Perru', 'Gabriel'); INSERT INTO PERSONNE VALUES (7, '112 rue des pierres', 'Istres', '13500', 'Jocla', 'Jocelyn'); INSERT INTO PERSONNE VALUES (8, '12 rue des rougeats', 'Lens', '62500', 'Herdid', 'Rodrigue'); INSERT INTO PERSONNE VALUES (9, '15 rue des hameons', 'Paris', '75400', 'Roux', 'Olivier'); INSERT INTO PERSONNE VALUES (10, '11 rue des decrets', 'Marseille', '13000', 'Poopiu', 'Romaon'); INSERT INTO PERSONNE VALUES (11, '1 rue Paul Sage', 'Monaco', 'AA000', 'Vien', 'Juliette'); INSERT INTO PERSONNE VALUES (12, '2 rue Michelet', 'Lyon', '81000', 'Riau', 'Romeo'); INSERT INTO PERSONNE VALUES (13, '6 rue sourire ', 'Geugnon', '05000', 'Monnet', 'Gisou'); INSERT INTO PERSONNE VALUES (14, '8 rue tabaga', 'Saint Etienne', '47000', 'Piode', 'Paul'); INSERT INTO PERSONNE VALUES (15, '2 rue dansLesBrancards', 'Poitiers', '86000', 'Pouyt', 'Gert'); INSERT INTO PERSONNE VALUES (16, '6 rue de LaBorie', 'Douai', '59500', 'Fez', 'Celine'); INSERT INTO PERSONNE VALUES (17, '5 rue des soucils', 'Grenoble', '37100', 'Juitre', 'Laeticia'); INSERT INTO PERSONNE VALUES (18, '45 rue des poissans', 'Nancy', '57000', 'Koilce', 'Gilles'); INSERT INTO PERSONNE VALUES (19, '25 rue du solstice', 'Strasbourg', '67000', 'Moire', 'Michel'); INSERT INTO PERSONNE VALUES (20, '1 rue Magret', 'Metz', '67500', 'Joucguet', 'Sofi'); INSERT INTO PERSONNE VALUES (22, '485 rue Pornichet', 'Amiens', '80000', 'Dasery', 'Loudban'); INSERT INTO PERSONNE VALUES (23, '1 rue Magret', 'Metz', '67500', 'Joucguet', 'Sofi'); INSERT INTO PERSONNE VALUES (24, '485 rue Pornichet', 'Amiens', '80000', 'Dasery', 'Loudban'); INSERT INTO Appartement VALUES (1, 2, 25, '52 Rue du commerce', 0); INSERT INTO Appartement VALUES (2, 3, 56, '6 Rue des Fleurs', 5); INSERT INTO Appartement VALUES (3, 5, 122, '2 Bd Louis Blanc', 6); INSERT INTO Appartement VALUES (4, 6, 251, '65 Ruye Jean Jaures', 5); INSERT INTO Appartement VALUES (5, 2, 12, '1 Rue Cochet', 1); INSERT INTO Appartement VALUES (6, 3, 125, '2 Place Carnot', 4); INSERT INTO Appartement VALUES (7, 5, 52, '2 impase de souza', 1); INSERT INTO Appartement VALUES (8, 2, 23, '3 rue Sebastopol', 9); INSERT INTO Appartement VALUES (9, 3, 42, '14 Rue Francois Perrin', 4); INSERT INTO Appartement VALUES (10, 8, 365, '125 Rue Armand Dutreix', 3); INSERT INTO Appartement VALUES (11, 1, 32, '12 Rue Roscoff', 0); INSERT INTO Appartement VALUES (12, 2, 45, '12 Avenue Albert Thomas', 4); INSERT INTO Appartient VALUES (1, 1); INSERT INTO Appartient VALUES (2, 2); INSERT INTO Appartient VALUES (3, 3); INSERT INTO Appartient VALUES (4, 4); INSERT INTO Appartient VALUES (5, 5); INSERT INTO Appartient VALUES (6, 6); INSERT INTO Appartient VALUES (7, 7); INSERT INTO Appartient VALUES (8, 8); INSERT INTO Appartient VALUES (10, 10); INSERT INTO Appartient VALUES (11, 11); INSERT INTO Appartient VALUES (12, 12); INSERT INTO Residence VALUES (1, 5, true, 12, '52 Rue du commerce', 'Honfleur'); INSERT INTO Residence VALUES (2, 2, false, 35, '6 Rue des Fleurs', 'Lilas'); INSERT INTO Residence VALUES (3, 1, false, 45, '2 Bd Louis Blanc', 'Printemps'); INSERT INTO Residence VALUES (4, 5, true, 45, '65 Ruye Jean Jaures', 'Roueget'); INSERT INTO Residence VALUES (5, 45, true, 512, '1 Rue Cochet', 'Corneille'); INSERT INTO Residence VALUES (6, 2, true, 56, '2 Place Carnot', 'Jean-Pierre Foucaud'); INSERT INTO Residence VALUES (7, 5, true, 5, '2 impase de souza', 'Pierette'); INSERT INTO Residence VALUES (8, 10, true, 56, '3 rue Sebastopol', 'Pornichet'); INSERT INTO Residence VALUES (9, 6, true, 7, '14 Rue Francois Perrin', 'La Croisette'); INSERT INTO Residence VALUES (10, 4, false, 12, '125 Rue Armand Dutreix', 'Michelet'); INSERT INTO Residence VALUES (11, 5, true, 22, '12 Rue Roscoff', 'Rodriguo'); INSERT INTO Residence VALUES (12, 5, true, 45, '12 Avenue Albert Thomas', 'Gai pinson'); INSERT INTO EstProprio VALUES (1, 1); INSERT INTO EstProprio VALUES (2, 2); INSERT INTO EstProprio VALUES (3, 3); INSERT INTO EstProprio VALUES (4, 4); INSERT INTO EstProprio VALUES (5, 5); INSERT INTO EstProprio VALUES (6, 6); INSERT INTO EstProprio VALUES (7, 7); INSERT INTO EstProprio VALUES (8, 8); INSERT INTO EstProprio VALUES (9, 9); INSERT INTO EstProprio VALUES (10, 10); INSERT INTO EstProprio VALUES (11, 11); INSERT INTO EstProprio VALUES (12, 12); INSERT INTO EstLocataire VALUES (1, 13); INSERT INTO EstLocataire VALUES (2, 14); INSERT INTO EstLocataire VALUES (3, 15); INSERT INTO EstLocataire VALUES (4, 16); INSERT INTO EstLocataire VALUES (5, 17); INSERT INTO EstLocataire VALUES (6, 18); INSERT INTO EstLocataire VALUES (7, 19); INSERT INTO EstLocataire VALUES (8, 20); INSERT INTO EstLocataire VALUES (8, 21); INSERT INTO EstLocataire VALUES (10, 22); INSERT INTO EstLocataire VALUES (11, 23); INSERT INTO EstLocataire VALUES (12, 24);