commit c8d14e727102f08a3228c0a7124778169f056709 Author: H4CK3R-01 Date: Fri Apr 22 09:56:15 2022 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..62c8935 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ \ No newline at end of file diff --git a/Lösung/Aufgabe 1 - RM.pdf b/Lösung/Aufgabe 1 - RM.pdf new file mode 100644 index 0000000..1ae1514 Binary files /dev/null and b/Lösung/Aufgabe 1 - RM.pdf differ diff --git a/Lösung/Aufgabe 2 - CREATE Tables.sql b/Lösung/Aufgabe 2 - CREATE Tables.sql new file mode 100644 index 0000000..517446b --- /dev/null +++ b/Lösung/Aufgabe 2 - CREATE Tables.sql @@ -0,0 +1,128 @@ +USE project; + +CREATE TABLE IF NOT EXISTS Produkt +( + ProduktID int AUTO_INCREMENT, + Produktname VARCHAR(50), + vegetarisch tinyint(1), + vegan tinyint(1), + primary key (ProduktID) +); + +CREATE TABLE IF NOT EXISTS Naehrstoff +( + ProduktID int, + Eiweiss int, + Kohlenhydrate int, + Fett int, + foreign key (ProduktID) references Produkt (ProduktID), + primary key (ProduktID) +); + +CREATE TABLE IF NOT EXISTS Allergen +( + AllergenID int AUTO_INCREMENT, + Allergenbezeichnung varchar(50), + primary key (AllergenID) +); + +CREATE TABLE IF NOT EXISTS Naehrwerte +( + ProduktID int, + Brennwert int, + foreign key (ProduktID) references Produkt (ProduktID), + primary key (ProduktID) +); + +CREATE TABLE IF NOT EXISTS Zusatzstoff +( + E_Nummer int, + Zusatzstoffbezeichnung varchar(50), + primary key (E_Nummer) +); + +CREATE TABLE IF NOT EXISTS Menge +( + MengenID int AUTO_INCREMENT, + ProduktID int, + Portionsgroesse varchar(50), + Menge int, + Einheit varchar(50), + primary key (MengenID), + foreign key (ProduktID) references Produkt (ProduktID) +); + +CREATE TABLE IF NOT EXISTS Person +( + PersonID int AUTO_INCREMENT, + Personenname varchar(50), + Personenvorname varchar(50), + Naehrwertziel int, + Ernaerungsstil varchar(50), + primary key (PersonID) +); + +CREATE TABLE IF NOT EXISTS Menu +( + MenuID int AUTO_INCREMENT, + Menuname varchar(50), + primary key (MenuID) +); + +CREATE TABLE IF NOT EXISTS Menucontent +( + MenuID int, + ProduktID int, + foreign key (MenuID) references Menu (MenuID), + foreign key (ProduktID) references Produkt (ProduktID), + primary key (MenuID, ProduktID) +); + +CREATE TABLE IF NOT EXISTS Allergie +( + PersonID int, + AllergenID int, + foreign key (PersonID) references Person (PersonID), + foreign key (AllergenID) references Allergen (AllergenID), + primary key (PersonID, AllergenID) +); + +CREATE TABLE IF NOT EXISTS enthaeltZusatzstoff +( + ProduktID int, + E_Nummer int, + Anwendungsgrund char(1), + foreign key (ProduktID) references Produkt (ProduktID), + foreign key (E_Nummer) references Zusatzstoff (E_Nummer), + primary key (ProduktID, E_Nummer, Anwendungsgrund) +); + +CREATE TABLE IF NOT EXISTS Zusatzstoffunvertraeglichkeit +( + PersonID int, + E_Nummer int, + foreign key (PersonID) references Person (PersonID), + foreign key (E_Nummer) references Zusatzstoff (E_Nummer), + primary key (PersonID, E_Nummer) +); + +CREATE TABLE IF NOT EXISTS enthaeltAllergen +( + AllergenID int, + ProduktID int, + spuren_von tinyint(1), + foreign key (AllergenID) references Allergen (AllergenID), + foreign key (ProduktID) references Produkt (ProduktID), + primary key (AllergenID, ProduktID) +); + +CREATE TABLE IF NOT EXISTS konsumiert +( + TransaktionsID int AUTO_INCREMENT, + PersonID int, + MenuID int, + Datum datetime, + foreign key (PersonID) references Person (PersonID), + foreign key (MenuID) references Menu (MenuID), + primary key (TransaktionsID) +) \ No newline at end of file diff --git a/Programmentwurf/E_nummern.csv b/Programmentwurf/E_nummern.csv new file mode 100644 index 0000000..f25cad5 --- /dev/null +++ b/Programmentwurf/E_nummern.csv @@ -0,0 +1,192 @@ +E100;Kurkumin ;F +E101;Riboflavin,Riboflavin-5-Phosphat ;F +E102;Tartrazin ;F +E104;Chinolingelb ;F +E110;Gelborange S ;F +E120;Echtes Karmin ;F +E122;Azorubin ;F +E123;Amaranth ;F +E124;Cochenillerot A ;F +E127;Erythrosin ;F +E129;Allurarot AC ;F +E131;Patentblau V ;F +E132;Indigotin I ;F +E133;Brillantblau FCF ;F +E140;Chlorophylle, Chlorophylline ;F +E141;Kupferkomplexe der Chlorophylle und Chlorophylline ;F +E142;Grün S ;F +E150;Zuckerkulör ;F +E151;Brillantschwarz BN ;F +E153;Pflanzenkohle ;F +E155;Braun HT ;F +E160a;Carotin und Carotinoide ;F +E160b;Annatto (Bixin,Norbixin) ;F +E160c;Paprikaextrakt ;F +E160d;Lycopin ;F +E160e;Beta-apo-8'-Carotinal ;F +E161b;Lutein ;F +E161g;Canthaxanthin ;F +E162;Beetenrot,Betanin ;F +E163;Anthocyane ;F +E170;Calciumcarbonat ;F +E171;Titandioxid ;F +E172;Eisenoxide und Eisenhydroxide ;F +E173;Aluminium ;F +E174;Silber ;F +E175;Gold ;F +E180;Litholrubin BK ;F +E200;Sorbinsäure und Sorbate ;K +E210;Benzoesäure und Benzoate ;K +E214;p-Hydroxybenzoesäureester (pHB-Ester) ;K +E220;Schwefeldioxid und Sulfite ;K,A +E234;Nisin ;K +E235;Natamycin ;K +E239;Hexamethylentetramin ;K +E242;Dimethyldicarbonat ;K +E243;Ethyllaurylarginat ;K +E249;Nitrite ;K,A +E251;Nitrate ;K,A +E260;Essigsäure und Acetate ;S,SR +E270;Milchsäure ;S +E280;Propionsäure und Propionate ;K +E284;Borsäure und Natriumsalz ;K +E290;Kohlendioxid ;TG +E296;Äpfelsäure ;S +E297;Fumarsäure ;S +E300;Ascorbinsäure und Ascorbate ;A,M +E304;Ascorbinsäureester ;A +E306;Tocopherole ;A +E310;Gallate ;A +E315;Isoascorbinsäure und Natriumsalz ;A +E319;tert.-Butylhydrochinon (TBHQ) ;A +E320;Butylhydroxyanisol (BHA) ;A +E321;Butylhydroxytoluol (BHT) ;A +E322;Lecithine ;E +E325;Lactate ;SR +E330;Citronensäure und Citrate ;S,SR +E334;Weinsäure und Tartarte ;S,SR +E338;Phosphorsäure und Phosphate ;S,SCH,SR +E350;Malate ;SR +E353;Metaweinsäure ;ST +E354;Calciumtartrat ;SR,FM +E355;Adipinsäure und Adipate ;S,SR +E363;Bernsteinsäure ;S +E380;Triammoniumcitrat ;SR +E385;Calciumdinatrium-EDTA ;A,ST +E392;Extrakt aus Rosmarin ;A +E400;Alginsäure und Alginate ;V +E406;Agar-Agar ;G +E407;Carrageen ;G +E407a;Verarbeitete Eucheuma-Algen ;G +E410;Johannisbrotkernmehl ;V +E412;Guarkernmehl ;V +E413;Traganth ;G +E414;Gummi arabicum ;V +E415;Xanthan ;V +E416;Karayagummi ;V +E417;Tarakernmehl ;V +E418;Gellan ;V +E420;Sorbit ;SÜ,FH +E421;Mannit ;SÜ +E422;Glycerin ;FH +E423;Octenylbernsteinsäuremodifiziertes Gummi arabicum ;E,ST +E425;Konjak ;V +E426;Sojabohnen-Polyose ;V,E +E427;Cassia-Gummi ;GV +E431;Polyoxyethylen-(40)-stearat ;E +E432;Polysorbate ;E +E440;Pektine ;G +E442;Ammoniumphosphadite ;E +E444;Saccharoseacetatisobutyrat ;ST +E445;Glycerinester aus Wurzelharz ;ST +E450;Di-,Tri- und Polyphosphate ;A,B,SCH +E459;Beta-Cyclodextrin ;FÜ +E460;Cellulosen ;FÜ,V +E470;Salze der Fettsäuren ;E,TM +E471;Mono- und Diglyceride von Fettsäuren ;E,SV +E472;Mono- und Diglyceriden von Speisefettsäuren verestert mit Genusssäuren ;E +E473;Zuckerester von Speisefettsäuren ;E +E474;Zuckerglyceride ;E +E475;Polyglycerinester von Speisefettsäuren ;E +E476;Polyglycerin-Polyricinoleat ;E +E477;Propylenglycolester von Speisefettsäuren ;E +E479b;Thermooxidiertes Sojaöl verestert mit Mono- und Diglyceriden von Fettsäuren ;E,TM +E481;Stearoyllactylate ;E +E483;Stearyltartrat ;E +E491;Sorbitanfettsäureester ;E +E499;Stigmasterinreiche Phytosterine ;ST +E500;Carbonate ;SR,B +E507;Salzsäure und Chloride ;S,GV +E512;Zinnchlorid ;A,ST +E513;Schwefelsäure und Sulfate ;S,SR,FM +E524;Hydroxide ;SR +E529;Oxide ;SR +E535;Ferrocyanide ;ST,TM +E541;Saures Natriumaluminiumphosphat ;B +E551;Siliciumdioxid und Silicate ;TM +E570;Fettsäuren ;E +E574;Gluconsäure und Gluconate ;SR,ST +E585;Eisenlactat ;ST +E586;4-Hexylresorcin ;A +E620;Glutaminsäure und Glutamate ;GV +E626;Guanylsäure und Guanylate ;GV +E630;Inosinsäure und Inosinate ;GV +E634;Ribonucleotide ;GV +E640;Glycin und dessen Natriumsalz ;GV +E641;L-Leucin; +E650;Zinkacetat ;ST +E900;Dimethylpolysiloxan ;SV +E901;Bienenwachs weiß und gelb ;Ü,TM +E902;Candelillawachs ;Ü,TM +E903;Carnaubawachs ;Ü,TM +E904;Schellack ;Ü,TM +E905;Mikrokristallines Wachs ;Ü,TM +E907;Hydriertes Poly-1-decen ;Ü +E914;Polyethylenwachsoxidate ;Ü,TM +E920;L-Cystein ;M +E927b;Carbamid ;ST +E938;Argon ;TG +E939;Helium ;TG +E941;Stickstoff ;TG +E942;Distickstoffmonoxid ;TG +E943;Butan,Isobutan ;TG +E944;Propan ;TG +E948;Sauerstoff ;TG +E949;Wasserstoff ;TG +E950;Acesulfam-K ;SÜ,GV +E951;Aspartam ;SÜ,GV +E952;Cyclamate ;SÜ +E953;Isomalt ;SÜ +E954;Saccharin ;SÜ +E955;Sucralose ;SÜ +E957;Thaumatin ;SÜ,GV +E959;Neohesperidin DC ;SÜ +E960;Steviolglycoside ;SÜ +E961;Neotam ;SÜ +E962;Aspartam-Acesulfamsalz ;SÜ +E965;Maltit ;SÜ +E966;Lactit ;SÜ +E967;Xylit ;SÜ +E968;Erythrit ;SÜ +E969;Advantam ;SÜ +E999;Quillajaextrakt ;ST +E1103;Invertase ;FH +E1105;Lysozym ;K +E1200;Polydextrose ;FÜ +E1201;Polyvinylpyrrolidon ;ST +E1202;Polyvinylpolypyrrolidon ;ST +E1203;Polyvinylalkohol (PVA) ;Ü +E1204;Pullulan ;Ü,V +E1205;Basisches Methacrylat-Copolymer ;Ü +E1206;Neutrales Methacrylat-Copolymer ;Ü +E1207;Anionisches Methacrylat-Copolymer ;Ü +E1208;Polyvinylpyrrolidon-Vinylacetat-Copolymer ;Ü +E1209;Polyvinyl alcohol-polyethylene glycol-graft-copolymer ;Ü +E1404;oxidierte Stärke ;MS,V +E1410;chemisch modifizierte Stärken ;MS,V +E1505;Triethylcitrat ;TM +E1517;Glycerindiacetat ;TM +E1518;Glycerintriacetat ;TM +E1519;Benzylalkohol ;TM +E1520;1,2-Propandiol (Propylenglycol) ;TM +E1521;Polyethylenglycol ;Ü diff --git a/Programmentwurf/MD_Produkte_Enummern.csv b/Programmentwurf/MD_Produkte_Enummern.csv new file mode 100644 index 0000000..2a557c4 --- /dev/null +++ b/Programmentwurf/MD_Produkte_Enummern.csv @@ -0,0 +1,28 @@ +Apfeltasche;E1412,E1442,E410,E500,E920,E471,E330 +Apfeltüte;E300,E501 +Balsamico Dressing;E224,E150d,E262,E500,E415 +Barbecue Sauce;E415,E1404 +Big Mac;E471,E472e,E300,E481,E202,E263,E331,E330,E415,E322, E160a,E160c +Butter;NULL +Cheeseburger;E471,E472e,E330,E481,E300,E331,E202,E263,E322,E160a,E160c +Chicken McNuggets;E450,E500,E341 +Chili Sauce;E415 +Curry Sauce;E415 +Hamburger;E471,E472e,E330,E481,E300,E202,E263 +Hamburger Royal TS;E471,E472e,E300,E481,E331,E330,E415,E202,E322,E160a,E160c,E1404 +Ketchup;NULL +Konfituere Aprikose;E330,E440 +Konfituere Erdbeere;E330,E440 +Mayonnaise (80%);NULL +McChicken;E471,E472e,E300,E481,E461,E415,E202,E1404,E450,E500,E461,E1404 +McCroissant;E160a,E471,E472e,E412,E262,E260,E300,E331,E330 +McRib;E471,E472e,E260,E262,E300,E481,E202,E263,E415,E330 +McSundae Karamell;E412,E407,E471,E331,E400 +McSundae Schoko;E412,E407,E471,E331 +Milchshake Schokogeschmack;E412,E407,E410,E300,E471 +Milchshake Vanillegeschmack;E412,E407,E410,E300 +Pommes Frites;E450a +Produkt;Inhaltsstoffe +Sauce suesssauer;E415,E1404 +Senfsauce;E415,E1404 +Snack Salat Classic;NULL diff --git a/Programmentwurf/MD_Produkte_Naehrwerte.csv b/Programmentwurf/MD_Produkte_Naehrwerte.csv new file mode 100644 index 0000000..c8802ae --- /dev/null +++ b/Programmentwurf/MD_Produkte_Naehrwerte.csv @@ -0,0 +1,31 @@ +Produkt;Menge;Menge;kcal;EW;KH;Fett +;g;ml;;g;g;g +Apfeltasche;100 g;-;276;3.0;32.0;15.0 +Balsamico Dressing;100 g;-;111;0.0;12.0;7.0 +Barbecue Sauce;-;100 ml;162;1.0;37.0;1.0 +Big Mac;100 g;-;238;12.0;21.0;12.0 +Butter;100 g;-;739;1.0;1.0;83.0 +Cheeseburger;100 g;-;260;14.0;27.0;11.0 +Chicken McNuggets;100 g;-;248;17.0;17.0;13.0 +Chili Sauce;-;100 ml;224;1.0;53.0;1.0 +Curry Sauce;-;100 ml;156;1.0;34.0;1.0 +Hamburger;100 g;-;246;13.0;30.0;9.0 +Hamburger Royal TS;100 g;-;226;12.0;14.0;14.0 +Ketchup;-;100 ml;122;1.0;28.0;0.0 +Konfituere Aprikose;100 g;-;257;0.0;63.0;0.0 +Konfituere Erdbeere;100 g;-;252;0.0;61.0;0.0 +Mayonnaise (80%);-;100 ml;737;1.0;81.0;2.0 +McChicken;100 g;-;252;12.0;25.0;12.0 +McCroissant;100 g;-;325;13.0;25.0;19.0 +McRib;100 g;-;231;13.0;22.0;11.0 +McSundae Karamell;100 g;-;178;5.0;28.0;5.0 +McSundae Schoko;100 g;-;178;4.0;24.0;7.0 +Milchshake Schokogeschmack;100 g;-;125;4.0;19.0;3.0 +Milchshake Vanillegeschmack;100 g;-;123;4.0;19.0;3.0 +Pommes Frites;100 g;-;308;4.0;38.0;16.0 +Sauce suesssauer;-;100 ml;172;0.0;40.0;1.0 +Senfsauce;-;100 ml;217;2.0;25.0;12.0 +;;;;;; +Modifiziert, ursprüngliche Tabelle aus:;;;;;; +https://www.kalorientabelle.org/kalorien_mcdonalds/kalorien+tabelle+mc+donalds.php;;;;;; +abgerufen am: 05.02.2021;;;;;; diff --git a/Programmentwurf/MD_Produkte_Portionen.csv b/Programmentwurf/MD_Produkte_Portionen.csv new file mode 100644 index 0000000..b9f687e --- /dev/null +++ b/Programmentwurf/MD_Produkte_Portionen.csv @@ -0,0 +1,38 @@ +Produkt;Menge;Menge +;g;ml +Apfeltasche;85 g;- +Balsamico Dressing;30 g;- +Barbecue Sauce;-;25 ml +Big Mac;211 g;- +Cheeseburger;120 g;- +Chicken McNuggets;330 g;- +Chicken McNuggets;99 g;- +Chicken McNuggets;149 g;- +Chili Sauce;-;25 ml +Curry Sauce;-;25 ml +Hamburger;105 g;- +Hamburger Royal TS;250 g;- +Ketchup;-;20 ml +Konfituere Aprikose;25 g;- +Konfituere Erdbeere;25 g;- +Mayonnaise (80%);-;20 ml +McChicken;187 g;- +McCroissant;95 g;- +McRib;210 g;- +McSundae Karamell;160 g;- +McSundae Schoko;160 g;- +Milchshake Erdbeergeschmack;-;300 ml +Milchshake Erdbeergeschmack;-;500 ml +Milchshake Schokogeschmack;240 g;- +Milchshake Schokogeschmack;400 g;- +Milchshake Vanillegeschmack;240 g;- +Milchshake Vanillegeschmack;400 g;- +Pommes Frites;152 g;- +Pommes Frites;76 g;- +Pommes Frites;108 g;- +Sauce suesssauer;-;25 ml +Senfsauce;-;25 ml +;; +Modifiziert, ursprüngliche Tabelle aus:;; +https://www.kalorientabelle.org/kalorien_mcdonalds/kalorien+tabelle+mc+donalds.php;; +abgerufen am: 05.02.2021;; diff --git a/Programmentwurf/MD_produkte_Allergene.csv b/Programmentwurf/MD_produkte_Allergene.csv new file mode 100644 index 0000000..e9de782 --- /dev/null +++ b/Programmentwurf/MD_produkte_Allergene.csv @@ -0,0 +1,15 @@ +Produkt;Big Mac;Cheeseburger;Chicken McNuggets;Hamburger;Hamburger Royal TS;McChicken;McRib;Pommes Frites;Apfeltasche;McSundae Karamell;McSundae Schoko;Milchshake Erdbeergeschmack;Milchshake Schokogeschmack;Milchshake Vanillegeschmack;Butter;Konfituere Aprikose;Konfituere Erdbeere;McCroissant;Balsamico Dressing;Barbecue Sauce;Chili Sauce;Curry Sauce;Ketchup;Mayonnaise (80%);Sauce suesssauer;Senfsauce;Snack Salat Classic;Apfeltüte +Glutenhaltiges Getreide;1;1;1;1;1;1;1;0;1;0;0;0;1;1;0;0;0;1;0;0;0;0;0;0;1;0;0;0 +Krebstiere;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +Eier;1;0;0;0;1;1;0;0;0;0;0;0;0;0;0;0;0;1;0;0;0;0;0;1;0;1;0;0 +Fische;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +Erdnuesse;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +Sojabohnen;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;0;0 +Milch (einschl.;1;1;0;0;1;0;0;0;0;1;1;1;1;1;1;0;0;1;0;0;0;0;0;0;0;0;0;0 +Schalenfruechte;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +Sellerie;0;0;1;0;0;0;1;0;0;0;0;0;0;0;0;0;0;0;0;1;0;0;0;0;1;0;0;0 +Senf;1;1;0;1;1;1;1;0;0;0;0;0;0;0;0;0;0;0;0;1;0;1;0;1;0;1;0;0 +Sesamsamen;1;0;0;0;1;1;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +Schwefeldioxid und Sulphite;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;0;0;0;0;0;0;0;0 +Lupinen;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 +Weichtiere;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0 diff --git a/Programmentwurf/Pruefungsleistung_v1.0.pdf b/Programmentwurf/Pruefungsleistung_v1.0.pdf new file mode 100644 index 0000000..52bd5ff Binary files /dev/null and b/Programmentwurf/Pruefungsleistung_v1.0.pdf differ diff --git a/Programmentwurf/Zusatzstoffe_Klassen.csv b/Programmentwurf/Zusatzstoffe_Klassen.csv new file mode 100644 index 0000000..9180df5 --- /dev/null +++ b/Programmentwurf/Zusatzstoffe_Klassen.csv @@ -0,0 +1,23 @@ +Antioxidationsmittel;A +Backtriebmittel;B +Emulgator;E +Farbstoff;F +Festigungsmittel;FM +Feuchthaltemittel;FH +Füllstoff;FÜ +Geliermittel;G +Geschmacksverstärker;GV +Konservierungsstoff;K +Mehlbehandlungsmittel;M +Modifizierte Stärke;MS +Säuerungsmittel;S +Säureregulator;SR +Schaumverhüter;SV +Schmelzsalz;SCH +Stabilisator;ST +Süßungsmittel;SÜ +Trägerstoff;T +Treibgas;TG +Trennmittel;TM +Überzugsmittel;Ü +Verdickungsmittel;V