mirror of
https://gitlab.com/harald.mueller/aktuelle.kurse.git
synced 2024-11-27 20:21:56 +01:00
muh
This commit is contained in:
parent
3249c11d75
commit
441c8b4af4
@ -3,7 +3,7 @@
|
|||||||
[> **Modulidentifikation** ](https://www.modulbaukasten.ch/modul/1a75c9da-716c-eb11-b0b1-000d3a830b2b)
|
[> **Modulidentifikation** ](https://www.modulbaukasten.ch/modul/1a75c9da-716c-eb11-b0b1-000d3a830b2b)
|
||||||
|
|
||||||
## LB1 (25%, Erklär-Dokument)
|
## LB1 (25%, Erklär-Dokument)
|
||||||
[>Erklären Sie in diesem Dokument folgende Themen:](./erklaeren-der-themen.txt)
|
[-> Erklären Sie in diesem Dokument folgende Themen:](./erklaeren-der-themen.txt)
|
||||||
- 1 Design
|
- 1 Design
|
||||||
- 2 Sicherheit
|
- 2 Sicherheit
|
||||||
- 3 Realisierung
|
- 3 Realisierung
|
||||||
|
BIN
m151/docs/LB-151_Kompetenzraster_Vorlage_V3_we-S-final.doc
Normal file
BIN
m151/docs/LB-151_Kompetenzraster_Vorlage_V3_we-S-final.doc
Normal file
Binary file not shown.
BIN
m151/docs/Projektauftrag.doc
Normal file
BIN
m151/docs/Projektauftrag.doc
Normal file
Binary file not shown.
BIN
m151/docs/Projektauftrag_V3.pdf
Normal file
BIN
m151/docs/Projektauftrag_V3.pdf
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/5-Tier Architektur.pdf
Normal file
BIN
m151/docs/anleitungen/5-Tier Architektur.pdf
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/Anleitung_Auktion.pdf
Normal file
BIN
m151/docs/anleitungen/Anleitung_Auktion.pdf
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/Argon2 Passwort Hash Erweiterungen.doc
Normal file
BIN
m151/docs/anleitungen/Argon2 Passwort Hash Erweiterungen.doc
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/DB_Anbindung_GG_V1_2.pdf
Normal file
BIN
m151/docs/anleitungen/DB_Anbindung_GG_V1_2.pdf
Normal file
Binary file not shown.
Binary file not shown.
BIN
m151/docs/anleitungen/N-Tier Architektur.pdf
Normal file
BIN
m151/docs/anleitungen/N-Tier Architektur.pdf
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/PDO-PHP DATA OBJECTS.ppt
Normal file
BIN
m151/docs/anleitungen/PDO-PHP DATA OBJECTS.ppt
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/PHP die meist genutzte Serversprache.doc
Normal file
BIN
m151/docs/anleitungen/PHP die meist genutzte Serversprache.doc
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/Reguläre Ausdrücke in PHP nutzen.doc
Normal file
BIN
m151/docs/anleitungen/Reguläre Ausdrücke in PHP nutzen.doc
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/SSL.docx
Normal file
BIN
m151/docs/anleitungen/SSL.docx
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/Session.pdf
Normal file
BIN
m151/docs/anleitungen/Session.pdf
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/Transaktionssichere Abfragen.doc
Normal file
BIN
m151/docs/anleitungen/Transaktionssichere Abfragen.doc
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/UTF8.doc
Normal file
BIN
m151/docs/anleitungen/UTF8.doc
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/WEB Services 1.pdf
Normal file
BIN
m151/docs/anleitungen/WEB Services 1.pdf
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
<https://www.peterkropff.de/site/php/pdo.htm>
|
BIN
m151/docs/anleitungen/mysql5_StoredProcedure.pdf
Normal file
BIN
m151/docs/anleitungen/mysql5_StoredProcedure.pdf
Normal file
Binary file not shown.
BIN
m151/docs/anleitungen/webservicestutorial.pdf
Normal file
BIN
m151/docs/anleitungen/webservicestutorial.pdf
Normal file
Binary file not shown.
BIN
m151/docs/schuelerbeitraege/Architekturen.pdf
Normal file
BIN
m151/docs/schuelerbeitraege/Architekturen.pdf
Normal file
Binary file not shown.
BIN
m151/docs/schuelerbeitraege/DB_Abfragen.pdf
Normal file
BIN
m151/docs/schuelerbeitraege/DB_Abfragen.pdf
Normal file
Binary file not shown.
BIN
m151/docs/schuelerbeitraege/DB_Modell.pdf
Normal file
BIN
m151/docs/schuelerbeitraege/DB_Modell.pdf
Normal file
Binary file not shown.
BIN
m151/docs/schuelerbeitraege/Datenbankhandling.pdf
Normal file
BIN
m151/docs/schuelerbeitraege/Datenbankhandling.pdf
Normal file
Binary file not shown.
BIN
m151/docs/schuelerbeitraege/Kooperation.pdf
Normal file
BIN
m151/docs/schuelerbeitraege/Kooperation.pdf
Normal file
Binary file not shown.
BIN
m151/docs/schuelerbeitraege/PHP7.pdf
Normal file
BIN
m151/docs/schuelerbeitraege/PHP7.pdf
Normal file
Binary file not shown.
BIN
m151/docs/schuelerbeitraege/Projektauftrag.pdf
Normal file
BIN
m151/docs/schuelerbeitraege/Projektauftrag.pdf
Normal file
Binary file not shown.
BIN
m151/docs/schuelerbeitraege/SCHOOLTOOL_Dokumentation (1).pdf
Normal file
BIN
m151/docs/schuelerbeitraege/SCHOOLTOOL_Dokumentation (1).pdf
Normal file
Binary file not shown.
BIN
m151/docs/schuelerbeitraege/SSL-Verschlüsselung.pdf
Normal file
BIN
m151/docs/schuelerbeitraege/SSL-Verschlüsselung.pdf
Normal file
Binary file not shown.
BIN
m151/docs/schuelerbeitraege/Webservices.pdf
Normal file
BIN
m151/docs/schuelerbeitraege/Webservices.pdf
Normal file
Binary file not shown.
@ -0,0 +1,7 @@
|
|||||||
|
1; Buchhaltung
|
||||||
|
2; Lager
|
||||||
|
10; Marketing
|
||||||
|
; Fuhrpark
|
||||||
|
; Logistik
|
||||||
|
3; Labor Überwachung
|
||||||
|
; Labor Entwicklung
|
@ -0,0 +1,7 @@
|
|||||||
|
1; Buchhaltung
|
||||||
|
2; Lager
|
||||||
|
10; Marketing
|
||||||
|
; Fuhrpark
|
||||||
|
; Logistik
|
||||||
|
3; Labor Überwachung
|
||||||
|
; Labor Entwicklung
|
27
m151/docs/uebungsunterlagen/01 SQL-Übung Firma/DDL_V2.txt
Normal file
27
m151/docs/uebungsunterlagen/01 SQL-Übung Firma/DDL_V2.txt
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
CREATE TABLE`firma`.`tbl_Projekte` (
|
||||||
|
`ID_Projekte` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||||
|
`ProjektBezeichnung` VARCHAR( 50)NOT NULL ,
|
||||||
|
`FS_Mitarbeiter` INT NOT NULL
|
||||||
|
) ENGINE= InnoDB;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE`firma`.`tbl_TT_Mitarbeiter_Projekte` (
|
||||||
|
`FS_Mitarbeiter` INT NOT NULL ,
|
||||||
|
`FS_Projekte` INT NOT NULL ,
|
||||||
|
PRIMARY KEY (`FS_Mitarbeiter` ,`FS_Projekte`)
|
||||||
|
) ENGINE= InnoDB;
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE`firma`.`tbl_Mitarbeiter` (
|
||||||
|
`ID_Mitarbeiter` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||||
|
`FamName` VARCHAR( 50)NOT NULL ,
|
||||||
|
`Vorname` VARCHAR( 30)NOT NULL ,
|
||||||
|
`FS_Abteilung` INT NOT NULL
|
||||||
|
) ENGINE= InnoDB;
|
||||||
|
|
||||||
|
CREATE TABLE `firma`.`tbl_Abteilungen` (
|
||||||
|
`ID_Abteilung` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||||
|
`AbtBezeichnung` VARCHAR( 30)NOT NULL
|
||||||
|
) ENGINE= InnoDB;
|
||||||
|
|
5341
m151/docs/uebungsunterlagen/01 SQL-Übung Firma/PLZ_ORT.csv
Normal file
5341
m151/docs/uebungsunterlagen/01 SQL-Übung Firma/PLZ_ORT.csv
Normal file
File diff suppressed because it is too large
Load Diff
BIN
m151/docs/uebungsunterlagen/01 SQL-Übung Firma/firma.pdf
Normal file
BIN
m151/docs/uebungsunterlagen/01 SQL-Übung Firma/firma.pdf
Normal file
Binary file not shown.
1072
m151/docs/uebungsunterlagen/01 SQL-Übung Firma/mitarbeiter.sql
Normal file
1072
m151/docs/uebungsunterlagen/01 SQL-Übung Firma/mitarbeiter.sql
Normal file
File diff suppressed because it is too large
Load Diff
5026
m151/docs/uebungsunterlagen/01 SQL-Übung Firma/tbl_plz_ort.sql
Normal file
5026
m151/docs/uebungsunterlagen/01 SQL-Übung Firma/tbl_plz_ort.sql
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
5010
m151/docs/uebungsunterlagen/02 SQL-Übung allgemein/backpacker.sql
Normal file
5010
m151/docs/uebungsunterlagen/02 SQL-Übung allgemein/backpacker.sql
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
118
m151/docs/uebungsunterlagen/03 SQL_JOIN_Übung/SQL_Demo.sql
Normal file
118
m151/docs/uebungsunterlagen/03 SQL_JOIN_Übung/SQL_Demo.sql
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
-- phpMyAdmin SQL Dump
|
||||||
|
-- version 3.3.9
|
||||||
|
-- http://www.phpmyadmin.net
|
||||||
|
--
|
||||||
|
-- Host: localhost
|
||||||
|
-- Erstellungszeit: 26. Februar 2013 um 20:57
|
||||||
|
-- Server Version: 5.5.8
|
||||||
|
-- PHP-Version: 5.3.5
|
||||||
|
|
||||||
|
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
||||||
|
|
||||||
|
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||||
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||||
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||||
|
/*!40101 SET NAMES utf8 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Datenbank: `SQL_Demo`
|
||||||
|
--
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Tabellenstruktur für Tabelle `tbl_artikel`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `tbl_artikel` (
|
||||||
|
`artikel_ID` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`Artikelname` text NOT NULL,
|
||||||
|
`Preis` float DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`artikel_ID`)
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Daten für Tabelle `tbl_artikel`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `tbl_artikel` VALUES(1, 'Schrauben M5', 2.5);
|
||||||
|
INSERT INTO `tbl_artikel` VALUES(2, 'Muttern M%', 1.15);
|
||||||
|
INSERT INTO `tbl_artikel` VALUES(3, 'Gewindestangen M5', 5.6);
|
||||||
|
INSERT INTO `tbl_artikel` VALUES(4, 'Flügelschrauben E5', NULL);
|
||||||
|
INSERT INTO `tbl_artikel` VALUES(5, 'Gewindebohrer SM70', NULL);
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Tabellenstruktur für Tabelle `tbl_personen`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `tbl_personen` (
|
||||||
|
`Person_ID` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`Name` varchar(40) NOT NULL DEFAULT '',
|
||||||
|
`Vorname` varchar(25) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`Person_ID`)
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='enthält die Personen' AUTO_INCREMENT=9 ;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Daten für Tabelle `tbl_personen`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `tbl_personen` VALUES(1, 'Müller', 'Maria');
|
||||||
|
INSERT INTO `tbl_personen` VALUES(2, 'Malcom', 'Gustav');
|
||||||
|
INSERT INTO `tbl_personen` VALUES(3, 'Peronik', 'Lars');
|
||||||
|
INSERT INTO `tbl_personen` VALUES(4, 'Dolber', 'Heiko');
|
||||||
|
INSERT INTO `tbl_personen` VALUES(5, 'Knosdz', 'Jana');
|
||||||
|
INSERT INTO `tbl_personen` VALUES(6, 'Müller', 'Manfred');
|
||||||
|
INSERT INTO `tbl_personen` VALUES(7, 'Müller', 'Ruedi');
|
||||||
|
INSERT INTO `tbl_personen` VALUES(8, 'Müller', 'Chiara');
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Tabellenstruktur für Tabelle `tbl_rechnungen`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `tbl_rechnungen` (
|
||||||
|
`Rechnungs_ID` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`Datum` date DEFAULT NULL,
|
||||||
|
`Betrag` float DEFAULT NULL,
|
||||||
|
`Person_FS` int(11) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`Rechnungs_ID`)
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='enthält die Rechnungen' AUTO_INCREMENT=6 ;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Daten für Tabelle `tbl_rechnungen`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `tbl_rechnungen` VALUES(1, '2003-02-04', 588.32, 1);
|
||||||
|
INSERT INTO `tbl_rechnungen` VALUES(2, '2003-02-21', 4855.2, 1);
|
||||||
|
INSERT INTO `tbl_rechnungen` VALUES(3, '2003-03-01', 5800, 2);
|
||||||
|
INSERT INTO `tbl_rechnungen` VALUES(4, '2003-02-29', 5860.2, 3);
|
||||||
|
INSERT INTO `tbl_rechnungen` VALUES(5, '2012-12-23', 580.6, NULL);
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Tabellenstruktur für Tabelle `tbl_trans`
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE `tbl_trans` (
|
||||||
|
`FS_Rechnung` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`FS_Artikel` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`Anzahl` int(11) NOT NULL DEFAULT '0'
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Daten für Tabelle `tbl_trans`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `tbl_trans` VALUES(1, 1, 4);
|
||||||
|
INSERT INTO `tbl_trans` VALUES(2, 2, 22);
|
||||||
|
INSERT INTO `tbl_trans` VALUES(3, 3, 55);
|
||||||
|
INSERT INTO `tbl_trans` VALUES(1, 1, 2);
|
||||||
|
INSERT INTO `tbl_trans` VALUES(3, 1, 3);
|
||||||
|
INSERT INTO `tbl_trans` VALUES(1, 2, 5);
|
||||||
|
INSERT INTO `tbl_trans` VALUES(1, 3, 9);
|
||||||
|
INSERT INTO `tbl_trans` VALUES(0, 2, 5);
|
54
m151/docs/uebungsunterlagen/03 SQL_JOIN_Übung/SQL_JOINS.txt
Normal file
54
m151/docs/uebungsunterlagen/03 SQL_JOIN_Übung/SQL_JOINS.txt
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
|
||||||
|
SELECT COUNT(FS_Rechnung) FROM tbl_trans
|
||||||
|
SELECT name, COUNT(vorname) FROM tbl_personen group by name
|
||||||
|
SELECT FS_Rechnung, COUNT(FS_Artikel) FROM tbl_trans GROUP BY FS_Rechnung
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SELECT * FROM tbl_personen, tbl_rechnungen
|
||||||
|
Beispiel für einen Full-Join (kartesisches Produkt
|
||||||
|
|
||||||
|
SELECT * FROM tbl_personen, tbl_rechnungen
|
||||||
|
WHERE tbl_personen.Person_ID = tbl_rechnungen.Person_FS
|
||||||
|
|
||||||
|
|
||||||
|
SELECT * FROM tbl_personen INNER JOIN tbl_rechnungen
|
||||||
|
ON tbl_personen.Person_ID = tbl_rechnungen.Person_FS
|
||||||
|
|
||||||
|
SELECT * FROM tbl_personen LEFT JOIN tbl_rechnungen
|
||||||
|
ON tbl_personen.Person_ID = tbl_rechnungen.Person_FS
|
||||||
|
|
||||||
|
SELECT * FROM tbl_personen RIGHT JOIN tbl_rechnungen
|
||||||
|
ON tbl_personen.Person_ID = tbl_rechnungen.Person_FS
|
||||||
|
|
||||||
|
|
||||||
|
SELECT * FROM tbl_personen AS p INNER JOIN tbl_rechnungen AS r
|
||||||
|
ON p.Person_ID = r.Person_FS
|
||||||
|
INNER JOIN tbl_trans AS t ON r.Rechnungs_ID = t.FS_Rechnung
|
||||||
|
ORDER BY Person_ID
|
||||||
|
|
||||||
|
SELECT * FROM tbl_personen AS p INNER JOIN tbl_rechnungen AS r
|
||||||
|
ON p.Person_ID = r.Person_FS
|
||||||
|
INNER JOIN tbl_trans AS t ON r.Rechnungs_ID = t.FS_Rechnung
|
||||||
|
INNER JOIN tbl_artikel AS a ON t.FS_Artikel = a.Artikel_ID
|
||||||
|
ORDER BY Person_ID
|
||||||
|
|
||||||
|
|
||||||
|
SELECT * FROM tbl_personen AS p INNER JOIN tbl_rechnungen AS r
|
||||||
|
ON p.Person_ID = r.Person_FS
|
||||||
|
INNER JOIN tbl_trans AS t ON r.Rechnungs_ID = t.FS_Rechnung
|
||||||
|
LEFT OUTER JOIN tbl_artikel AS a ON t.FS_Artikel = a.Artikel_ID
|
||||||
|
ORDER BY Person_ID
|
||||||
|
|
||||||
|
|
||||||
|
SELECT * FROM tbl_personen AS p INNER JOIN tbl_rechnungen AS r
|
||||||
|
ON p.Person_ID = r.Person_FS
|
||||||
|
LEFT OUTER JOIN tbl_trans AS t ON r.Rechnungs_ID = t.FS_Rechnung
|
||||||
|
LEFT OUTER JOIN tbl_artikel AS a ON t.FS_Artikel = a.Artikel_ID
|
||||||
|
ORDER BY Person_ID
|
||||||
|
|
||||||
|
SELECT * FROM tbl_personen AS p LEFT OUTER JOIN tbl_rechnungen AS r
|
||||||
|
ON p.Person_ID = r.Person_FS
|
||||||
|
LEFT OUTER JOIN tbl_trans AS t ON r.Rechnungs_ID = t.FS_Rechnung
|
||||||
|
LEFT OUTER JOIN tbl_artikel AS a ON t.FS_Artikel = a.Artikel_ID
|
||||||
|
ORDER BY Person_ID
|
BIN
m151/docs/uebungsunterlagen/03 SQL_JOIN_Übung/SQL_JOIN_Demo.pdf
Normal file
BIN
m151/docs/uebungsunterlagen/03 SQL_JOIN_Übung/SQL_JOIN_Demo.pdf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user