Christian Pape
8 years ago
commit
2812f5cf3e
45 changed files with 62622 additions and 0 deletions
-
6.gitignore
-
33pom.xml
-
BINsrc/lib/ojdbc7.jar
-
76src/main/java/hsfulda/de/App.java
-
79src/main/java/hsfulda/de/FedConnection.java
-
14src/main/java/hsfulda/de/FedConnectionInterface.java
-
9src/main/java/hsfulda/de/FedException.java
-
7src/main/java/hsfulda/de/FedPseudoDriver.java
-
4src/main/java/hsfulda/de/FedPseudoDriverInterface.java
-
91src/main/java/hsfulda/de/FedResultSet.java
-
16src/main/java/hsfulda/de/FedResultSetInterface.java
-
59src/main/java/hsfulda/de/FedStatement.java
-
10src/main/java/hsfulda/de/FedStatementInterface.java
-
159src/main/java/hsfulda/de/FedTestEnvironment.java
-
111src/main/resources/Test/CREPARTABS.SQL
-
15src/main/resources/Test/DRPTABS.SQL
-
28src/main/resources/Test/INSERTAIRLINES.SQL
-
103src/main/resources/Test/INSERTAIRPORTS.SQL
-
214src/main/resources/Test/INSERTBOOKINGS.SQL
-
118src/main/resources/Test/INSERTFLIGHTS.SQL
-
95src/main/resources/Test/INSERTPASSENGERS.SQL
-
35src/main/resources/Test/PARDELS.SQL
-
90src/main/resources/Test/PARINSERTS.SQL
-
36src/main/resources/Test/PARSELS1OR.SQL
-
30src/main/resources/Test/PARSELS1T.SQL
-
28src/main/resources/Test/PARSELS1TGP.SQL
-
50src/main/resources/Test/PARSELSJOIN1.SQL
-
36src/main/resources/Test/PARUPDS.SQL
-
120src/main/resources/Validation/CREPARTABS.SQL
-
15src/main/resources/Validation/DRPTABS.SQL
-
50072src/main/resources/Validation/INSERT-BUCHUNG-10K-5.SQL
-
10004src/main/resources/Validation/INSERT-PASSAGIER-10K-5.SQL
-
28src/main/resources/Validation/INSERTAIRLINES.SQL
-
103src/main/resources/Validation/INSERTAIRPORTS.SQL
-
216src/main/resources/Validation/INSERTBOOKINGS.SQL
-
118src/main/resources/Validation/INSERTFLIGHTS.SQL
-
93src/main/resources/Validation/INSERTPASSENGERS.SQL
-
29src/main/resources/Validation/PARSEL1TGPLarge.SQL
-
18src/main/resources/Validation/PARSEL1TGPSmall.SQL
-
52src/main/resources/Validation/PARSEL1TLarge.SQL
-
29src/main/resources/Validation/PARSEL1TOR.SQL
-
30src/main/resources/Validation/PARSEL1TSmall.SQL
-
66src/main/resources/Validation/PARSELJOINNormal.SQL
-
39src/main/resources/Validation/PARSELJOINSpecial.SQL
-
38src/test/java/hsfulda/de/AppTest.java
@ -0,0 +1,6 @@ |
|||||
|
*.iws |
||||
|
*.iml |
||||
|
*.ipr |
||||
|
.idea |
||||
|
target/ |
||||
|
.DS_Store |
@ -0,0 +1,33 @@ |
|||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
|
||||
|
<groupId>hsfulda.de</groupId> |
||||
|
<artifactId>fed-database</artifactId> |
||||
|
<version>1.0-SNAPSHOT</version> |
||||
|
<packaging>jar</packaging> |
||||
|
|
||||
|
<name>fed-database</name> |
||||
|
<url>http://maven.apache.org</url> |
||||
|
|
||||
|
<properties> |
||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
||||
|
</properties> |
||||
|
|
||||
|
<dependencies> |
||||
|
<dependency> |
||||
|
<groupId>com.oracle</groupId> |
||||
|
<artifactId>ojdbc</artifactId> |
||||
|
<version>LATEST</version> |
||||
|
<scope>system</scope> |
||||
|
<systemPath>${basedir}/src/lib/ojdbc7.jar</systemPath> |
||||
|
</dependency> |
||||
|
|
||||
|
<dependency> |
||||
|
<groupId>junit</groupId> |
||||
|
<artifactId>junit</artifactId> |
||||
|
<version>3.8.1</version> |
||||
|
<scope>test</scope> |
||||
|
</dependency> |
||||
|
</dependencies> |
||||
|
</project> |
@ -0,0 +1,76 @@ |
|||||
|
package hsfulda.de; |
||||
|
|
||||
|
/** |
||||
|
* Hello world! |
||||
|
* |
||||
|
*/ |
||||
|
public class App |
||||
|
{ |
||||
|
public static void main(String[] args) { |
||||
|
|
||||
|
String usernameTest = "VDBS41"; |
||||
|
String passwordTest = "VDBS41"; |
||||
|
|
||||
|
String usernameValidation = "VDBS42"; |
||||
|
String passwordValidation = "VDBS42"; |
||||
|
|
||||
|
FedConnection fedConnection; |
||||
|
|
||||
|
/* |
||||
|
* Test schema |
||||
|
*/ |
||||
|
try { |
||||
|
fedConnection = (new FedPseudoDriver()).getConnection(usernameTest, passwordTest); |
||||
|
|
||||
|
FedTestEnvironment fedTestEvironment = new FedTestEnvironment(fedConnection); |
||||
|
|
||||
|
fedTestEvironment.run("Test/DRPTABS.SQL", false); |
||||
|
fedTestEvironment.run("Test/CREPARTABS.SQL", false); |
||||
|
fedTestEvironment.run("Test/INSERTAIRPORTS.SQL", false); |
||||
|
fedTestEvironment.run("Test/INSERTAIRLINES.SQL", false); |
||||
|
fedTestEvironment.run("Test/INSERTPASSENGERS.SQL", false); |
||||
|
fedTestEvironment.run("Test/INSERTFLIGHTS.SQL", false); |
||||
|
fedTestEvironment.run("Test/INSERTBOOKINGS.SQL", false); |
||||
|
|
||||
|
fedTestEvironment.run("Test/PARSELS1T.SQL", true); |
||||
|
fedTestEvironment.run("Test/PARSELS1TGP.SQL", true); |
||||
|
fedTestEvironment.run("Test/PARSELS1OR.SQL", true); |
||||
|
fedTestEvironment.run("Test/PARSELSJOIN1.SQL", true); |
||||
|
fedTestEvironment.run("Test/PARUPDS.SQL", true); |
||||
|
fedTestEvironment.run("Test/PARINSERTS.SQL", true); |
||||
|
fedTestEvironment.run("Test/PARDELS.SQL", true); |
||||
|
} catch (FedException fedException) { |
||||
|
fedException.printStackTrace(); |
||||
|
} |
||||
|
|
||||
|
/* |
||||
|
* Validation schema |
||||
|
*/ |
||||
|
try { |
||||
|
fedConnection = (new FedPseudoDriver()).getConnection(usernameValidation, passwordValidation); |
||||
|
|
||||
|
FedTestEnvironment fedTestEvironment = new FedTestEnvironment(fedConnection); |
||||
|
|
||||
|
fedTestEvironment.run("Validation/DRPTABS.SQL", false); |
||||
|
fedTestEvironment.run("Validation/CREPARTABS.SQL", false); |
||||
|
fedTestEvironment.run("Validation/INSERTAIRPORTS.SQL", false); |
||||
|
fedTestEvironment.run("Validation/INSERTAIRLINES.SQL", false); |
||||
|
fedTestEvironment.run("Validation/INSERTPASSENGERS.SQL", false); |
||||
|
fedTestEvironment.run("Validation/INSERTFLIGHTS.SQL", false); |
||||
|
fedTestEvironment.run("Validation/INSERTBOOKINGS.SQL", false); |
||||
|
|
||||
|
fedTestEvironment.run("Validation/INSERT-PASSAGIER-10K-5.SQL", false); |
||||
|
fedTestEvironment.run("Validation/INSERT-BUCHUNG-10K-5.SQL", false); |
||||
|
|
||||
|
fedTestEvironment.run("Validation/PARSEL1TSmall.SQL", true); |
||||
|
fedTestEvironment.run("Validation/PARSEL1TLarge.SQL", true); |
||||
|
fedTestEvironment.run("Validation/PARSEL1TGPSmall.SQL", true); |
||||
|
fedTestEvironment.run("Validation/PARSEL1TGPLarge.SQL", true); |
||||
|
fedTestEvironment.run("Validation/PARSEL1TOR.SQL", true); |
||||
|
fedTestEvironment.run("Validation/PARSELJOINNormal.SQL", true); |
||||
|
fedTestEvironment.run("Validation/PARSELJOINSpecial.SQL", true); |
||||
|
|
||||
|
} catch (FedException fedException) { |
||||
|
fedException.printStackTrace(); |
||||
|
} |
||||
|
}} |
@ -0,0 +1,79 @@ |
|||||
|
package hsfulda.de; |
||||
|
import java.sql.Connection; |
||||
|
import java.sql.DriverManager; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.HashMap; |
||||
|
|
||||
|
public class FedConnection implements FedConnectionInterface { |
||||
|
HashMap<Integer, Connection> connections = new HashMap<Integer, Connection>(); |
||||
|
|
||||
|
String connectionStrings[] = { |
||||
|
"jdbc:oracle:thin:@pinatubo.informatik.hs-fulda.de:1521:ORALV8A", |
||||
|
"jdbc:oracle:thin:@mtsthelens.informatik.hs-fulda.de:1521:ORALV9A", |
||||
|
"jdbc:oracle:thin:@krakatau.informatik.hs-fulda.de:1521:ORALV10A" }; |
||||
|
|
||||
|
public FedConnection(String username, String password) throws FedException { |
||||
|
try { |
||||
|
DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); |
||||
|
for (int i = 0; i < connectionStrings.length; i++) { |
||||
|
connections.put(i, DriverManager.getConnection(connectionStrings[i], username, password)); |
||||
|
} |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public void setAutoCommit(boolean autoCommit) throws FedException { |
||||
|
try { |
||||
|
for (Object i : connections.keySet()) { |
||||
|
connections.get(i).setAutoCommit(autoCommit); |
||||
|
} |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public boolean getAutoCommit() throws FedException { |
||||
|
boolean autoCommit = false; |
||||
|
try { |
||||
|
autoCommit = connections.get(0).getAutoCommit(); |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
return autoCommit; |
||||
|
} |
||||
|
|
||||
|
public void commit() throws FedException { |
||||
|
try { |
||||
|
for (Object i : connections.keySet()) { |
||||
|
connections.get(i).commit(); |
||||
|
} |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public void rollback() throws FedException { |
||||
|
try { |
||||
|
for (Object i : connections.keySet()) { |
||||
|
connections.get(i).rollback(); |
||||
|
} |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public void close() throws FedException { |
||||
|
try { |
||||
|
for (Object i : connections.keySet()) { |
||||
|
connections.get(i).close(); |
||||
|
} |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public FedStatement getStatement() { |
||||
|
return new FedStatement(this); |
||||
|
} |
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package hsfulda.de; |
||||
|
public interface FedConnectionInterface { |
||||
|
public void setAutoCommit(boolean autoCommit) throws FedException; |
||||
|
|
||||
|
public boolean getAutoCommit() throws FedException; |
||||
|
|
||||
|
public void commit() throws FedException; |
||||
|
|
||||
|
public void rollback() throws FedException; |
||||
|
|
||||
|
public void close() throws FedException; |
||||
|
|
||||
|
public FedStatement getStatement(); |
||||
|
} |
@ -0,0 +1,9 @@ |
|||||
|
package hsfulda.de; |
||||
|
public class FedException extends Exception { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public FedException(Throwable cause) { |
||||
|
super(cause); |
||||
|
} |
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
package hsfulda.de; |
||||
|
public class FedPseudoDriver implements FedPseudoDriverInterface { |
||||
|
|
||||
|
public FedConnection getConnection(String username, String password) throws FedException { |
||||
|
return new FedConnection(username, password); |
||||
|
} |
||||
|
} |
@ -0,0 +1,4 @@ |
|||||
|
package hsfulda.de; |
||||
|
public interface FedPseudoDriverInterface { |
||||
|
public FedConnection getConnection(String username, String password) throws FedException; |
||||
|
} |
@ -0,0 +1,91 @@ |
|||||
|
package hsfulda.de; |
||||
|
import java.sql.ResultSet; |
||||
|
import java.sql.SQLException; |
||||
|
import java.util.HashMap; |
||||
|
|
||||
|
public class FedResultSet implements FedResultSetInterface { |
||||
|
private FedStatement fedStatement; |
||||
|
private HashMap<Integer, ResultSet> resultSets = new HashMap<Integer, ResultSet>(); |
||||
|
|
||||
|
public FedResultSet(FedStatement fedStatement) { |
||||
|
this.fedStatement = fedStatement; |
||||
|
} |
||||
|
|
||||
|
public FedStatement getStatement() { |
||||
|
return fedStatement; |
||||
|
} |
||||
|
|
||||
|
public boolean next() throws FedException { |
||||
|
try { |
||||
|
for (Object i : resultSets.keySet()) { |
||||
|
if (resultSets.get(i).next()) |
||||
|
return true; |
||||
|
} |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
public String getString(int columnIndex) throws FedException { |
||||
|
try { |
||||
|
for (Object i : resultSets.keySet()) { |
||||
|
if (!resultSets.get(i).isAfterLast()) |
||||
|
return resultSets.get(i).getString(columnIndex); |
||||
|
} |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
public int getInt(int columnIndex) throws FedException { |
||||
|
try { |
||||
|
for (Object i : resultSets.keySet()) { |
||||
|
if (!resultSets.get(i).isAfterLast()) |
||||
|
return resultSets.get(i).getInt(columnIndex); |
||||
|
} |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
return 0; |
||||
|
} |
||||
|
|
||||
|
public void close() throws FedException { |
||||
|
try { |
||||
|
for (Object i : resultSets.keySet()) { |
||||
|
resultSets.get(i).close(); |
||||
|
} |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public int getColumnCount() throws FedException { |
||||
|
try { |
||||
|
return resultSets.get(0).getMetaData().getColumnCount(); |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public String getColumnName(int index) throws FedException { |
||||
|
try { |
||||
|
return resultSets.get(0).getMetaData().getColumnName(index); |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public int getColumnType(int index) throws FedException { |
||||
|
try { |
||||
|
return resultSets.get(0).getMetaData().getColumnType(index); |
||||
|
} catch (SQLException sqlException) { |
||||
|
throw new FedException(sqlException); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public void setResultSet(int index, ResultSet resultSet) { |
||||
|
resultSets.put(index, resultSet); |
||||
|
} |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package hsfulda.de; |
||||
|
public interface FedResultSetInterface { |
||||
|
public boolean next() throws FedException; |
||||
|
|
||||
|
public String getString(int columnIndex) throws FedException; |
||||
|
|
||||
|
public int getInt(int columnIndex) throws FedException; |
||||
|
|
||||
|
public int getColumnCount() throws FedException; |
||||
|
|
||||
|
public String getColumnName(int index) throws FedException; |
||||
|
|
||||
|
public int getColumnType(int index) throws FedException; |
||||
|
|
||||
|
public void close() throws FedException; |
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
package hsfulda.de; |
||||
|
import java.sql.Connection; |
||||
|
import java.sql.SQLException; |
||||
|
import java.sql.Statement; |
||||
|
import java.util.HashMap; |
||||
|
|
||||
|
public class FedStatement implements FedStatementInterface { |
||||
|
private FedConnection fedConnection; |
||||
|
private HashMap<Integer, Statement> statements = new HashMap<Integer, Statement>(); |
||||
|
|
||||
|
public FedStatement(FedConnection fedConnection) { |
||||
|
this.fedConnection = fedConnection; |
||||
|
} |
||||
|
|
||||
|
public int executeUpdate(String sql) throws FedException { |
||||
|
int count = 0; |
||||
|
String cleanSql = sql.replaceAll("HORIZONTAL\\ \\([^(]*\\([^)]*\\)\\)", ""); |
||||
|
try { |
||||
|
for (Integer i : fedConnection.connections.keySet()) { |
||||
|
Connection connection = fedConnection.connections.get(i); |
||||
|
Statement statement = connection.createStatement(); |
||||
|
statements.put(i, statement); |
||||
|
count += statement.executeUpdate(cleanSql); |
||||
|
} |
||||
|
return count; |
||||
|
} catch (SQLException e) { |
||||
|
throw new FedException(e); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public FedResultSet executeQuery(String sql) throws FedException { |
||||
|
FedResultSet fedResultSet = new FedResultSet(this); |
||||
|
try { |
||||
|
for (Integer i : fedConnection.connections.keySet()) { |
||||
|
Connection connection = fedConnection.connections.get(i); |
||||
|
Statement statement = connection.createStatement(); |
||||
|
statements.put(i, statement); |
||||
|
fedResultSet.setResultSet(i, statement.executeQuery(sql)); |
||||
|
} |
||||
|
return fedResultSet; |
||||
|
} catch (SQLException e) { |
||||
|
throw new FedException(e); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public void close() throws FedException { |
||||
|
try { |
||||
|
for (Object i : statements.keySet()) { |
||||
|
statements.get(i).close(); |
||||
|
} |
||||
|
} catch (SQLException e) { |
||||
|
throw new FedException(e); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public FedConnection getConnection() throws FedException { |
||||
|
return fedConnection; |
||||
|
} |
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
package hsfulda.de; |
||||
|
public interface FedStatementInterface { |
||||
|
public int executeUpdate(String sql) throws FedException; |
||||
|
|
||||
|
public FedResultSet executeQuery(String sql) throws FedException; |
||||
|
|
||||
|
public FedConnection getConnection() throws FedException; |
||||
|
|
||||
|
public void close() throws FedException; |
||||
|
} |
@ -0,0 +1,159 @@ |
|||||
|
package hsfulda.de; |
||||
|
import java.util.Scanner; |
||||
|
|
||||
|
public class FedTestEnvironment { |
||||
|
|
||||
|
private FedConnection fedConnection; |
||||
|
|
||||
|
public FedTestEnvironment(FedConnection fedConnection) { |
||||
|
this.fedConnection = fedConnection; |
||||
|
|
||||
|
try { |
||||
|
this.fedConnection.setAutoCommit(false); |
||||
|
} catch (FedException fedException) { |
||||
|
System.err.println(fedException.getMessage()); |
||||
|
System.out.flush(); |
||||
|
System.err.flush(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public void run(String filename) { |
||||
|
run(filename, false); |
||||
|
} |
||||
|
|
||||
|
public void run(String filename, boolean debug) { |
||||
|
System.out.println("**************************************************************************"); |
||||
|
System.out.println("Executing script file '" + filename + "'..."); |
||||
|
long start, end, delta, op = 0; |
||||
|
|
||||
|
start = System.currentTimeMillis(); |
||||
|
|
||||
|
|
||||
|
Scanner scanner = new Scanner(getClass().getClassLoader().getResourceAsStream(filename)).useDelimiter(";"); |
||||
|
while (scanner.hasNext()) { |
||||
|
|
||||
|
String statement = scanner.next().trim(); |
||||
|
|
||||
|
while (statement.startsWith("/*") || statement.startsWith("--")) { |
||||
|
if (statement.startsWith("/*")) { |
||||
|
String comment = statement.substring(0, statement.indexOf("*/") + 2); |
||||
|
if (debug) { |
||||
|
System.out.println("--> " + comment + " <--"); |
||||
|
} |
||||
|
statement = statement.substring(statement.indexOf("*/") + 2).trim(); |
||||
|
} else { |
||||
|
String comment = statement.substring(0, statement.indexOf("\n") - 1); |
||||
|
if (debug) { |
||||
|
System.out.println("--> " + comment + " <--"); |
||||
|
} |
||||
|
statement = statement.substring(statement.indexOf("\n") + 1).trim(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (!"".equals(statement)) { |
||||
|
if (!"SET ECHO ON".equals(statement.toUpperCase()) && !statement.toUpperCase().startsWith("ALTER SESSION")) { |
||||
|
if (debug) { |
||||
|
System.out.println("Executing \"" + statement + "\"...\n"); |
||||
|
System.out.flush(); |
||||
|
} |
||||
|
if (statement.toUpperCase().equals("COMMIT")) { |
||||
|
try { |
||||
|
fedConnection.commit(); |
||||
|
if (debug) { |
||||
|
System.out.println("Transaction commit"); |
||||
|
} |
||||
|
} catch (FedException fedException) { |
||||
|
System.out.println(fedException.getMessage()); |
||||
|
System.out.flush(); |
||||
|
} |
||||
|
} else { |
||||
|
if (statement.toUpperCase().equals("ROLLBACK")) { |
||||
|
try { |
||||
|
fedConnection.rollback(); |
||||
|
if (debug) { |
||||
|
System.out.println("Transaction rollback"); |
||||
|
} |
||||
|
} catch (FedException fedException) { |
||||
|
System.out.println(fedException.getMessage()); |
||||
|
System.out.flush(); |
||||
|
} |
||||
|
} else { |
||||
|
if (statement.toUpperCase().startsWith("SELECT")) { |
||||
|
// SELECT |
||||
|
try { |
||||
|
FedStatement fedStatement = fedConnection.getStatement(); |
||||
|
FedResultSet fedResultSet = fedStatement.executeQuery(statement); |
||||
|
|
||||
|
op++; |
||||
|
|
||||
|
if (debug) { |
||||
|
for (int i = 1; i <= fedResultSet.getColumnCount(); i++) { |
||||
|
System.out.printf("%-15s", fedResultSet.getColumnName(i)); |
||||
|
} |
||||
|
System.out.println(); |
||||
|
|
||||
|
for (int i = 1; i <= fedResultSet.getColumnCount(); i++) { |
||||
|
System.out.print("-------------- "); |
||||
|
} |
||||
|
System.out.println(); |
||||
|
while (fedResultSet.next()) { |
||||
|
for (int i = 1; i <= fedResultSet.getColumnCount(); i++) { |
||||
|
System.out.printf("%-15s", fedResultSet.getString(i)); |
||||
|
} |
||||
|
System.out.println(); |
||||
|
} |
||||
|
System.out.println(); |
||||
|
} |
||||
|
fedStatement.close(); |
||||
|
} catch (FedException fedException) { |
||||
|
System.out.println(fedException.getMessage()); |
||||
|
System.out.flush(); |
||||
|
} |
||||
|
} else { |
||||
|
// UPDATE, INSERT, DELETE |
||||
|
try { |
||||
|
FedStatement fedStatement = fedConnection.getStatement(); |
||||
|
int count = fedStatement.executeUpdate(statement); |
||||
|
|
||||
|
op++; |
||||
|
|
||||
|
if (statement.toUpperCase().startsWith("UPDATE")) { |
||||
|
if (debug) { |
||||
|
System.out.println(count + " rows updated\n"); |
||||
|
} |
||||
|
} else { |
||||
|
if (statement.toUpperCase().startsWith("INSERT")) { |
||||
|
if (debug) { |
||||
|
System.out.println(count + " rows inserted\n"); |
||||
|
} |
||||
|
} else { |
||||
|
if (statement.toUpperCase().startsWith("DELETE")) { |
||||
|
if (debug) { |
||||
|
System.out.println(count + " rows deleted\n"); |
||||
|
} |
||||
|
} else { |
||||
|
if (debug) { |
||||
|
System.out.println(count + " OK"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
fedStatement.close(); |
||||
|
} catch (FedException fedException) { |
||||
|
System.out.println(fedException.getMessage()); |
||||
|
System.out.flush(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
end = System.currentTimeMillis(); |
||||
|
|
||||
|
delta = end - start; |
||||
|
System.out.println("File '" + filename + "', " + op + " operations, " + delta + " milliseconds"); |
||||
|
System.out.println("**************************************************************************\n"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,111 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
create table FLUGHAFEN ( |
||||
|
FHC varchar(3), |
||||
|
LAND varchar(3), |
||||
|
STADT varchar(50) default null, |
||||
|
NAME varchar(50) default null, |
||||
|
constraint FLUGHAFEN_PS |
||||
|
primary key (FHC) |
||||
|
); |
||||
|
|
||||
|
create table FLUGLINIE ( |
||||
|
FLC varchar(2), |
||||
|
LAND varchar(3), |
||||
|
HUB varchar(3) default null, |
||||
|
NAME varchar(30) default null, |
||||
|
ALLIANZ varchar(20) default null, |
||||
|
constraint FLUGLINIE_LAND_NN |
||||
|
check (LAND is not null), |
||||
|
constraint FLUGLINIE_ALLIANZ_CHK |
||||
|
check (ALLIANZ in ('Star','Excellence','Leftover','OneWorld','SkyTeam')), |
||||
|
constraint FLUGLINIE_PS |
||||
|
primary key (FLC), |
||||
|
constraint FLUGLINIE_FS_HUB |
||||
|
foreign key (HUB) references FLUGHAFEN(FHC) |
||||
|
) |
||||
|
HORIZONTAL (FLC('CC','KK')); |
||||
|
|
||||
|
create table FLUG ( |
||||
|
FNR integer, |
||||
|
FLC varchar(2), |
||||
|
FLNR integer, |
||||
|
VON varchar(3), |
||||
|
NACH varchar(3), |
||||
|
AB integer, |
||||
|
AN integer, |
||||
|
constraint FLUG_VON_NN |
||||
|
check (VON is not null), |
||||
|
constraint FLUG_NACH_NN |
||||
|
check (NACH is not null), |
||||
|
constraint FLUG_AB_NN |
||||
|
check (AB is not null), |
||||
|
constraint FLUG_AN_NN |
||||
|
check (AN is not null), |
||||
|
constraint FLUG_AB_CHK |
||||
|
check (AB between 0 and 2400), |
||||
|
constraint FLUG_AN_CHK |
||||
|
check (AN between 0 and 2400), |
||||
|
constraint FLUG_VONNACH_CHK |
||||
|
check (VON != NACH), |
||||
|
constraint FLUG_PS |
||||
|
primary key (FNR), |
||||
|
constraint FLUG_FS_FLC |
||||
|
foreign key (FLC) references FLUGLINIE(FLC), |
||||
|
constraint FLUG_FS_VON |
||||
|
foreign key (VON) references FLUGHAFEN(FHC), |
||||
|
constraint FLUG_FS_NACH |
||||
|
foreign key (NACH) references FLUGHAFEN(FHC) |
||||
|
) |
||||
|
HORIZONTAL (AB(0800,1200)); |
||||
|
|
||||
|
|
||||
|
create table PASSAGIER ( |
||||
|
PNR integer, |
||||
|
NAME varchar(40), |
||||
|
VORNAME varchar(40) default null, |
||||
|
LAND varchar(3) default null, |
||||
|
constraint PASSAGIER_NAME_NN |
||||
|
check (NAME is not null), |
||||
|
constraint PASSAGIER_PS |
||||
|
primary key (PNR) |
||||
|
) |
||||
|
HORIZONTAL (PNR(35,70)); |
||||
|
|
||||
|
|
||||
|
create table BUCHUNG ( |
||||
|
BNR integer, |
||||
|
PNR integer, |
||||
|
FLC varchar(2), |
||||
|
FLNR integer, |
||||
|
VON varchar(3), |
||||
|
NACH varchar(3), |
||||
|
TAG varchar(20), |
||||
|
MEILEN integer, |
||||
|
PREIS integer, |
||||
|
constraint BUCHUNG_NACH_NN |
||||
|
check (NACH is not null), |
||||
|
constraint BUCHUNG_MEILEN_NN |
||||
|
check (MEILEN is not null), |
||||
|
constraint BUCHUNG_PREIS_NN |
||||
|
check (PREIS is not null), |
||||
|
constraint BUCHUNG_MEILEN_CHK |
||||
|
check (MEILEN >= 0), |
||||
|
constraint BUCHUNG_PREIS_CHK |
||||
|
check (PREIS > 0), |
||||
|
constraint BUCHUNG_PS |
||||
|
primary key (BNR), |
||||
|
constraint BUCHUNG_FS_PNR |
||||
|
foreign key (PNR) references PASSAGIER(PNR), |
||||
|
constraint BUCHUNG_FS_FLC |
||||
|
foreign key (FLC) references FLUGLINIE(FLC), |
||||
|
constraint BUCHUNG_FS_VON |
||||
|
foreign key (VON) references FLUGHAFEN(FHC), |
||||
|
constraint BUCHUNG_FS_NACH |
||||
|
foreign key (NACH) references FLUGHAFEN(FHC) |
||||
|
) |
||||
|
HORIZONTAL (VON('FFF','GGG')); |
@ -0,0 +1,15 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
drop table BUCHUNG cascade constraints; |
||||
|
|
||||
|
drop table PASSAGIER cascade constraints; |
||||
|
|
||||
|
drop table FLUG cascade constraints; |
||||
|
|
||||
|
drop table FLUGLINIE cascade constraints; |
||||
|
|
||||
|
drop table FLUGHAFEN cascade constraints; |
@ -0,0 +1,28 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
INSERT INTO FLUGLINIE VALUES ('AB', 'D ', null, 'Air Berlin', null); |
||||
|
INSERT INTO FLUGLINIE VALUES ('AC', 'CDN', null, 'Air Canada', 'Star'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('AF', 'F ', null, 'Air France', 'SkyTeam'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('BA', 'GB ', null, 'British Airways', 'OneWorld'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('DB', 'D ', null, 'Database Airlines', null); |
||||
|
INSERT INTO FLUGLINIE VALUES ('DI', 'D ', null, 'Deutsche BA', null); |
||||
|
INSERT INTO FLUGLINIE VALUES ('DL', 'USA', null, 'Delta Airlines', 'SkyTeam'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('JL', 'J ', null, 'Japan Airlines', 'OneWorld'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('LH', 'D ', null, 'Lufthansa', 'Star'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('NH', 'J ', null, 'All Nippon Airways', 'Star'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('UA', 'USA', null, 'United Airlines', 'Star'); |
||||
|
|
||||
|
update FLUGLINIE set ALLIANZ = 'SkyTeam' where FLC = 'DL'; |
||||
|
update FLUGLINIE set ALLIANZ = 'SkyTeam' where FLC = 'AF'; |
||||
|
update FLUGLINIE set ALLIANZ = 'OneWorld' where FLC = 'JL'; |
||||
|
update FLUGLINIE set ALLIANZ = 'OneWorld' where FLC = 'BA'; |
||||
|
|
||||
|
update FLUGLINIE set HUB = NULL; |
||||
|
|
||||
|
commit; |
||||
|
|
@ -0,0 +1,103 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('AKL', 'NZ ', 'Auckland', 'Auckland International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ALC', 'E ', 'Alicante', 'Alicante'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ALF', 'N ', 'Alta', 'Flughafen Alta'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ANC', 'USA', 'Anchorage', 'Ted Stevens AIA'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ARN', 'S ', 'Stockholm', 'Arlanda'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('BCN', 'E ', 'Barcelona', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('BHX', 'GB ', 'Birmingham', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('BOS', 'USA', 'Boston', 'Edward Lawrence Logan'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('BRE', 'D ', 'Bremen', 'City Airport Bremen'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('BRS', 'GB ', 'Bristol', 'International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('CDG', 'F ', 'Paris', 'Charles de Gaulle'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('CGK', 'ID ', 'Jakarta', 'Sukarno-Hatta Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('CGN', 'D ', 'Koeln', 'Konrad-Adenauer'); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('CPH', 'DK ', 'Kopenhagen', 'Kastrup'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('CPT', 'RSA', 'Kapstadt', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('CRT', 'TUN', 'Chartage', 'Tunesien'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('DJE', 'TUN', 'Djerba', 'Aeroport de Djerba'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('DRS', 'D ', 'Dresden', 'Dresden Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('DUS', 'D ', 'Duesseldorf', 'Duesseldorf International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('EDI', 'GB ', 'Edinburgh', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ERF', 'D ', 'Erfurt', 'Flughafen Erfurt(ERF)'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('FCO', 'I ', 'Rom', 'Fiumicino'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('FDH', 'D ', 'Friedrichshafen', 'Bodensee-Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('FLR', 'I ', 'Florenz', 'Peretola'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('FRA', 'D ', 'Frankfurt', 'Rhein-Main'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('GOT', 'S ', 'Goeteborg', 'Landvetter'); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('GRZ', 'A ', 'Graz', 'Flughafen Graz'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('GVA', 'CH ', 'Genf', 'Flughafen Genf'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('HAJ', 'D ', 'Hannover', 'Langenhagen'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('HHN', 'D ', 'Hahn', 'Flughafen Hahn'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('HKG', 'CHN', 'HongKong', 'HongKong International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('HRG', 'EG ', 'Hurghada', 'International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('IAD', 'USA', 'Washington', 'Dulles'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ISA', 'AUS', 'Mount Isa', 'Queensland'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('IST', 'TR ', 'Istanbul', 'Atatürk'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('JFK', 'USA', 'New York', 'John F. Kennedy'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('KIX', 'J ', 'Osaka', 'Kansai'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('KLU', 'D ', 'Klagenfurt', 'Klagenfurter Flughafen'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('KSF', 'D ', 'Kassel', 'Calden'); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('LAX', 'USA', 'Los Angeles', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('LGW', 'GB ', 'London', 'Gatwick'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('LHR', 'GB ', 'London', 'Heathrow'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('LIM', 'PE ', 'Lima', 'Jorge Chávez'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('LPA', 'E ', 'Las Palmas', 'Las Palmas Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('LYS', 'F ', 'Lyon', 'Saint-Exupéry'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MAN', 'GB ', 'Manchester', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MCO', 'USA', 'Orlando', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MIR', 'TUN', 'Monastir', 'Aéroport Monastir'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MPL', 'F ', 'Montpellier', 'Montpellier Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MRS', 'F ', 'Marseille', 'Marseille Provence'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MUC', 'D ', 'Munich', 'Franz-Josef Strauss'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MVR', 'CMR', 'Maroua', 'Maroua Salek Airport'); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('NAP', 'I ', 'Neapel', 'Capodichino'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('NCE', 'D ', 'Nice', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('NRT', 'J ', 'Tokio', 'Narita'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('NUE', 'D ', 'Nuernberg', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ORD', 'USA', 'Chicago', 'O''Hare'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ORY', 'F ', 'Paris', 'Orly'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('OSL', 'N ', 'Oslo', 'Oslo Gardermoen'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('PAD', 'D ', 'Paderborn', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('PEK', 'CHN', 'Peking', 'Beijing Shoudu Guoji Jichang'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('PMI', 'E ', 'Palma', 'Aeropuerto de Son Sant Joan'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('SEA', 'USA', 'Seattle', 'Seattle-Tacoma'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('SFO', 'USA', 'San Francisco', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('SSH', 'ET ', 'Sharm El Sheikh', 'Sharm El Sheikh Nat. Airport'); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('STN', 'GB ', 'London', 'Stanstead'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('SVO', 'RUS', 'Moskau', 'Scheremetjewo'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('SZG', 'A ', 'Salzburg', 'Salzburg Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TFS', 'E ', 'Granadilla', 'Teneriffa/Süd'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TLS', 'F ', 'Toulouse', 'Blagnac'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TRD', 'N ', 'Trondheim', 'Vaernes'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TRU', 'PE ', 'Trujillo', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TUN', 'TUN', 'Aeroport de Tunis', 'Tunis'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TXL', 'D ', 'Berlin', 'Tegel'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('VCE', 'I ', 'Venedig', 'Marco Polo'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('VIE', 'A ', 'Wien', 'Schwechat'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('VLC', 'E ', 'Valencia', 'Manises'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('YDE', 'CMR', 'Yaounde', null); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('YUL', 'CDN', 'Montreal', 'Pierre Elliot Trudeau'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('YVR', 'CDN', 'Vancouver', 'Vancouver International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('YYC', 'CDN', 'Calgary', 'Municipal Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('YYZ', 'CDN', 'Toronto', 'Lester Pearson'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ZAZ', 'E ', 'Zaragoza', null); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ZRH', 'CH ', 'Zuerich', 'Kloten'); |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
commit; |
||||
|
|
@ -0,0 +1,214 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (71, 1, 'LH', 32, 'FRA', 'LAX', '03-SEP-1997', 5800, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (72, 1, 'LH', 34, 'FRA', 'SFO', '09-NOV-1997', 5700, 2800); |
||||
|
INSERT INTO BUCHUNG VALUES (73, 2, 'DL', 9, 'FRA', 'LAX', '09-NOV-1997', 5800, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (74, 3, 'AF', 33, 'FRA', 'CDG', '10-OCT-1997', 300, 1800); |
||||
|
INSERT INTO BUCHUNG VALUES (75, 3, 'AF', 45, 'CDG', 'NRT', '10-OCT-1997', 6200, 8000); |
||||
|
INSERT INTO BUCHUNG VALUES (77, 5, 'AF', 9, 'TXL', 'CDG', '09-SEP-1997', 500, 400); |
||||
|
INSERT INTO BUCHUNG VALUES (78, 5, 'AF', 9, 'TXL', 'CDG', '29-SEP-1997', 500, 800); |
||||
|
INSERT INTO BUCHUNG VALUES (79, 5, 'AF', 9, 'TXL', 'CDG', '12-DEC-1997', 500, 400); |
||||
|
INSERT INTO BUCHUNG VALUES (76, 5, 'LH', 32, 'FRA', 'JFK', '12-AUG-1997', 3900, 2000); |
||||
|
INSERT INTO BUCHUNG VALUES (80, 6, 'DL', 9, 'JFK', 'NRT', '13-NOV-1997', 6100, 4000); |
||||
|
INSERT INTO BUCHUNG VALUES (82, 7, 'AF', 33, 'FRA', 'CDG', '12-OCT-1997', 300, 1900); |
||||
|
INSERT INTO BUCHUNG VALUES (81, 7, 'DL', 9, 'JFK', 'NRT', '15-FEB-1997', 6100, 4000); |
||||
|
INSERT INTO BUCHUNG VALUES (85, 9, 'DL', 7, 'FRA', 'SFO', '17-AUG-1997', 5700, 4000); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (86, 9, 'DL', 9, 'FRA', 'JFK', '20-DEC-1997', 3900, 2000); |
||||
|
INSERT INTO BUCHUNG VALUES (87, 9, 'DL', 33, 'SFO', 'LAX', '09-OCT-1997', 500, 600); |
||||
|
INSERT INTO BUCHUNG VALUES (88, 9, 'DL', 33, 'SFO', 'LAX', '23-NOV-1997', 500, 800); |
||||
|
INSERT INTO BUCHUNG VALUES (84, 9, 'JL', 12, 'FRA', 'KIX', '18-NOV-1997', 7200, 5400); |
||||
|
INSERT INTO BUCHUNG VALUES (83, 9, 'LH', 34, 'FRA', 'SFO', '29-JUL-1997', 5700, 800); |
||||
|
INSERT INTO BUCHUNG VALUES (89, 11, 'LH', 5, 'FRA', 'TXL', '11-APR-1998', 500, 700); |
||||
|
INSERT INTO BUCHUNG VALUES (90, 12, 'AF', 45, 'CDG', 'NRT', '10-JAN-1998', 6200, 2500); |
||||
|
INSERT INTO BUCHUNG VALUES (91, 16, 'LH', 40, 'FRA', 'LHR', '18-MAY-1998', 500, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (24, 21, 'DB', 2, 'HHN', 'FRA', '12-AUG-2010', 40, 60); |
||||
|
INSERT INTO BUCHUNG VALUES (26, 21, 'DB', 2, 'HHN', 'FRA', '12-AUG-2012', 40, 60); |
||||
|
INSERT INTO BUCHUNG VALUES (25, 21, 'DB', 3, 'FRA', 'HHN', '12-SEP-2010', 40, 60); |
||||
|
INSERT INTO BUCHUNG VALUES (29, 21, 'DB', 3, 'FRA', 'HHN', '12-OCT-2012', 40, 60); |
||||
|
INSERT INTO BUCHUNG VALUES (28, 21, 'LH', 51, 'CDG', 'FRA', '12-OCT-2012', 300, 250); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (27, 21, 'LH', 54, 'FRA', 'CDG', '12-AUG-2012', 300, 250); |
||||
|
INSERT INTO BUCHUNG VALUES (30, 22, 'DB', 42, 'SSH', 'FRA', '01-MAY-2010', 2000, 300); |
||||
|
INSERT INTO BUCHUNG VALUES (32, 22, 'DB', 42, 'SSH', 'FRA', '01-MAY-2011', 2000, 300); |
||||
|
INSERT INTO BUCHUNG VALUES (31, 22, 'DB', 43, 'FRA', 'SSH', '03-MAY-2010', 2000, 300); |
||||
|
INSERT INTO BUCHUNG VALUES (35, 22, 'DB', 43, 'FRA', 'SSH', '08-MAY-2011', 2000, 300); |
||||
|
INSERT INTO BUCHUNG VALUES (33, 22, 'LH', 42, 'FRA', 'LHR', '01-MAY-2011', 400, 60); |
||||
|
INSERT INTO BUCHUNG VALUES (34, 22, 'LH', 47, 'LHR', 'FRA', '08-MAY-2011', 400, 60); |
||||
|
INSERT INTO BUCHUNG VALUES (121, 56, 'BA', 87, 'LHR', 'FRA', '24-MAR-2011', 1200, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (98, 56, 'DB', 24, 'KLU', 'FRA', '16-MAR-2010', 460, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (100, 56, 'DB', 24, 'KLU', 'FRA', '16-MAR-2011', 460, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (99, 56, 'DB', 25, 'FRA', 'KLU', '18-MAR-2010', 460, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (103, 56, 'DB', 25, 'FRA', 'KLU', '23-MAR-2011', 460, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (59, 56, 'DB', 36, 'HAJ', 'FRA', '04-FEB-2010', 400, 500); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (61, 56, 'DB', 36, 'HAJ', 'FRA', '04-FEB-2011', 400, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (60, 56, 'DB', 37, 'FRA', 'HAJ', '06-FEB-2010', 400, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (64, 56, 'DB', 37, 'FRA', 'HAJ', '11-FEB-2011', 400, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (118, 56, 'DB', 56, 'BRE', 'FRA', '19-MAR-2010', 450, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (119, 56, 'DB', 56, 'BRE', 'FRA', '17-MAR-2011', 450, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (117, 56, 'DB', 57, 'FRA', 'BRE', '17-MAR-2010', 450, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (122, 56, 'DB', 57, 'FRA', 'BRE', '25-MAR-2011', 450, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (102, 56, 'LH', 41, 'LHR', 'FRA', '23-MAR-2011', 460, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (62, 56, 'LH', 42, 'FRA', 'LHR', '04-FEB-2011', 500, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (101, 56, 'LH', 44, 'FRA', 'LHR', '16-MAR-2011', 660, 600); |
||||
|
INSERT INTO BUCHUNG VALUES (120, 56, 'LH', 46, 'FRA', 'LHR', '17-MAR-2011', 1200, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (63, 56, 'LH', 47, 'LHR', 'FRA', '11-FEB-2011', 500, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (65, 57, 'DB', 46, 'LIM', 'FRA', '04-DEC-2010', 10000, 1000); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (67, 57, 'DB', 46, 'LIM', 'FRA', '04-DEC-2011', 10000, 1000); |
||||
|
INSERT INTO BUCHUNG VALUES (66, 57, 'DB', 47, 'FRA', 'LIM', '06-DEC-2010', 10000, 1000); |
||||
|
INSERT INTO BUCHUNG VALUES (70, 57, 'DB', 47, 'FRA', 'LIM', '11-DEC-2011', 10000, 1000); |
||||
|
INSERT INTO BUCHUNG VALUES (68, 57, 'LH', 46, 'FRA', 'LHR', '04-DEC-2011', 500, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (69, 57, 'LH', 47, 'LHR', 'FRA', '11-DEC-2011', 500, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (48, 58, 'DB', 22, 'PEK', 'FRA', '12-APR-2010', 5800, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (50, 58, 'DB', 22, 'PEK', 'FRA', '12-APR-2011', 5800, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (49, 58, 'DB', 23, 'FRA', 'PEK', '14-APR-2010', 5800, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (53, 58, 'DB', 23, 'FRA', 'PEK', '19-APR-2010', 5800, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (51, 58, 'LH', 42, 'FRA', 'LHR', '12-APR-2011', 800, 80); |
||||
|
INSERT INTO BUCHUNG VALUES (52, 58, 'LH', 47, 'LHR', 'FRA', '19-APR-2010', 800, 80); |
||||
|
INSERT INTO BUCHUNG VALUES (92, 59, 'DB', 74, 'CGK', 'FRA', '10-NOV-2010', 10000, 550); |
||||
|
INSERT INTO BUCHUNG VALUES (94, 59, 'DB', 74, 'CGK', 'FRA', '10-NOV-2011', 2000, 150); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (93, 59, 'DB', 75, 'FRA', 'CGK', '12-NOV-2010', 10000, 550); |
||||
|
INSERT INTO BUCHUNG VALUES (97, 59, 'DB', 75, 'FRA', 'CGK', '17-NOV-2011', 4000, 250); |
||||
|
INSERT INTO BUCHUNG VALUES (95, 59, 'LH', 42, 'FRA', 'LHR', '10-NOV-2011', 4000, 250); |
||||
|
INSERT INTO BUCHUNG VALUES (96, 59, 'LH', 47, 'LHR', 'FRA', '17-NOV-2011', 4000, 250); |
||||
|
INSERT INTO BUCHUNG VALUES (21, 60, 'AF', 34, 'FRA', 'CDG', '25-MAY-2012', 120, 480); |
||||
|
INSERT INTO BUCHUNG VALUES (18, 60, 'DB', 48, 'DUS', 'FRA', '25-MAY-2010', 100, 250); |
||||
|
INSERT INTO BUCHUNG VALUES (20, 60, 'DB', 48, 'DUS', 'FRA', '25-MAY-2012', 100, 250); |
||||
|
INSERT INTO BUCHUNG VALUES (19, 60, 'DB', 49, 'FRA', 'DUS', '25-JUN-2010', 105, 250); |
||||
|
INSERT INTO BUCHUNG VALUES (23, 60, 'DB', 49, 'FRA', 'DUS', '26-JUL-2012', 105, 250); |
||||
|
INSERT INTO BUCHUNG VALUES (22, 60, 'LH', 51, 'CDG', 'FRA', '25-JUL-2012', 480, 120); |
||||
|
INSERT INTO BUCHUNG VALUES (104, 62, 'DB', 32, 'MPL', 'FRA', '23-NOV-2010', 610, 1280); |
||||
|
INSERT INTO BUCHUNG VALUES (55, 62, 'DB', 32, 'MPL', 'FRA', '23-NOV-2011', 610, 1280); |
||||
|
INSERT INTO BUCHUNG VALUES (54, 62, 'DB', 33, 'FRA', 'MPL', '25-NOV-2010', 610, 1430); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (58, 62, 'DB', 33, 'FRA', 'MPL', '30-NOV-2011', 610, 450); |
||||
|
INSERT INTO BUCHUNG VALUES (56, 62, 'LH', 42, 'FRA', 'LHR', '24-NOV-2011', 910, 320); |
||||
|
INSERT INTO BUCHUNG VALUES (57, 62, 'LH', 47, 'LHR', 'FRA', '30-NOV-2011', 880, 240); |
||||
|
INSERT INTO BUCHUNG VALUES (114, 63, 'BA', 86, 'FRA', 'LHR', '04-NOV-2011', 2800, 1800); |
||||
|
INSERT INTO BUCHUNG VALUES (111, 63, 'DB', 20, 'ALF', 'FRA', '04-NOV-2010', 2800, 1800); |
||||
|
INSERT INTO BUCHUNG VALUES (113, 63, 'DB', 20, 'ALF', 'FRA', '04-NOV-2011', 2800, 1800); |
||||
|
INSERT INTO BUCHUNG VALUES (112, 63, 'DB', 21, 'FRA', 'ALF', '06-NOV-2010', 2800, 1800); |
||||
|
INSERT INTO BUCHUNG VALUES (116, 63, 'DB', 21, 'FRA', 'ALF', '12-OCT-2011', 2800, 1800); |
||||
|
INSERT INTO BUCHUNG VALUES (115, 63, 'LH', 47, 'LHR', 'FRA', '11-NOV-2011', 2800, 1800); |
||||
|
INSERT INTO BUCHUNG VALUES (36, 64, 'DB', 40, 'YYC', 'FRA', '20-AUG-2010', 5000, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (38, 64, 'DB', 40, 'YYC', 'FRA', '20-AUG-2011', 5000, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (37, 64, 'DB', 41, 'FRA', 'YYC', '20-AUG-2010', 5000, 1200); |
||||
|
INSERT INTO BUCHUNG VALUES (41, 64, 'DB', 41, 'FRA', 'YYC', '27-AUG-2011', 5000, 1200); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (39, 64, 'LH', 46, 'FRA', 'LHR', '20-AUG-2011', 700, 120); |
||||
|
INSERT INTO BUCHUNG VALUES (40, 64, 'LH', 47, 'LHR', 'FRA', '27-AUG-2011', 700, 120); |
||||
|
INSERT INTO BUCHUNG VALUES (108, 66, 'BA', 86, 'FRA', 'LHR', '04-AUG-2011', 700, 70); |
||||
|
INSERT INTO BUCHUNG VALUES (105, 66, 'DB', 58, 'LPA', 'FRA', '04-AUG-2010', 4000, 400); |
||||
|
INSERT INTO BUCHUNG VALUES (107, 66, 'DB', 58, 'LPA', 'FRA', '04-AUG-2011', 4000, 400); |
||||
|
INSERT INTO BUCHUNG VALUES (106, 66, 'DB', 59, 'FRA', 'LPA', '06-AUG-2010', 4000, 400); |
||||
|
INSERT INTO BUCHUNG VALUES (110, 66, 'DB', 59, 'FRA', 'LPA', '11-AUG-2011', 4000, 400); |
||||
|
INSERT INTO BUCHUNG VALUES (109, 66, 'LH', 47, 'LHR', 'FRA', '11-AUG-2011', 700, 70); |
||||
|
INSERT INTO BUCHUNG VALUES (42, 67, 'DB', 82, 'CRT', 'FRA', '08-FEB-2010', 2800, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (44, 67, 'DB', 82, 'CRT', 'FRA', '08-FEB-2012', 2800, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (43, 67, 'DB', 83, 'FRA', 'CRT', '08-MAR-2010', 2800, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (47, 67, 'DB', 83, 'FRA', 'CRT', '08-APR-2012', 800, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (46, 67, 'LH', 51, 'CDG', 'FRA', '08-APR-2012', 800, 100); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (45, 67, 'LH', 54, 'FRA', 'CDG', '08-FEB-2012', 800, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (141, 68, 'DB', 6, 'ERF', 'FRA', '11-APR-2010', 190, 90); |
||||
|
INSERT INTO BUCHUNG VALUES (143, 68, 'DB', 6, 'ERF', 'FRA', '11-APR-2011', 190, 90); |
||||
|
INSERT INTO BUCHUNG VALUES (142, 68, 'DB', 7, 'FRA', 'ERF', '13-APR-2010', 190, 90); |
||||
|
INSERT INTO BUCHUNG VALUES (146, 68, 'DB', 7, 'FRA', 'ERF', '19-APR-2011', 190, 90); |
||||
|
INSERT INTO BUCHUNG VALUES (144, 68, 'LH', 42, 'FRA', 'LHR', '11-APR-2011', 190, 90); |
||||
|
INSERT INTO BUCHUNG VALUES (145, 68, 'LH', 47, 'LHR', 'FRA', '18-APR-2011', 190, 90); |
||||
|
INSERT INTO BUCHUNG VALUES (147, 69, 'DB', 28, 'TUN', 'FRA', '14-MAR-2010', 2800, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (136, 69, 'DB', 28, 'TUN', 'FRA', '14-MAR-2012', 2800, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (135, 69, 'DB', 29, 'FRA', 'TUN', '14-APR-2010', 2800, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (139, 69, 'DB', 29, 'FRA', 'TUN', '14-MAY-2012', 800, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (138, 69, 'LH', 51, 'CDG', 'FRA', '14-MAY-2012', 800, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (137, 69, 'LH', 54, 'FRA', 'CDG', '14-MAR-2012', 800, 100); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (150, 70, 'AF', 34, 'FRA', 'CDG', '27-FEB-2012', 330, 400); |
||||
|
INSERT INTO BUCHUNG VALUES (140, 70, 'DB', 80, 'SZG', 'FRA', '27-FEB-2010', 330, 300); |
||||
|
INSERT INTO BUCHUNG VALUES (149, 70, 'DB', 80, 'SZG', 'FRA', '27-FEB-2012', 330, 300); |
||||
|
INSERT INTO BUCHUNG VALUES (148, 70, 'DB', 81, 'FRA', 'SZG', '27-MAR-2010', 330, 400); |
||||
|
INSERT INTO BUCHUNG VALUES (152, 70, 'DB', 81, 'FRA', 'SZG', '28-APR-2012', 330, 400); |
||||
|
INSERT INTO BUCHUNG VALUES (151, 70, 'LH', 51, 'CDG', 'FRA', '27-APR-2012', 330, 300); |
||||
|
INSERT INTO BUCHUNG VALUES (153, 71, 'DB', 10, 'DJE', 'FRA', '06-JAN-2010', 2800, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (155, 71, 'DB', 10, 'DJE', 'FRA', '06-JAN-2012', 2800, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (154, 71, 'DB', 11, 'FRA', 'DJE', '06-FEB-2010', 2800, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (158, 71, 'DB', 11, 'FRA', 'DJE', '06-MAR-2012', 800, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (157, 71, 'LH', 51, 'CDG', 'FRA', '06-MAR-2012', 800, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (156, 71, 'LH', 54, 'FRA', 'CDG', '06-JAN-2012', 800, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (177, 72, 'DB', 72, 'YDE', 'FRA', '18-JUN-2010', 500, 900); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (179, 72, 'DB', 72, 'YDE', 'FRA', '18-JUN-2011', 500, 900); |
||||
|
INSERT INTO BUCHUNG VALUES (178, 72, 'DB', 73, 'FRA', 'YDE', '20-JUN-2010', 500, 900); |
||||
|
INSERT INTO BUCHUNG VALUES (182, 72, 'DB', 73, 'FRA', 'YDE', '25-JUN-2011', 500, 900); |
||||
|
INSERT INTO BUCHUNG VALUES (180, 72, 'LH', 42, 'FRA', 'LHR', '18-JUN-2011', 500, 900); |
||||
|
INSERT INTO BUCHUNG VALUES (181, 72, 'LH', 47, 'LHR', 'FRA', '25-JUN-2011', 500, 900); |
||||
|
INSERT INTO BUCHUNG VALUES (159, 73, 'DB', 8, 'MIR', 'FRA', '10-OCT-2010', 1570, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (161, 73, 'DB', 8, 'MIR', 'FRA', '10-OCT-2011', 1570, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (160, 73, 'DB', 9, 'FRA', 'MIR', '12-OCT-2010', 1570, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (164, 73, 'DB', 9, 'FRA', 'MIR', '17-OCT-2011', 1570, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (162, 73, 'LH', 44, 'FRA', 'LHR', '10-OCT-2011', 800, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (163, 73, 'LH', 47, 'LHR', 'FRA', '17-OCT-2011', 800, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (183, 74, 'DB', 62, 'HKG', 'FRA', '25-APR-2010', 6000, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (2, 74, 'DB', 62, 'HKG', 'FRA', '25-APR-2011', 2000, 150); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (1, 74, 'DB', 63, 'FRA', 'HKG', '27-APR-2010', 6000, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (5, 74, 'DB', 63, 'FRA', 'HKG', '01-MAY-2011', 4000, 250); |
||||
|
INSERT INTO BUCHUNG VALUES (3, 74, 'LH', 46, 'FRA', 'LHR', '25-APR-2011', 3000, 200); |
||||
|
INSERT INTO BUCHUNG VALUES (4, 74, 'LH', 47, 'LHR', 'FRA', '01-MAY-2011', 2000, 150); |
||||
|
INSERT INTO BUCHUNG VALUES (168, 75, 'AF', 34, 'FRA', 'CDG', '27-JUN-2012', 354, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (165, 75, 'DB', 78, 'TLS', 'FRA', '27-JUN-2010', 750, 190); |
||||
|
INSERT INTO BUCHUNG VALUES (167, 75, 'DB', 78, 'TLS', 'FRA', '27-JUN-2012', 750, 190); |
||||
|
INSERT INTO BUCHUNG VALUES (166, 75, 'DB', 79, 'FRA', 'TLS', '27-JUN-2010', 750, 190); |
||||
|
INSERT INTO BUCHUNG VALUES (170, 75, 'DB', 79, 'FRA', 'TLS', '27-AUG-2012', 750, 190); |
||||
|
INSERT INTO BUCHUNG VALUES (169, 75, 'LH', 51, 'CDG', 'FRA', '27-AUG-2012', 354, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (171, 76, 'DB', 54, 'SVO', 'FRA', '25-OCT-2010', 1236, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (173, 76, 'DB', 54, 'SVO', 'FRA', '25-OCT-2012', 1236, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (172, 76, 'DB', 55, 'FRA', 'SVO', '25-NOV-2010', 1236, 100); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (176, 76, 'DB', 55, 'FRA', 'SVO', '25-DEC-2012', 1236, 100); |
||||
|
INSERT INTO BUCHUNG VALUES (174, 76, 'LH', 50, 'FRA', 'CDG', '26-OCT-2012', 360, 80); |
||||
|
INSERT INTO BUCHUNG VALUES (175, 76, 'LH', 51, 'CDG', 'FRA', '25-DEC-2012', 360, 80); |
||||
|
INSERT INTO BUCHUNG VALUES (14, 77, 'AF', 33, 'FRA', 'CDG', '04-JUN-2012', 700, 330); |
||||
|
INSERT INTO BUCHUNG VALUES (11, 77, 'DB', 18, 'DRS', 'FRA', '04-JUN-2010', 300, 120); |
||||
|
INSERT INTO BUCHUNG VALUES (13, 77, 'DB', 18, 'DRS', 'FRA', '04-JUN-2012', 300, 120); |
||||
|
INSERT INTO BUCHUNG VALUES (12, 77, 'DB', 19, 'FRA', 'DRS', '04-JUL-2010', 300, 120); |
||||
|
INSERT INTO BUCHUNG VALUES (16, 77, 'DB', 19, 'FRA', 'DRS', '04-AUG-2012', 300, 120); |
||||
|
INSERT INTO BUCHUNG VALUES (15, 77, 'LH', 51, 'CDG', 'FRA', '04-AUG-2012', 700, 330); |
||||
|
INSERT INTO BUCHUNG VALUES (17, 78, 'DB', 14, 'LYS', 'FRA', '22-DEC-2010', 343, 70); |
||||
|
INSERT INTO BUCHUNG VALUES (7, 78, 'DB', 14, 'LYS', 'FRA', '22-DEC-2012', 343, 70); |
||||
|
INSERT INTO BUCHUNG VALUES (6, 78, 'DB', 15, 'FRA', 'LYS', '22-JAN-2011', 343, 70); |
||||
|
INSERT INTO BUCHUNG VALUES (10, 78, 'DB', 15, 'FRA', 'LYS', '23-FEB-2013', 343, 70); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (8, 78, 'LH', 50, 'FRA', 'CDG', '23-DEC-2012', 350, 75); |
||||
|
INSERT INTO BUCHUNG VALUES (9, 78, 'LH', 51, 'CDG', 'FRA', '22-FEB-2013', 350, 75); |
||||
|
INSERT INTO BUCHUNG VALUES (126, 79, 'AF', 33, 'FRA', 'CDG', '17-JUL-2012', 500, 120); |
||||
|
INSERT INTO BUCHUNG VALUES (123, 79, 'DB', 16, 'PMI', 'FRA', '17-JUL-2010', 1500, 230); |
||||
|
INSERT INTO BUCHUNG VALUES (125, 79, 'DB', 16, 'PMI', 'FRA', '17-JUL-2012', 1500, 230); |
||||
|
INSERT INTO BUCHUNG VALUES (124, 79, 'DB', 17, 'FRA', 'PMI', '17-AUG-2010', 1500, 260); |
||||
|
INSERT INTO BUCHUNG VALUES (128, 79, 'DB', 17, 'FRA', 'PMI', '18-SEP-2012', 1500, 260); |
||||
|
INSERT INTO BUCHUNG VALUES (127, 79, 'LH', 51, 'CDG', 'FRA', '17-SEP-2012', 500, 130); |
||||
|
INSERT INTO BUCHUNG VALUES (129, 80, 'DB', 60, 'ISA', 'FRA', '15-SEP-2010', 14427, 851); |
||||
|
INSERT INTO BUCHUNG VALUES (131, 80, 'DB', 60, 'ISA', 'FRA', '15-SEP-2012', 14727, 821); |
||||
|
INSERT INTO BUCHUNG VALUES (130, 80, 'DB', 61, 'FRA', 'ISA', '15-OCT-2010', 14429, 834); |
||||
|
INSERT INTO BUCHUNG VALUES (134, 80, 'DB', 61, 'FRA', 'ISA', '15-NOV-2012', 14469, 895); |
||||
|
INSERT INTO BUCHUNG VALUES (133, 80, 'LH', 51, 'CDG', 'FRA', '15-NOV-2012', 421, 216); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (132, 80, 'LH', 54, 'FRA', 'CDG', '16-SEP-2012', 450, 243); |
||||
|
INSERT INTO BUCHUNG VALUES (184, 81, 'DB', 90, 'TRU', 'FRA', '16-FEB-2010', 5000, 800); |
||||
|
INSERT INTO BUCHUNG VALUES (186, 81, 'DB', 90, 'TRU', 'FRA', '16-FEB-2012', 5000, 800); |
||||
|
INSERT INTO BUCHUNG VALUES (185, 81, 'DB', 91, 'FRA', 'TRU', '16-MAR-2010', 5000, 800); |
||||
|
INSERT INTO BUCHUNG VALUES (188, 81, 'LH', 51, 'CDG', 'FRA', '16-APR-2012', 5000, 500); |
||||
|
INSERT INTO BUCHUNG VALUES (187, 81, 'LH', 54, 'FRA', 'CDG', '17-FEB-2012', 5000, 500); |
||||
|
|
||||
|
|
||||
|
|
||||
|
commit; |
||||
|
|
@ -0,0 +1,118 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
INSERT INTO FLUG VALUES (91, 'AC', 10, 'YYZ', 'FRA', 1815, 740); |
||||
|
INSERT INTO FLUG VALUES (52, 'AC', 11, 'YUL', 'YYZ', 1500, 1700); |
||||
|
INSERT INTO FLUG VALUES (18, 'AF', 9, 'TXL', 'CDG', 915, 1040); |
||||
|
INSERT INTO FLUG VALUES (74, 'AF', 33, 'FRA', 'CDG', 900, 1010); |
||||
|
INSERT INTO FLUG VALUES (84, 'AF', 34, 'FRA', 'CDG', 1200, 1210); |
||||
|
INSERT INTO FLUG VALUES (1, 'AF', 35, 'CDG', 'FRA', 1400, 1500); |
||||
|
INSERT INTO FLUG VALUES (92, 'AF', 45, 'CDG', 'NRT', 1220, 730); |
||||
|
INSERT INTO FLUG VALUES (2, 'BA', 84, 'ORD', 'SFO', 1530, 1800); |
||||
|
INSERT INTO FLUG VALUES (66, 'BA', 86, 'FRA', 'LHR', 910, 1050); |
||||
|
INSERT INTO FLUG VALUES (3, 'BA', 87, 'LHR', 'FRA', 1310, 1450); |
||||
|
INSERT INTO FLUG VALUES (4, 'BA', 88, 'LHR', 'BHX', 1010, 1050); |
||||
|
INSERT INTO FLUG VALUES (5, 'BA', 90, 'LGW', 'BHX', 1020, 1150); |
||||
|
INSERT INTO FLUG VALUES (36, 'DB', 2, 'HHN', 'FRA', 1120, 1230); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (85, 'DB', 3, 'FRA', 'HHN', 1530, 1640); |
||||
|
INSERT INTO FLUG VALUES (19, 'DB', 6, 'ERF', 'FRA', 915, 945); |
||||
|
INSERT INTO FLUG VALUES (75, 'DB', 7, 'FRA', 'ERF', 1000, 1030); |
||||
|
INSERT INTO FLUG VALUES (20, 'DB', 8, 'MIR', 'FRA', 1000, 1230); |
||||
|
INSERT INTO FLUG VALUES (21, 'DB', 9, 'FRA', 'MIR', 1500, 1730); |
||||
|
INSERT INTO FLUG VALUES (67, 'DB', 10, 'DJE', 'FRA', 1000, 1230); |
||||
|
INSERT INTO FLUG VALUES (6, 'DB', 11, 'FRA', 'DJE', 1500, 1730); |
||||
|
INSERT INTO FLUG VALUES (76, 'DB', 14, 'LYS', 'FRA', 1845, 1955); |
||||
|
INSERT INTO FLUG VALUES (37, 'DB', 15, 'FRA', 'LYS', 115, 230); |
||||
|
INSERT INTO FLUG VALUES (38, 'DB', 16, 'PMI', 'FRA', 455, 650); |
||||
|
INSERT INTO FLUG VALUES (68, 'DB', 17, 'FRA', 'PMI', 915, 1150); |
||||
|
INSERT INTO FLUG VALUES (93, 'DB', 18, 'DRS', 'FRA', 600, 700); |
||||
|
INSERT INTO FLUG VALUES (77, 'DB', 19, 'FRA', 'DRS', 1750, 1850); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (39, 'DB', 20, 'ALF', 'FRA', 630, 700); |
||||
|
INSERT INTO FLUG VALUES (78, 'DB', 21, 'FRA', 'ALF', 930, 1050); |
||||
|
INSERT INTO FLUG VALUES (86, 'DB', 22, 'PEK', 'FRA', 0, 800); |
||||
|
INSERT INTO FLUG VALUES (53, 'DB', 23, 'FRA', 'PEK', 1500, 2300); |
||||
|
INSERT INTO FLUG VALUES (40, 'DB', 24, 'KLU', 'FRA', 1050, 1250); |
||||
|
INSERT INTO FLUG VALUES (22, 'DB', 25, 'FRA', 'KLU', 1450, 1650); |
||||
|
INSERT INTO FLUG VALUES (23, 'DB', 28, 'TUN', 'FRA', 1000, 1230); |
||||
|
INSERT INTO FLUG VALUES (24, 'DB', 29, 'FRA', 'TUN', 1500, 1730); |
||||
|
INSERT INTO FLUG VALUES (94, 'DB', 32, 'MPL', 'FRA', 820, 1050); |
||||
|
INSERT INTO FLUG VALUES (69, 'DB', 33, 'FRA', 'MPL', 1210, 1440); |
||||
|
INSERT INTO FLUG VALUES (25, 'DB', 36, 'HAJ', 'FRA', 800, 900); |
||||
|
INSERT INTO FLUG VALUES (26, 'DB', 37, 'FRA', 'HAJ', 1200, 1300); |
||||
|
INSERT INTO FLUG VALUES (95, 'DB', 40, 'YYC', 'FRA', 815, 1715); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (27, 'DB', 41, 'FRA', 'YYC', 1830, 330); |
||||
|
INSERT INTO FLUG VALUES (28, 'DB', 42, 'SSH', 'FRA', 500, 900); |
||||
|
INSERT INTO FLUG VALUES (29, 'DB', 43, 'FRA', 'SSH', 1100, 1400); |
||||
|
INSERT INTO FLUG VALUES (7, 'DB', 46, 'LIM', 'FRA', 2055, 1830); |
||||
|
INSERT INTO FLUG VALUES (79, 'DB', 47, 'FRA', 'LIM', 2015, 820); |
||||
|
INSERT INTO FLUG VALUES (8, 'DB', 48, 'DUS', 'FRA', 915, 1000); |
||||
|
INSERT INTO FLUG VALUES (41, 'DB', 49, 'FRA', 'DUS', 1115, 1200); |
||||
|
INSERT INTO FLUG VALUES (96, 'DB', 54, 'SVO', 'FRA', 1620, 1745); |
||||
|
INSERT INTO FLUG VALUES (80, 'DB', 55, 'FRA', 'SVO', 1845, 2010); |
||||
|
INSERT INTO FLUG VALUES (87, 'DB', 56, 'BRE', 'FRA', 615, 700); |
||||
|
INSERT INTO FLUG VALUES (9, 'DB', 57, 'FRA', 'BRE', 800, 845); |
||||
|
INSERT INTO FLUG VALUES (54, 'DB', 58, 'LPA', 'FRA', 100, 550); |
||||
|
INSERT INTO FLUG VALUES (10, 'DB', 59, 'FRA', 'LPA', 1700, 2150); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (42, 'DB', 60, 'ISA', 'FRA', 415, 32); |
||||
|
INSERT INTO FLUG VALUES (43, 'DB', 61, 'FRA', 'ISA', 1750, 909); |
||||
|
INSERT INTO FLUG VALUES (55, 'DB', 62, 'HKG', 'FRA', 1000, 1700); |
||||
|
INSERT INTO FLUG VALUES (56, 'DB', 63, 'FRA', 'HKG', 1900, 800); |
||||
|
INSERT INTO FLUG VALUES (11, 'DB', 72, 'YDE', 'FRA', 2315, 725); |
||||
|
INSERT INTO FLUG VALUES (57, 'DB', 73, 'FRA', 'YDE', 1740, 2340); |
||||
|
INSERT INTO FLUG VALUES (58, 'DB', 74, 'CGK', 'FRA', 2300, 1000); |
||||
|
INSERT INTO FLUG VALUES (12, 'DB', 75, 'FRA', 'CGK', 1700, 1300); |
||||
|
INSERT INTO FLUG VALUES (70, 'DB', 76, 'MVR', 'FRA', 1000, 1700); |
||||
|
INSERT INTO FLUG VALUES (59, 'DB', 77, 'FRA', 'MVR', 1800, 100); |
||||
|
INSERT INTO FLUG VALUES (44, 'DB', 78, 'TLS', 'FRA', 830, 1000); |
||||
|
INSERT INTO FLUG VALUES (71, 'DB', 79, 'FRA', 'TLS', 1230, 1400); |
||||
|
INSERT INTO FLUG VALUES (72, 'DB', 80, 'SZG', 'FRA', 800, 1000); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (45, 'DB', 81, 'FRA', 'SZG', 1200, 1400); |
||||
|
INSERT INTO FLUG VALUES (60, 'DB', 82, 'CRT', 'FRA', 1000, 1230); |
||||
|
INSERT INTO FLUG VALUES (61, 'DB', 83, 'FRA', 'CRT', 1500, 1730); |
||||
|
INSERT INTO FLUG VALUES (46, 'DB', 90, 'TRU', 'FRA', 2200, 1020); |
||||
|
INSERT INTO FLUG VALUES (30, 'DB', 91, 'FRA', 'TRU', 1430, 2200); |
||||
|
INSERT INTO FLUG VALUES (13, 'DL', 7, 'ORD', 'SFO', 1140, 1530); |
||||
|
INSERT INTO FLUG VALUES (14, 'DL', 9, 'LAX', 'NRT', 2220, 1000); |
||||
|
INSERT INTO FLUG VALUES (97, 'DL', 33, 'SFO', 'LAX', 900, 1005); |
||||
|
INSERT INTO FLUG VALUES (98, 'JL', 12, 'TXL', 'KIX', 1355, 820); |
||||
|
INSERT INTO FLUG VALUES (31, 'LH', 5, 'FRA', 'TXL', 730, 830); |
||||
|
INSERT INTO FLUG VALUES (62, 'LH', 6, 'TXL', 'FRA', 930, 1030); |
||||
|
INSERT INTO FLUG VALUES (88, 'LH', 7, 'FRA', 'TXL', 1130, 1230); |
||||
|
INSERT INTO FLUG VALUES (63, 'LH', 8, 'TXL', 'FRA', 1230, 1330); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (47, 'LH', 9, 'FRA', 'TXL', 1430, 1530); |
||||
|
INSERT INTO FLUG VALUES (48, 'LH', 10, 'TXL', 'FRA', 1630, 1730); |
||||
|
INSERT INTO FLUG VALUES (15, 'LH', 20, 'TXL', 'CDG', 900, 1140); |
||||
|
INSERT INTO FLUG VALUES (32, 'LH', 24, 'TXL', 'FRA', 2130, 2310); |
||||
|
INSERT INTO FLUG VALUES (89, 'LH', 32, 'JFK', 'LAX', 1400, 1800); |
||||
|
INSERT INTO FLUG VALUES (16, 'LH', 34, 'FRA', 'SFO', 1015, 1245); |
||||
|
INSERT INTO FLUG VALUES (49, 'LH', 36, 'SFO', 'LAX', 1700, 1815); |
||||
|
INSERT INTO FLUG VALUES (90, 'LH', 40, 'FRA', 'LHR', 700, 815); |
||||
|
INSERT INTO FLUG VALUES (99, 'LH', 41, 'LHR', 'FRA', 1025, 1145); |
||||
|
INSERT INTO FLUG VALUES (50, 'LH', 42, 'FRA', 'LHR', 1300, 1415); |
||||
|
INSERT INTO FLUG VALUES (81, 'LH', 43, 'LHR', 'FRA', 1515, 1640); |
||||
|
INSERT INTO FLUG VALUES (64, 'LH', 44, 'FRA', 'LHR', 1600, 1715); |
||||
|
INSERT INTO FLUG VALUES (17, 'LH', 45, 'LHR', 'FRA', 1830, 2000); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (33, 'LH', 46, 'FRA', 'LHR', 2130, 2245); |
||||
|
INSERT INTO FLUG VALUES (51, 'LH', 47, 'LHR', 'FRA', 700, 820); |
||||
|
INSERT INTO FLUG VALUES (34, 'LH', 50, 'FRA', 'CDG', 710, 810); |
||||
|
INSERT INTO FLUG VALUES (100, 'LH', 51, 'CDG', 'FRA', 930, 1030); |
||||
|
INSERT INTO FLUG VALUES (82, 'LH', 52, 'FRA', 'CDG', 1210, 1310); |
||||
|
INSERT INTO FLUG VALUES (35, 'LH', 53, 'CDG', 'FRA', 1500, 1620); |
||||
|
INSERT INTO FLUG VALUES (73, 'LH', 54, 'FRA', 'CDG', 1740, 1850); |
||||
|
INSERT INTO FLUG VALUES (83, 'LH', 55, 'CDG', 'FRA', 2000, 2120); |
||||
|
INSERT INTO FLUG VALUES (65, 'LH', 60, 'FRA', 'BHX', 1005, 1130); |
||||
|
|
||||
|
|
||||
|
commit; |
||||
|
|
@ -0,0 +1,95 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (1, 'Collins', 'Phil', 'GB '); |
||||
|
INSERT INTO PASSAGIER VALUES (2, 'Sting', null, 'GB '); |
||||
|
INSERT INTO PASSAGIER VALUES (3, 'Bush', 'Kate', 'GB '); |
||||
|
INSERT INTO PASSAGIER VALUES (4, 'Jagger', 'Mick', 'GB '); |
||||
|
INSERT INTO PASSAGIER VALUES (5, 'Richards', 'Keith', 'GB '); |
||||
|
INSERT INTO PASSAGIER VALUES (6, 'Gabriel', 'Peter', 'GB '); |
||||
|
INSERT INTO PASSAGIER VALUES (7, 'Kaas', 'Patricia', 'F '); |
||||
|
INSERT INTO PASSAGIER VALUES (8, 'Lennox', 'Annie', 'GB '); |
||||
|
INSERT INTO PASSAGIER VALUES (9, 'Nannini', 'Gianna', 'I '); |
||||
|
INSERT INTO PASSAGIER VALUES (10, 'Meatloaf', null, 'USA'); |
||||
|
INSERT INTO PASSAGIER VALUES (11, 'Mercury', 'Freddie', 'GB '); |
||||
|
INSERT INTO PASSAGIER VALUES (12, 'Niedeggen', 'Wolfgang', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (13, 'Turner', 'Tina', 'USA'); |
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (14, 'John', 'Elton', null); |
||||
|
INSERT INTO PASSAGIER VALUES (15, 'Ramazotti', 'Eros', 'I '); |
||||
|
INSERT INTO PASSAGIER VALUES (16, 'Horn', 'Guildo', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (17, 'Miosga', 'Sarah', null); |
||||
|
INSERT INTO PASSAGIER VALUES (18, 'Miosga', 'Pascal', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (19, 'Maiwald', 'Kai', null); |
||||
|
INSERT INTO PASSAGIER VALUES (20, 'Maiwald ', 'Rudi', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (21, 'Burhenne', 'Matthias', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (22, 'Militz', 'Lukas', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (23, 'Hohmeyer', 'Melanie', null); |
||||
|
INSERT INTO PASSAGIER VALUES (24, 'Hohmeyer', 'Holger', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (25, 'Bayer', 'Daniel', null); |
||||
|
INSERT INTO PASSAGIER VALUES (26, 'Bayer', 'Eberhard', 'D '); |
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (27, 'Hennecke', 'Christian', null); |
||||
|
INSERT INTO PASSAGIER VALUES (28, 'Hennecke', 'Markus', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (29, 'Gueclue', 'Ilkem', null); |
||||
|
INSERT INTO PASSAGIER VALUES (30, 'Gueclue', 'Erdem', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (31, 'Tepel', 'Andreas', null); |
||||
|
INSERT INTO PASSAGIER VALUES (32, 'Tepel', 'Martin', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (35, 'Mueller', 'Tatjana', null); |
||||
|
INSERT INTO PASSAGIER VALUES (36, 'Mueller', 'Susi', null); |
||||
|
INSERT INTO PASSAGIER VALUES (37, 'Reinel', 'Mario', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (38, 'Reinel', 'Martin', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (39, 'Lamps', 'Bob', null); |
||||
|
INSERT INTO PASSAGIER VALUES (40, 'Lamps', 'Tom', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (41, 'Bostanci', 'Hueseyin', 'D '); |
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (42, 'Bostanci', 'Sinan', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (43, 'Hahn', 'Rene', null); |
||||
|
INSERT INTO PASSAGIER VALUES (44, 'Hahn', 'Donald', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (45, 'Bailleu', 'Pascal', null); |
||||
|
INSERT INTO PASSAGIER VALUES (47, 'Hahn', 'Andre', null); |
||||
|
INSERT INTO PASSAGIER VALUES (48, 'Hahn', 'Thomas', null); |
||||
|
INSERT INTO PASSAGIER VALUES (49, 'Scholz', 'Juergen', null); |
||||
|
INSERT INTO PASSAGIER VALUES (50, 'Scholz', 'Gerhard', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (51, 'Harasty', 'Sascha', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (52, 'Harasty', 'Simon', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (53, 'Schmitt', 'Stefan', null); |
||||
|
INSERT INTO PASSAGIER VALUES (55, 'Schmitt', 'Franz', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (56, 'Mahr', 'Florian', 'D '); |
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (57, 'Paulheim', 'Annika', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (58, 'Klomann', 'Marcel', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (59, 'Saseno', 'Widya', 'ID '); |
||||
|
INSERT INTO PASSAGIER VALUES (60, 'Ruppel', 'Florian', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (61, 'Knabe', 'Nico', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (62, 'Lied', 'Christian', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (63, 'Hesse', 'Sebastian', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (64, 'Meuer', 'Bjoern', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (65, 'Stock', 'Jan', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (66, 'Tobert', 'Stefan', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (67, 'Kouada', 'Hichem', 'TUN'); |
||||
|
INSERT INTO PASSAGIER VALUES (68, 'Englert', 'Michael', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (69, 'Ksaier', 'Nejib', 'TUN'); |
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (70, 'Helmke', 'Christian', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (71, 'Gannouni', 'Walid', 'TUN'); |
||||
|
INSERT INTO PASSAGIER VALUES (72, 'Sanama', 'Gaspard', 'CMR'); |
||||
|
INSERT INTO PASSAGIER VALUES (73, 'Fessi', 'Aymen', 'TUN'); |
||||
|
INSERT INTO PASSAGIER VALUES (74, 'Pei', 'Tao', 'CHN'); |
||||
|
INSERT INTO PASSAGIER VALUES (75, 'Dehler', 'Tatjana', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (76, 'Sprenger', 'Sebastian', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (77, 'Heinz', 'Patrik', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (78, 'Haas', 'Bastian', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (79, 'Hahn', 'Benedikt', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (80, 'Wald', 'Daniel', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (81, 'Schaefer', 'Thilo', 'D '); |
||||
|
INSERT INTO PASSAGIER VALUES (82, 'Nguentcheng', 'Alexandre', 'CMR'); |
||||
|
|
||||
|
|
||||
|
|
||||
|
commit; |
||||
|
|
@ -0,0 +1,35 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
-- ======================================================================= |
||||
|
-- BOOKINGS |
||||
|
-- ======================================================================= |
||||
|
|
||||
|
|
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
/* DELETE ONE TUPLE */ |
||||
|
DELETE FROM BUCHUNG WHERE BNR = 80; |
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
/* DELETE FROM ONE PARTITIONS */ |
||||
|
DELETE FROM BUCHUNG WHERE VON = 'CDG'; |
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
/* DELETE FROM TWO PARTITIONS */ |
||||
|
DELETE FROM BUCHUNG WHERE FLC = 'DL'; |
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
/* DELETE OVER ALL PARTITONS */ |
||||
|
DELETE FROM BUCHUNG WHERE FLC = 'DB'; |
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
/* DELETE ALL */ |
||||
|
DELETE FROM BUCHUNG; |
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,90 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
-- ======================================================================= |
||||
|
-- BOOKINGS |
||||
|
-- ======================================================================= |
||||
|
|
||||
|
|
||||
|
/* CHECK MEILEN > 0 */ |
||||
|
INSERT INTO BUCHUNG VALUES (200, 80, 'LH', 54, 'FRA', 'CDG', '19-SEP-2012', -200, 243); |
||||
|
|
||||
|
/* CHECK PREIS NOT NULL */ |
||||
|
INSERT INTO BUCHUNG VALUES (201, 80, 'LH', 54, 'FRA', 'CDG', '19-SEP-2012', 300, NULL); |
||||
|
|
||||
|
/* CHECK FK PNR */ |
||||
|
INSERT INTO BUCHUNG VALUES (202, 500, 'DB', 90, 'TRU', 'FRA', '16-FEB-2011', 5000, 800); |
||||
|
|
||||
|
/* CHECK FK FLC */ |
||||
|
INSERT INTO BUCHUNG VALUES (203, 80, 'ZZ', 90, 'TRU', 'FRA', '16-MAY-2011', 5000, 800); |
||||
|
|
||||
|
/* CHECK FK VON */ |
||||
|
INSERT INTO BUCHUNG VALUES (204, 81, 'DB', 90, 'ZZZ', 'FRA', '12-FEB-2010', 5000, 800); |
||||
|
|
||||
|
/* CHECK FK NACH */ |
||||
|
INSERT INTO BUCHUNG VALUES (205, 81, 'DB', 90, 'TRU', 'ZZZ', '11-FEB-2012', 5000, 800); |
||||
|
|
||||
|
/* CHECK PK BNR NOT DISTRIBUTED */ |
||||
|
INSERT INTO BUCHUNG VALUES (184, 81, 'DB', 90, 'TRU', 'FRA', '16-FEB-2010', 5000, 800); |
||||
|
|
||||
|
/* CHECK PK BNR DISTRIBUTED CDG NOT IN SAME PARTITION AS TRU */ |
||||
|
INSERT INTO BUCHUNG VALUES (184, 81, 'DB', 90, 'CDG', 'FRA', '16-FEB-2010', 5000, 800); |
||||
|
|
||||
|
|
||||
|
-- ======================================================================= |
||||
|
-- FLIGHTS |
||||
|
-- ======================================================================= |
||||
|
|
||||
|
|
||||
|
/* CHECK VON NOT NULL */ |
||||
|
INSERT INTO FLUG VALUES (300, 'LH', 46, NULL, 'LHR', 2130, 2245); |
||||
|
|
||||
|
/* CHECK NACH NOT NULL */ |
||||
|
INSERT INTO FLUG VALUES (301, 'LH', 47, 'LHR', NULL, 700, 820); |
||||
|
|
||||
|
/* CHECK AB NOT NULL */ |
||||
|
INSERT INTO FLUG VALUES (302, 'LH', 50, 'FRA', 'CDG', NULL, 810); |
||||
|
|
||||
|
/* CHECK AN NOT NULL */ |
||||
|
INSERT INTO FLUG VALUES (303, 'LH', 51, 'CDG', 'FRA', 930, NULL); |
||||
|
|
||||
|
/* CHECK AB RANGE */ |
||||
|
INSERT INTO FLUG VALUES (304, 'LH', 52, 'FRA', 'CDG', 9000, 1310); |
||||
|
|
||||
|
/* CHECK AN RANGE */ |
||||
|
INSERT INTO FLUG VALUES (305, 'LH', 53, 'CDG', 'FRA', 1500, 9000); |
||||
|
|
||||
|
/* CHECK VONNACH RANGE */ |
||||
|
INSERT INTO FLUG VALUES (306, 'LH', 54, 'FRA', 'FRA', 1740, 1850); |
||||
|
|
||||
|
/* CHECK FK FLC */ |
||||
|
INSERT INTO FLUG VALUES (307, 'ZZ', 55, 'CDG', 'FRA', 2000, 2120); |
||||
|
|
||||
|
/* CHECK FK VON */ |
||||
|
INSERT INTO FLUG VALUES (308, 'LH', 55, 'YYY', 'FRA', 2000, 2120); |
||||
|
|
||||
|
/* CHECK FK NACH */ |
||||
|
INSERT INTO FLUG VALUES (309, 'LH', 55, 'CDG', 'YYY', 2000, 2120); |
||||
|
|
||||
|
/* CHECK PK FNR NOT DISTRIBUTED */ |
||||
|
INSERT INTO FLUG VALUES (088, 'LH', 7, 'FRA', 'TXL', 1130, 1230); |
||||
|
|
||||
|
/* CHECK PK FNR DISTRIBUTED */ |
||||
|
INSERT INTO FLUG VALUES (088, 'LH', 7, 'FRA', 'TXL', 1800, 1930); |
||||
|
|
||||
|
/* CHECK VONNACH DISTRIBUTED ON ALL SITES */ |
||||
|
INSERT INTO FLUG VALUES (310, 'LH', 54, 'FRA', 'FRA', 0700, 0800); |
||||
|
INSERT INTO FLUG VALUES (311, 'LH', 54, 'FRA', 'FRA', 0900, 1000); |
||||
|
INSERT INTO FLUG VALUES (312, 'LH', 54, 'FRA', 'FRA', 1700, 1800); |
||||
|
|
||||
|
/* CHECK FK FLC DISTRIBUTED ON ALL SITES */ |
||||
|
INSERT INTO FLUG VALUES (313, 'ZZ', 54, 'FRA', 'FRA', 0700, 0800); |
||||
|
INSERT INTO FLUG VALUES (314, 'ZZ', 54, 'FRA', 'FRA', 0900, 1000); |
||||
|
INSERT INTO FLUG VALUES (315, 'ZZ', 54, 'FRA', 'FRA', 1700, 1800); |
||||
|
|
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,36 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
/* SELECT ORDER BY */ |
||||
|
SELECT * FROM FLUGLINIE ORDER BY LAND ASC; |
||||
|
|
||||
|
|
||||
|
/* SELECT ORDER BY WHERE */ |
||||
|
SELECT PNR, NAME, LAND FROM PASSAGIER WHERE PNR <= 16 ORDER BY NAME ASC; |
||||
|
SELECT PNR, NAME, LAND FROM PASSAGIER WHERE PNR <= 16 ORDER BY NAME DESC; |
||||
|
|
||||
|
/* SELECT ORDER BY NOTHING */ |
||||
|
SELECT * FROM BUCHUNG WHERE BNR > 333 ORDER BY 2 DESC; |
||||
|
|
||||
|
|
||||
|
/* SELECT ORDER BY GROUP BY */ |
||||
|
SELECT FLC, COUNT(*) FROM BUCHUNG GROUP BY FLC ORDER BY 2 DESC; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY WHERE NOTHING */ |
||||
|
SELECT FLC, COUNT(*) FROM FLUG WHERE (VON = 'ZZZ') GROUP BY FLC; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY HAVING */ |
||||
|
SELECT PNR, SUM(MEILEN) FROM BUCHUNG GROUP BY PNR HAVING COUNT (*) = 1; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY HAVING WHERE */ |
||||
|
SELECT VON, MAX(PREIS) FROM BUCHUNG WHERE (BNR > 20) GROUP BY VON HAVING COUNT (*) > 2; |
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,30 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
/* SELECT ONE TUPLE */ |
||||
|
SELECT * FROM FLUGLINIE WHERE FLC = 'BA'; |
||||
|
|
||||
|
/* SELECT FROM ONE PARTITION */ |
||||
|
SELECT FLC, NAME, LAND FROM FLUGLINIE WHERE NAME = 'United Airlines'; |
||||
|
|
||||
|
/* SELECT TWO ALL PARTITONS */ |
||||
|
SELECT FLC, NAME, LAND FROM FLUGLINIE WHERE ALLIANZ = 'Star'; |
||||
|
SELECT FLC, NAME, LAND FROM FLUGLINIE WHERE (FLC = 'AF') OR (FLC = 'UA'); |
||||
|
|
||||
|
/* SELECT FROM ALL PARTITIONS */ |
||||
|
SELECT FLC, NAME, LAND FROM FLUGLINIE WHERE (ALLIANZ = 'Star') OR (ALLIANZ = 'SkyTeam'); |
||||
|
|
||||
|
/* SELECT ALL */ |
||||
|
SELECT FLC, NAME FROM FLUGLINIE; |
||||
|
|
||||
|
/* SELECT NOTHING */ |
||||
|
SELECT * FROM FLUGLINIE WHERE LAND = 'CZ'; |
||||
|
SELECT * FROM FLUGLINIE WHERE (LAND = 'D') AND (ALLIANZ = 'Star'); |
||||
|
|
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,28 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY */ |
||||
|
SELECT FLC, COUNT(*) FROM FLUG GROUP BY FLC; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY WHERE */ |
||||
|
SELECT FLC, COUNT(*) FROM FLUG WHERE (VON = 'FRA') GROUP BY FLC; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY WHERE NOTHING */ |
||||
|
SELECT FLC, COUNT(*) FROM FLUG WHERE (VON = 'ZZZ') GROUP BY FLC; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY HAVING */ |
||||
|
SELECT PNR, SUM(MEILEN) FROM BUCHUNG GROUP BY PNR HAVING COUNT (*) = 1; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY HAVING WHERE */ |
||||
|
SELECT VON, MAX(PREIS) FROM BUCHUNG WHERE (BNR > 20) GROUP BY VON HAVING COUNT (*) > 2; |
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,50 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
/* SELECT WHOLE TABLES */ |
||||
|
SELECT FLUG.FNR, FLUG.FLC, FLUG.FLNR, FLUGLINIE.NAME, FLUG.VON, FLUG.NACH |
||||
|
FROM FLUG, FLUGLINIE |
||||
|
WHERE (FLUG.FLC = FLUGLINIE.FLC); |
||||
|
|
||||
|
|
||||
|
/* SELECT ONE CONJUNCTIVE RESTRICTION */ |
||||
|
SELECT FLUG.FNR, FLUG.FLC, FLUG.FLNR, FLUGLINIE.NAME, FLUG.VON, FLUG.NACH |
||||
|
FROM FLUG, FLUGLINIE |
||||
|
WHERE (FLUG.FLC = FLUGLINIE.FLC) |
||||
|
AND (FLUG.NACH = 'CDG'); |
||||
|
|
||||
|
|
||||
|
/* SELECT TWO CONJUNCTIVE RESTRICTIONS ON ONE TABLE */ |
||||
|
SELECT FLUG.FNR, FLUG.FLC, FLUG.FLNR, FLUGLINIE.NAME, FLUG.VON, FLUG.NACH |
||||
|
FROM FLUG, FLUGLINIE |
||||
|
WHERE (FLUG.FLC = FLUGLINIE.FLC) |
||||
|
AND (FLUG.NACH = 'CDG' AND FLUG.VON = 'FRA'); |
||||
|
|
||||
|
|
||||
|
/* SELECT TWO CONJUNCTIVE RESTRICTIONS ONE PER TABLE */ |
||||
|
SELECT FLUG.FNR, FLUG.FLC, FLUG.FLNR, FLUGLINIE.NAME, FLUG.VON, FLUG.NACH |
||||
|
FROM FLUG, FLUGLINIE |
||||
|
WHERE (FLUG.FLC = FLUGLINIE.FLC) |
||||
|
AND (FLUG.NACH = 'CDG' AND FLUGLINIE.LAND = 'D '); |
||||
|
|
||||
|
|
||||
|
/* SELECT ONE DISJUNCTIVE RESTRICTION ON ONE TABLE */ |
||||
|
SELECT BUCHUNG.BNR, BUCHUNG.PNR, BUCHUNG.FLC, BUCHUNG.FLNR, BUCHUNG.FLNR, BUCHUNG.PREIS |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE BUCHUNG.PNR = PASSAGIER.PNR |
||||
|
AND (PASSAGIER.PNR < 3 OR PASSAGIER.PNR = 12); |
||||
|
|
||||
|
|
||||
|
/* SELECT ONE DISJUNCTIVE RESTRICTION ON TWO TABLES */ |
||||
|
SELECT BUCHUNG.BNR, BUCHUNG.PNR, BUCHUNG.FLC, BUCHUNG.FLNR, BUCHUNG.FLNR, BUCHUNG.PREIS |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE BUCHUNG.PNR = PASSAGIER.PNR |
||||
|
AND (PASSAGIER.PNR < 3 OR BUCHUNG.BNR < 9); |
||||
|
|
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,36 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
-- ======================================================================= |
||||
|
-- BOOKINGS |
||||
|
-- ======================================================================= |
||||
|
|
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
/* UPDATE ONE TUPLE */ |
||||
|
UPDATE BUCHUNG SET TAG = '01-JAN-2014' WHERE BNR = 80; |
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
/* UPDATE IN ONE PARTITION */ |
||||
|
UPDATE BUCHUNG SET TAG = '01-FEB-2015' WHERE VON = 'FRA'; |
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
/* UPDATE ALL */ |
||||
|
UPDATE BUCHUNG SET MEILEN = 1000; |
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
SELECT COUNT(*) FROM FLUG; |
||||
|
|
||||
|
/* UPDATE CHANGE OF PARTITION 1500 --> 0700 */ |
||||
|
UPDATE FLUG SET AB = 0700 WHERE FNR = 52; |
||||
|
SELECT COUNT(*) FROM FLUG; |
||||
|
|
||||
|
/* UPDATE CHANGE OF PARTITION 1310 --> 1120 */ |
||||
|
UPDATE FLUG SET AB = 1120 WHERE FNR = 3; |
||||
|
SELECT COUNT(*) FROM FLUG; |
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,120 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
create table FLUGHAFEN ( |
||||
|
FHC varchar(3), |
||||
|
LAND varchar(3), |
||||
|
STADT varchar(50) default null, |
||||
|
NAME varchar(50) default null, |
||||
|
constraint FLUGHAFEN_PS |
||||
|
primary key (FHC) |
||||
|
); |
||||
|
|
||||
|
create table FLUGLINIE ( |
||||
|
FLC varchar(2), |
||||
|
LAND varchar(3), |
||||
|
HUB varchar(3) default null, |
||||
|
NAME varchar(30) default null, |
||||
|
ALLIANZ varchar(20) default null, |
||||
|
constraint FLUGLINIE_LAND_NN |
||||
|
check (LAND is not null), |
||||
|
constraint FLUGLINIE_ALLIANZ_CHK |
||||
|
check (ALLIANZ in ('Star','Excellence','Leftover','OneWorld','SkyTeam')), |
||||
|
constraint FLUGLINIE_PS |
||||
|
primary key (FLC), |
||||
|
constraint FLUGLINIE_FS_HUB |
||||
|
foreign key (HUB) references FLUGHAFEN(FHC) |
||||
|
) |
||||
|
HORIZONTAL (FLC('KK','MM')); |
||||
|
|
||||
|
create table FLUG ( |
||||
|
FNR integer, |
||||
|
FLC varchar(2), |
||||
|
FLNR integer, |
||||
|
VON varchar(3), |
||||
|
NACH varchar(3), |
||||
|
AB integer, |
||||
|
AN integer, |
||||
|
constraint FLUG_VON_NN |
||||
|
check (VON is not null), |
||||
|
constraint FLUG_NACH_NN |
||||
|
check (NACH is not null), |
||||
|
constraint FLUG_AB_NN |
||||
|
check (AB is not null), |
||||
|
constraint FLUG_AN_NN |
||||
|
check (AN is not null), |
||||
|
constraint FLUG_AB_CHK |
||||
|
check (AB between 0 and 2400), |
||||
|
constraint FLUG_AN_CHK |
||||
|
check (AN between 0 and 2400), |
||||
|
constraint FLUG_VONNACH_CHK |
||||
|
check (VON != NACH), |
||||
|
constraint FLUG_PS |
||||
|
primary key (FNR), |
||||
|
constraint FLUG_FS_FLC |
||||
|
foreign key (FLC) references FLUGLINIE(FLC), |
||||
|
constraint FLUG_FS_VON |
||||
|
foreign key (VON) references FLUGHAFEN(FHC), |
||||
|
constraint FLUG_FS_NACH |
||||
|
foreign key (NACH) references FLUGHAFEN(FHC) |
||||
|
) |
||||
|
HORIZONTAL (FLC('KK','MM'));; |
||||
|
|
||||
|
|
||||
|
create table PASSAGIER ( |
||||
|
PNR integer, |
||||
|
NAME varchar(40), |
||||
|
VORNAME varchar(40) default null, |
||||
|
LAND varchar(3) default null, |
||||
|
GEBORT varchar(50) default null, |
||||
|
GEBDAT varchar(20) default null, |
||||
|
GEBDATINT integer default null, |
||||
|
constraint PASSAGIER_NAME_NN |
||||
|
check (NAME is not null), |
||||
|
constraint PASSAGIER_GEBDATINT_CHK |
||||
|
check (GEBDATINT > 0), |
||||
|
constraint PASSAGIER_PS |
||||
|
primary key (PNR) |
||||
|
) |
||||
|
HORIZONTAL (GEBDATINT(17000,25000)); |
||||
|
; |
||||
|
|
||||
|
|
||||
|
create table BUCHUNG ( |
||||
|
BNR integer, |
||||
|
PNR integer, |
||||
|
FLC varchar(2), |
||||
|
FLNR integer, |
||||
|
VON varchar(3), |
||||
|
NACH varchar(3), |
||||
|
TAG varchar(20), |
||||
|
MEILEN integer, |
||||
|
PREIS integer, |
||||
|
TAGINT integer default null, |
||||
|
constraint BUCHUNG_NACH_NN |
||||
|
check (NACH is not null), |
||||
|
constraint BUCHUNG_MEILEN_NN |
||||
|
check (MEILEN is not null), |
||||
|
constraint BUCHUNG_PREIS_NN |
||||
|
check (PREIS is not null), |
||||
|
constraint BUCHUNG_MEILEN_CHK |
||||
|
check (MEILEN >= 0), |
||||
|
constraint BUCHUNG_PREIS_CHK |
||||
|
check (PREIS > 0), |
||||
|
constraint BUCHUNG_TAGINT_CHK |
||||
|
check (TAGINT > 0), |
||||
|
constraint BUCHUNG_PS |
||||
|
primary key (BNR), |
||||
|
constraint BUCHUNG_FS_PNR |
||||
|
foreign key (PNR) references PASSAGIER(PNR), |
||||
|
constraint BUCHUNG_FS_FLC |
||||
|
foreign key (FLC) references FLUGLINIE(FLC), |
||||
|
constraint BUCHUNG_FS_VON |
||||
|
foreign key (VON) references FLUGHAFEN(FHC), |
||||
|
constraint BUCHUNG_FS_NACH |
||||
|
foreign key (NACH) references FLUGHAFEN(FHC) |
||||
|
) |
||||
|
HORIZONTAL (FLC('KK','MM')); |
@ -0,0 +1,15 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
drop table BUCHUNG cascade constraints; |
||||
|
|
||||
|
drop table PASSAGIER cascade constraints; |
||||
|
|
||||
|
drop table FLUG cascade constraints; |
||||
|
|
||||
|
drop table FLUGLINIE cascade constraints; |
||||
|
|
||||
|
drop table FLUGHAFEN cascade constraints; |
50072
src/main/resources/Validation/INSERT-BUCHUNG-10K-5.SQL
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
10004
src/main/resources/Validation/INSERT-PASSAGIER-10K-5.SQL
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,28 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
INSERT INTO FLUGLINIE VALUES ('AB', 'D ', null, 'Air Berlin', null); |
||||
|
INSERT INTO FLUGLINIE VALUES ('AC', 'CDN', null, 'Air Canada', 'Star'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('AF', 'F ', null, 'Air France', 'SkyTeam'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('BA', 'GB ', null, 'British Airways', 'OneWorld'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('DB', 'D ', null, 'Database Airlines', null); |
||||
|
INSERT INTO FLUGLINIE VALUES ('DI', 'D ', null, 'Deutsche BA', null); |
||||
|
INSERT INTO FLUGLINIE VALUES ('DL', 'USA', null, 'Delta Airlines', 'SkyTeam'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('JL', 'J ', null, 'Japan Airlines', 'OneWorld'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('LH', 'D ', null, 'Lufthansa', 'Star'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('NH', 'J ', null, 'All Nippon Airways', 'Star'); |
||||
|
INSERT INTO FLUGLINIE VALUES ('UA', 'USA', null, 'United Airlines', 'Star'); |
||||
|
|
||||
|
update FLUGLINIE set ALLIANZ = 'SkyTeam' where FLC = 'DL'; |
||||
|
update FLUGLINIE set ALLIANZ = 'SkyTeam' where FLC = 'AF'; |
||||
|
update FLUGLINIE set ALLIANZ = 'OneWorld' where FLC = 'JL'; |
||||
|
update FLUGLINIE set ALLIANZ = 'OneWorld' where FLC = 'BA'; |
||||
|
|
||||
|
update FLUGLINIE set HUB = NULL; |
||||
|
|
||||
|
commit; |
||||
|
|
@ -0,0 +1,103 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('AKL', 'NZ ', 'Auckland', 'Auckland International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ALC', 'E ', 'Alicante', 'Alicante'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ALF', 'N ', 'Alta', 'Flughafen Alta'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ANC', 'USA', 'Anchorage', 'Ted Stevens AIA'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ARN', 'S ', 'Stockholm', 'Arlanda'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('BCN', 'E ', 'Barcelona', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('BHX', 'GB ', 'Birmingham', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('BOS', 'USA', 'Boston', 'Edward Lawrence Logan'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('BRE', 'D ', 'Bremen', 'City Airport Bremen'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('BRS', 'GB ', 'Bristol', 'International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('CDG', 'F ', 'Paris', 'Charles de Gaulle'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('CGK', 'ID ', 'Jakarta', 'Sukarno-Hatta Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('CGN', 'D ', 'Koeln', 'Konrad-Adenauer'); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('CPH', 'DK ', 'Kopenhagen', 'Kastrup'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('CPT', 'RSA', 'Kapstadt', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('CRT', 'TUN', 'Chartage', 'Tunesien'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('DJE', 'TUN', 'Djerba', 'Aeroport de Djerba'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('DRS', 'D ', 'Dresden', 'Dresden Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('DUS', 'D ', 'Duesseldorf', 'Duesseldorf International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('EDI', 'GB ', 'Edinburgh', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ERF', 'D ', 'Erfurt', 'Flughafen Erfurt'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('FCO', 'I ', 'Rom', 'Fiumicino'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('FDH', 'D ', 'Friedrichshafen', 'Bodensee-Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('FLR', 'I ', 'Florenz', 'Peretola'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('FRA', 'D ', 'Frankfurt', 'Rhein-Main'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('GOT', 'S ', 'Goeteborg', 'Landvetter'); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('GRZ', 'A ', 'Graz', 'Flughafen Graz'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('GVA', 'CH ', 'Genf', 'Flughafen Genf'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('HAJ', 'D ', 'Hannover', 'Langenhagen'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('HHN', 'D ', 'Hahn', 'Flughafen Hahn'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('HKG', 'CHN', 'HongKong', 'HongKong International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('HRG', 'EG ', 'Hurghada', 'International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('IAD', 'USA', 'Washington', 'Dulles'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ISA', 'AUS', 'Mount Isa', 'Queensland'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('IST', 'TR ', 'Istanbul', 'Atatürk'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('JFK', 'USA', 'New York', 'John F. Kennedy'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('KIX', 'J ', 'Osaka', 'Kansai'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('KLU', 'D ', 'Klagenfurt', 'Klagenfurter Flughafen'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('KSF', 'D ', 'Kassel', 'Calden'); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('LAX', 'USA', 'Los Angeles', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('LGW', 'GB ', 'London', 'Gatwick'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('LHR', 'GB ', 'London', 'Heathrow'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('LIM', 'PE ', 'Lima', 'Jorge Chávez'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('LPA', 'E ', 'Las Palmas', 'Las Palmas Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('LYS', 'F ', 'Lyon', 'Saint-Exupery'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MAN', 'GB ', 'Manchester', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MCO', 'USA', 'Orlando', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MIR', 'TUN', 'Monastir', 'Aéroport Monastir'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MPL', 'F ', 'Montpellier', 'Montpellier Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MRS', 'F ', 'Marseille', 'Marseille Provence'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MUC', 'D ', 'Munich', 'Franz-Josef Strauss'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('MVR', 'CMR', 'Maroua', 'Maroua Salek Airport'); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('NAP', 'I ', 'Neapel', 'Capodichino'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('NCE', 'D ', 'Nice', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('NRT', 'J ', 'Tokio', 'Narita'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('NUE', 'D ', 'Nuernberg', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ORD', 'USA', 'Chicago', 'OHare'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ORY', 'F ', 'Paris', 'Orly'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('OSL', 'N ', 'Oslo', 'Oslo Gardermoen'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('PAD', 'D ', 'Paderborn', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('PEK', 'CHN', 'Peking', 'Beijing Shoudu Guoji Jichang'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('PMI', 'E ', 'Palma', 'Aeropuerto de Son Sant Joan'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('SEA', 'USA', 'Seattle', 'Seattle-Tacoma'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('SFO', 'USA', 'San Francisco', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('SSH', 'ET ', 'Sharm El Sheikh', 'Sharm El Sheikh Nat. Airport'); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('STN', 'GB ', 'London', 'Stanstead'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('SVO', 'RUS', 'Moskau', 'Scheremetjewo'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('SZG', 'A ', 'Salzburg', 'Salzburg Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TFS', 'E ', 'Granadilla', 'Teneriffa/Süd'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TLS', 'F ', 'Toulouse', 'Blagnac'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TRD', 'N ', 'Trondheim', 'Vaernes'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TRU', 'PE ', 'Trujillo', ''); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TUN', 'TUN', 'Aeroport de Tunis', 'Tunis'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('TXL', 'D ', 'Berlin', 'Tegel'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('VCE', 'I ', 'Venedig', 'Marco Polo'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('VIE', 'A ', 'Wien', 'Schwechat'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('VLC', 'E ', 'Valencia', 'Manises'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('YDE', 'CMR', 'Yaounde', null); |
||||
|
|
||||
|
INSERT INTO FLUGHAFEN VALUES ('YUL', 'CDN', 'Montreal', 'Pierre Elliot Trudeau'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('YVR', 'CDN', 'Vancouver', 'Vancouver International'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('YYC', 'CDN', 'Calgary', 'Municipal Airport'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('YYZ', 'CDN', 'Toronto', 'Lester Pearson'); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ZAZ', 'E ', 'Zaragoza', null); |
||||
|
INSERT INTO FLUGHAFEN VALUES ('ZRH', 'CH ', 'Zuerich', 'Kloten'); |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
commit; |
||||
|
|
@ -0,0 +1,216 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (71, 1, 'LH', 32, 'FRA', 'LAX', '03-SEP-1997', 5800, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (72, 1, 'LH', 34, 'FRA', 'SFO', '09-NOV-1997', 5700, 2800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (73, 2, 'DL', 9, 'FRA', 'LAX', '09-NOV-1997', 5800, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (74, 3, 'AF', 33, 'FRA', 'CDG', '10-OCT-1997', 300, 1800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (75, 3, 'AF', 45, 'CDG', 'NRT', '10-OCT-1997', 6200, 8000, null); |
||||
|
INSERT INTO BUCHUNG VALUES (77, 5, 'AF', 9, 'TXL', 'CDG', '09-SEP-1997', 500, 400, null); |
||||
|
INSERT INTO BUCHUNG VALUES (78, 5, 'AF', 9, 'TXL', 'CDG', '29-SEP-1997', 500, 800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (79, 5, 'AF', 9, 'TXL', 'CDG', '12-DEC-1997', 500, 400, null); |
||||
|
INSERT INTO BUCHUNG VALUES (76, 5, 'LH', 32, 'FRA', 'JFK', '12-AUG-1997', 3900, 2000, null); |
||||
|
INSERT INTO BUCHUNG VALUES (80, 6, 'DL', 9, 'JFK', 'NRT', '13-NOV-1997', 6100, 4000, null); |
||||
|
INSERT INTO BUCHUNG VALUES (82, 7, 'AF', 33, 'FRA', 'CDG', '12-OCT-1997', 300, 1900, null); |
||||
|
INSERT INTO BUCHUNG VALUES (81, 7, 'DL', 9, 'JFK', 'NRT', '15-FEB-1997', 6100, 4000, null); |
||||
|
INSERT INTO BUCHUNG VALUES (85, 9, 'DL', 7, 'FRA', 'SFO', '17-AUG-1997', 5700, 4000, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (86, 9, 'DL', 9, 'FRA', 'JFK', '20-DEC-1997', 3900, 2000, null); |
||||
|
INSERT INTO BUCHUNG VALUES (87, 9, 'DL', 33, 'SFO', 'LAX', '09-OCT-1997', 500, 600, null); |
||||
|
INSERT INTO BUCHUNG VALUES (88, 9, 'DL', 33, 'SFO', 'LAX', '23-NOV-1997', 500, 800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (84, 9, 'JL', 12, 'FRA', 'KIX', '18-NOV-1997', 7200, 5400, null); |
||||
|
INSERT INTO BUCHUNG VALUES (83, 9, 'LH', 34, 'FRA', 'SFO', '29-JUL-1997', 5700, 800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (89, 11, 'LH', 5, 'FRA', 'TXL', '11-APR-1998', 500, 700, null); |
||||
|
INSERT INTO BUCHUNG VALUES (90, 12, 'AF', 45, 'CDG', 'NRT', '10-JAN-1998', 6200, 2500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (91, 16, 'LH', 40, 'FRA', 'LHR', '18-MAY-1998', 500, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (24, 21, 'DB', 2, 'HHN', 'FRA', '12-AUG-2010', 40, 60, null); |
||||
|
INSERT INTO BUCHUNG VALUES (26, 21, 'DB', 2, 'HHN', 'FRA', '12-AUG-2012', 40, 60, null); |
||||
|
INSERT INTO BUCHUNG VALUES (25, 21, 'DB', 3, 'FRA', 'HHN', '12-SEP-2010', 40, 60, null); |
||||
|
INSERT INTO BUCHUNG VALUES (29, 21, 'DB', 3, 'FRA', 'HHN', '12-OCT-2012', 40, 60, null); |
||||
|
INSERT INTO BUCHUNG VALUES (28, 21, 'LH', 51, 'CDG', 'FRA', '12-OCT-2012', 300, 250, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (27, 21, 'LH', 54, 'FRA', 'CDG', '12-AUG-2012', 300, 250, null); |
||||
|
INSERT INTO BUCHUNG VALUES (30, 22, 'DB', 42, 'SSH', 'FRA', '01-MAY-2010', 2000, 300, null); |
||||
|
INSERT INTO BUCHUNG VALUES (32, 22, 'DB', 42, 'SSH', 'FRA', '01-MAY-2011', 2000, 300, null); |
||||
|
INSERT INTO BUCHUNG VALUES (31, 22, 'DB', 43, 'FRA', 'SSH', '03-MAY-2010', 2000, 300, null); |
||||
|
INSERT INTO BUCHUNG VALUES (35, 22, 'DB', 43, 'FRA', 'SSH', '08-MAY-2011', 2000, 300, null); |
||||
|
INSERT INTO BUCHUNG VALUES (33, 22, 'LH', 42, 'FRA', 'LHR', '01-MAY-2011', 400, 60, null); |
||||
|
INSERT INTO BUCHUNG VALUES (34, 22, 'LH', 47, 'LHR', 'FRA', '08-MAY-2011', 400, 60, null); |
||||
|
INSERT INTO BUCHUNG VALUES (121, 56, 'BA', 87, 'LHR', 'FRA', '24-MAR-2011', 1200, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (98, 56, 'DB', 24, 'KLU', 'FRA', '16-MAR-2010', 460, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (100, 56, 'DB', 24, 'KLU', 'FRA', '16-MAR-2011', 460, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (99, 56, 'DB', 25, 'FRA', 'KLU', '18-MAR-2010', 460, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (103, 56, 'DB', 25, 'FRA', 'KLU', '23-MAR-2011', 460, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (59, 56, 'DB', 36, 'HAJ', 'FRA', '04-FEB-2010', 400, 500, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (61, 56, 'DB', 36, 'HAJ', 'FRA', '04-FEB-2011', 400, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (60, 56, 'DB', 37, 'FRA', 'HAJ', '06-FEB-2010', 400, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (64, 56, 'DB', 37, 'FRA', 'HAJ', '11-FEB-2011', 400, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (118, 56, 'DB', 56, 'BRE', 'FRA', '19-MAR-2010', 450, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (119, 56, 'DB', 56, 'BRE', 'FRA', '17-MAR-2011', 450, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (117, 56, 'DB', 57, 'FRA', 'BRE', '17-MAR-2010', 450, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (122, 56, 'DB', 57, 'FRA', 'BRE', '25-MAR-2011', 450, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (102, 56, 'LH', 41, 'LHR', 'FRA', '23-MAR-2011', 460, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (62, 56, 'LH', 42, 'FRA', 'LHR', '04-FEB-2011', 500, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (101, 56, 'LH', 44, 'FRA', 'LHR', '16-MAR-2011', 660, 600, null); |
||||
|
INSERT INTO BUCHUNG VALUES (120, 56, 'LH', 46, 'FRA', 'LHR', '17-MAR-2011', 1200, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (63, 56, 'LH', 47, 'LHR', 'FRA', '11-FEB-2011', 500, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (65, 57, 'DB', 46, 'LIM', 'FRA', '04-DEC-2010', 10000, 1000, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (67, 57, 'DB', 46, 'LIM', 'FRA', '04-DEC-2011', 10000, 1000, null); |
||||
|
INSERT INTO BUCHUNG VALUES (66, 57, 'DB', 47, 'FRA', 'LIM', '06-DEC-2010', 10000, 1000, null); |
||||
|
INSERT INTO BUCHUNG VALUES (70, 57, 'DB', 47, 'FRA', 'LIM', '11-DEC-2011', 10000, 1000, null); |
||||
|
INSERT INTO BUCHUNG VALUES (68, 57, 'LH', 46, 'FRA', 'LHR', '04-DEC-2011', 500, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (69, 57, 'LH', 47, 'LHR', 'FRA', '11-DEC-2011', 500, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (48, 58, 'DB', 22, 'PEK', 'FRA', '12-APR-2010', 5800, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (50, 58, 'DB', 22, 'PEK', 'FRA', '12-APR-2011', 5800, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (49, 58, 'DB', 23, 'FRA', 'PEK', '14-APR-2010', 5800, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (53, 58, 'DB', 23, 'FRA', 'PEK', '19-APR-2010', 5800, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (51, 58, 'LH', 42, 'FRA', 'LHR', '12-APR-2011', 800, 80, null); |
||||
|
INSERT INTO BUCHUNG VALUES (52, 58, 'LH', 47, 'LHR', 'FRA', '19-APR-2010', 800, 80, null); |
||||
|
INSERT INTO BUCHUNG VALUES (92, 59, 'DB', 74, 'CGK', 'FRA', '10-NOV-2010', 10000, 550, null); |
||||
|
INSERT INTO BUCHUNG VALUES (94, 59, 'DB', 74, 'CGK', 'FRA', '10-NOV-2011', 2000, 150, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (93, 59, 'DB', 75, 'FRA', 'CGK', '12-NOV-2010', 10000, 550, null); |
||||
|
INSERT INTO BUCHUNG VALUES (97, 59, 'DB', 75, 'FRA', 'CGK', '17-NOV-2011', 4000, 250, null); |
||||
|
INSERT INTO BUCHUNG VALUES (95, 59, 'LH', 42, 'FRA', 'LHR', '10-NOV-2011', 4000, 250, null); |
||||
|
INSERT INTO BUCHUNG VALUES (96, 59, 'LH', 47, 'LHR', 'FRA', '17-NOV-2011', 4000, 250, null); |
||||
|
INSERT INTO BUCHUNG VALUES (21, 60, 'AF', 34, 'FRA', 'CDG', '25-MAY-2012', 120, 480, null); |
||||
|
INSERT INTO BUCHUNG VALUES (18, 60, 'DB', 48, 'DUS', 'FRA', '25-MAY-2010', 100, 250, null); |
||||
|
INSERT INTO BUCHUNG VALUES (20, 60, 'DB', 48, 'DUS', 'FRA', '25-MAY-2012', 100, 250, null); |
||||
|
INSERT INTO BUCHUNG VALUES (19, 60, 'DB', 49, 'FRA', 'DUS', '25-JUN-2010', 105, 250, null); |
||||
|
INSERT INTO BUCHUNG VALUES (23, 60, 'DB', 49, 'FRA', 'DUS', '26-JUL-2012', 105, 250, null); |
||||
|
INSERT INTO BUCHUNG VALUES (22, 60, 'LH', 51, 'CDG', 'FRA', '25-JUL-2012', 480, 120, null); |
||||
|
INSERT INTO BUCHUNG VALUES (104, 62, 'DB', 32, 'MPL', 'FRA', '23-NOV-2010', 610, 1280, null); |
||||
|
INSERT INTO BUCHUNG VALUES (55, 62, 'DB', 32, 'MPL', 'FRA', '23-NOV-2011', 610, 1280, null); |
||||
|
INSERT INTO BUCHUNG VALUES (54, 62, 'DB', 33, 'FRA', 'MPL', '25-NOV-2010', 610, 1430, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (58, 62, 'DB', 33, 'FRA', 'MPL', '30-NOV-2011', 610, 450, null); |
||||
|
INSERT INTO BUCHUNG VALUES (56, 62, 'LH', 42, 'FRA', 'LHR', '24-NOV-2011', 910, 320, null); |
||||
|
INSERT INTO BUCHUNG VALUES (57, 62, 'LH', 47, 'LHR', 'FRA', '30-NOV-2011', 880, 240, null); |
||||
|
INSERT INTO BUCHUNG VALUES (114, 63, 'BA', 86, 'FRA', 'LHR', '04-NOV-2011', 2800, 1800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (111, 63, 'DB', 20, 'ALF', 'FRA', '04-NOV-2010', 2800, 1800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (113, 63, 'DB', 20, 'ALF', 'FRA', '04-NOV-2011', 2800, 1800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (112, 63, 'DB', 21, 'FRA', 'ALF', '06-NOV-2010', 2800, 1800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (116, 63, 'DB', 21, 'FRA', 'ALF', '12-OCT-2011', 2800, 1800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (115, 63, 'LH', 47, 'LHR', 'FRA', '11-NOV-2011', 2800, 1800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (36, 64, 'DB', 40, 'YYC', 'FRA', '20-AUG-2010', 5000, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (38, 64, 'DB', 40, 'YYC', 'FRA', '20-AUG-2011', 5000, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (37, 64, 'DB', 41, 'FRA', 'YYC', '20-AUG-2010', 5000, 1200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (41, 64, 'DB', 41, 'FRA', 'YYC', '27-AUG-2011', 5000, 1200, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (39, 64, 'LH', 46, 'FRA', 'LHR', '20-AUG-2011', 700, 120, null); |
||||
|
INSERT INTO BUCHUNG VALUES (40, 64, 'LH', 47, 'LHR', 'FRA', '27-AUG-2011', 700, 120, null); |
||||
|
INSERT INTO BUCHUNG VALUES (108, 66, 'BA', 86, 'FRA', 'LHR', '04-AUG-2011', 700, 70, null); |
||||
|
INSERT INTO BUCHUNG VALUES (105, 66, 'DB', 58, 'LPA', 'FRA', '04-AUG-2010', 4000, 400, null); |
||||
|
INSERT INTO BUCHUNG VALUES (107, 66, 'DB', 58, 'LPA', 'FRA', '04-AUG-2011', 4000, 400, null); |
||||
|
INSERT INTO BUCHUNG VALUES (106, 66, 'DB', 59, 'FRA', 'LPA', '06-AUG-2010', 4000, 400, null); |
||||
|
INSERT INTO BUCHUNG VALUES (110, 66, 'DB', 59, 'FRA', 'LPA', '11-AUG-2011', 4000, 400, null); |
||||
|
INSERT INTO BUCHUNG VALUES (109, 66, 'LH', 47, 'LHR', 'FRA', '11-AUG-2011', 700, 70, null); |
||||
|
INSERT INTO BUCHUNG VALUES (42, 67, 'DB', 82, 'CRT', 'FRA', '08-FEB-2010', 2800, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (44, 67, 'DB', 82, 'CRT', 'FRA', '08-FEB-2012', 2800, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (43, 67, 'DB', 83, 'FRA', 'CRT', '08-MAR-2010', 2800, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (47, 67, 'DB', 83, 'FRA', 'CRT', '08-APR-2012', 800, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (46, 67, 'LH', 51, 'CDG', 'FRA', '08-APR-2012', 800, 100, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (45, 67, 'LH', 54, 'FRA', 'CDG', '08-FEB-2012', 800, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (141, 68, 'DB', 6, 'ERF', 'FRA', '11-APR-2010', 190, 90, null); |
||||
|
INSERT INTO BUCHUNG VALUES (143, 68, 'DB', 6, 'ERF', 'FRA', '11-APR-2011', 190, 90, null); |
||||
|
INSERT INTO BUCHUNG VALUES (142, 68, 'DB', 7, 'FRA', 'ERF', '13-APR-2010', 190, 90, null); |
||||
|
INSERT INTO BUCHUNG VALUES (146, 68, 'DB', 7, 'FRA', 'ERF', '19-APR-2011', 190, 90, null); |
||||
|
INSERT INTO BUCHUNG VALUES (144, 68, 'LH', 42, 'FRA', 'LHR', '11-APR-2011', 190, 90, null); |
||||
|
INSERT INTO BUCHUNG VALUES (145, 68, 'LH', 47, 'LHR', 'FRA', '18-APR-2011', 190, 90, null); |
||||
|
INSERT INTO BUCHUNG VALUES (147, 69, 'DB', 28, 'TUN', 'FRA', '14-MAR-2010', 2800, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (136, 69, 'DB', 28, 'TUN', 'FRA', '14-MAR-2012', 2800, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (135, 69, 'DB', 29, 'FRA', 'TUN', '14-APR-2010', 2800, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (139, 69, 'DB', 29, 'FRA', 'TUN', '14-MAY-2012', 800, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (138, 69, 'LH', 51, 'CDG', 'FRA', '14-MAY-2012', 800, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (137, 69, 'LH', 54, 'FRA', 'CDG', '14-MAR-2012', 800, 100, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (150, 70, 'AF', 34, 'FRA', 'CDG', '27-FEB-2012', 330, 400, null); |
||||
|
INSERT INTO BUCHUNG VALUES (140, 70, 'DB', 80, 'SZG', 'FRA', '27-FEB-2010', 330, 300, null); |
||||
|
INSERT INTO BUCHUNG VALUES (149, 70, 'DB', 80, 'SZG', 'FRA', '27-FEB-2012', 330, 300, null); |
||||
|
INSERT INTO BUCHUNG VALUES (148, 70, 'DB', 81, 'FRA', 'SZG', '27-MAR-2010', 330, 400, null); |
||||
|
INSERT INTO BUCHUNG VALUES (152, 70, 'DB', 81, 'FRA', 'SZG', '28-APR-2012', 330, 400, null); |
||||
|
INSERT INTO BUCHUNG VALUES (151, 70, 'LH', 51, 'CDG', 'FRA', '27-APR-2012', 330, 300, null); |
||||
|
INSERT INTO BUCHUNG VALUES (153, 71, 'DB', 10, 'DJE', 'FRA', '06-JAN-2010', 2800, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (155, 71, 'DB', 10, 'DJE', 'FRA', '06-JAN-2012', 2800, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (154, 71, 'DB', 11, 'FRA', 'DJE', '06-FEB-2010', 2800, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (158, 71, 'DB', 11, 'FRA', 'DJE', '06-MAR-2012', 800, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (157, 71, 'LH', 51, 'CDG', 'FRA', '06-MAR-2012', 800, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (156, 71, 'LH', 54, 'FRA', 'CDG', '06-JAN-2012', 800, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (177, 72, 'DB', 72, 'YDE', 'FRA', '18-JUN-2010', 500, 900, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (179, 72, 'DB', 72, 'YDE', 'FRA', '18-JUN-2011', 500, 900, null); |
||||
|
INSERT INTO BUCHUNG VALUES (178, 72, 'DB', 73, 'FRA', 'YDE', '20-JUN-2010', 500, 900, null); |
||||
|
INSERT INTO BUCHUNG VALUES (182, 72, 'DB', 73, 'FRA', 'YDE', '25-JUN-2011', 500, 900, null); |
||||
|
INSERT INTO BUCHUNG VALUES (180, 72, 'LH', 42, 'FRA', 'LHR', '18-JUN-2011', 500, 900, null); |
||||
|
INSERT INTO BUCHUNG VALUES (181, 72, 'LH', 47, 'LHR', 'FRA', '25-JUN-2011', 500, 900, null); |
||||
|
INSERT INTO BUCHUNG VALUES (159, 73, 'DB', 8, 'MIR', 'FRA', '10-OCT-2010', 1570, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (161, 73, 'DB', 8, 'MIR', 'FRA', '10-OCT-2011', 1570, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (160, 73, 'DB', 9, 'FRA', 'MIR', '12-OCT-2010', 1570, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (164, 73, 'DB', 9, 'FRA', 'MIR', '17-OCT-2011', 1570, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (162, 73, 'LH', 44, 'FRA', 'LHR', '10-OCT-2011', 800, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (163, 73, 'LH', 47, 'LHR', 'FRA', '17-OCT-2011', 800, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (183, 74, 'DB', 62, 'HKG', 'FRA', '25-APR-2010', 6000, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (2, 74, 'DB', 62, 'HKG', 'FRA', '25-APR-2011', 2000, 150, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (1, 74, 'DB', 63, 'FRA', 'HKG', '27-APR-2010', 6000, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (5, 74, 'DB', 63, 'FRA', 'HKG', '01-MAY-2011', 4000, 250, null); |
||||
|
INSERT INTO BUCHUNG VALUES (3, 74, 'LH', 46, 'FRA', 'LHR', '25-APR-2011', 3000, 200, null); |
||||
|
INSERT INTO BUCHUNG VALUES (4, 74, 'LH', 47, 'LHR', 'FRA', '01-MAY-2011', 2000, 150, null); |
||||
|
INSERT INTO BUCHUNG VALUES (168, 75, 'AF', 34, 'FRA', 'CDG', '27-JUN-2012', 354, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (165, 75, 'DB', 78, 'TLS', 'FRA', '27-JUN-2010', 750, 190, null); |
||||
|
INSERT INTO BUCHUNG VALUES (167, 75, 'DB', 78, 'TLS', 'FRA', '27-JUN-2012', 750, 190, null); |
||||
|
INSERT INTO BUCHUNG VALUES (166, 75, 'DB', 79, 'FRA', 'TLS', '27-JUN-2010', 750, 190, null); |
||||
|
INSERT INTO BUCHUNG VALUES (170, 75, 'DB', 79, 'FRA', 'TLS', '27-AUG-2012', 750, 190, null); |
||||
|
INSERT INTO BUCHUNG VALUES (169, 75, 'LH', 51, 'CDG', 'FRA', '27-AUG-2012', 354, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (171, 76, 'DB', 54, 'SVO', 'FRA', '25-OCT-2010', 1236, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (173, 76, 'DB', 54, 'SVO', 'FRA', '25-OCT-2012', 1236, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (172, 76, 'DB', 55, 'FRA', 'SVO', '25-NOV-2010', 1236, 100, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (176, 76, 'DB', 55, 'FRA', 'SVO', '25-DEC-2012', 1236, 100, null); |
||||
|
INSERT INTO BUCHUNG VALUES (174, 76, 'LH', 50, 'FRA', 'CDG', '26-OCT-2012', 360, 80, null); |
||||
|
INSERT INTO BUCHUNG VALUES (175, 76, 'LH', 51, 'CDG', 'FRA', '25-DEC-2012', 360, 80, null); |
||||
|
INSERT INTO BUCHUNG VALUES (14, 77, 'AF', 33, 'FRA', 'CDG', '04-JUN-2012', 700, 330, null); |
||||
|
INSERT INTO BUCHUNG VALUES (11, 77, 'DB', 18, 'DRS', 'FRA', '04-JUN-2010', 300, 120, null); |
||||
|
INSERT INTO BUCHUNG VALUES (13, 77, 'DB', 18, 'DRS', 'FRA', '04-JUN-2012', 300, 120, null); |
||||
|
INSERT INTO BUCHUNG VALUES (12, 77, 'DB', 19, 'FRA', 'DRS', '04-JUL-2010', 300, 120, null); |
||||
|
INSERT INTO BUCHUNG VALUES (16, 77, 'DB', 19, 'FRA', 'DRS', '04-AUG-2012', 300, 120, null); |
||||
|
INSERT INTO BUCHUNG VALUES (15, 77, 'LH', 51, 'CDG', 'FRA', '04-AUG-2012', 700, 330, null); |
||||
|
INSERT INTO BUCHUNG VALUES (17, 78, 'DB', 14, 'LYS', 'FRA', '22-DEC-2010', 343, 70, null); |
||||
|
INSERT INTO BUCHUNG VALUES (7, 78, 'DB', 14, 'LYS', 'FRA', '22-DEC-2012', 343, 70, null); |
||||
|
INSERT INTO BUCHUNG VALUES (6, 78, 'DB', 15, 'FRA', 'LYS', '22-JAN-2011', 343, 70, null); |
||||
|
INSERT INTO BUCHUNG VALUES (10, 78, 'DB', 15, 'FRA', 'LYS', '23-FEB-2013', 343, 70, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (8, 78, 'LH', 50, 'FRA', 'CDG', '23-DEC-2012', 350, 75, null); |
||||
|
INSERT INTO BUCHUNG VALUES (9, 78, 'LH', 51, 'CDG', 'FRA', '22-FEB-2013', 350, 75, null); |
||||
|
INSERT INTO BUCHUNG VALUES (126, 79, 'AF', 33, 'FRA', 'CDG', '17-JUL-2012', 500, 120, null); |
||||
|
INSERT INTO BUCHUNG VALUES (123, 79, 'DB', 16, 'PMI', 'FRA', '17-JUL-2010', 1500, 230, null); |
||||
|
INSERT INTO BUCHUNG VALUES (125, 79, 'DB', 16, 'PMI', 'FRA', '17-JUL-2012', 1500, 230, null); |
||||
|
INSERT INTO BUCHUNG VALUES (124, 79, 'DB', 17, 'FRA', 'PMI', '17-AUG-2010', 1500, 260, null); |
||||
|
INSERT INTO BUCHUNG VALUES (128, 79, 'DB', 17, 'FRA', 'PMI', '18-SEP-2012', 1500, 260, null); |
||||
|
INSERT INTO BUCHUNG VALUES (127, 79, 'LH', 51, 'CDG', 'FRA', '17-SEP-2012', 500, 130, null); |
||||
|
INSERT INTO BUCHUNG VALUES (129, 80, 'DB', 60, 'ISA', 'FRA', '15-SEP-2010', 14427, 851, null); |
||||
|
INSERT INTO BUCHUNG VALUES (131, 80, 'DB', 60, 'ISA', 'FRA', '15-SEP-2012', 14727, 821, null); |
||||
|
INSERT INTO BUCHUNG VALUES (130, 80, 'DB', 61, 'FRA', 'ISA', '15-OCT-2010', 14429, 834, null); |
||||
|
INSERT INTO BUCHUNG VALUES (134, 80, 'DB', 61, 'FRA', 'ISA', '15-NOV-2012', 14469, 895, null); |
||||
|
INSERT INTO BUCHUNG VALUES (133, 80, 'LH', 51, 'CDG', 'FRA', '15-NOV-2012', 421, 216, null); |
||||
|
|
||||
|
INSERT INTO BUCHUNG VALUES (132, 80, 'LH', 54, 'FRA', 'CDG', '16-SEP-2012', 450, 243, null); |
||||
|
INSERT INTO BUCHUNG VALUES (184, 81, 'DB', 90, 'TRU', 'FRA', '16-FEB-2010', 5000, 800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (186, 81, 'DB', 90, 'TRU', 'FRA', '16-FEB-2012', 5000, 800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (185, 81, 'DB', 91, 'FRA', 'TRU', '16-MAR-2010', 5000, 800, null); |
||||
|
INSERT INTO BUCHUNG VALUES (188, 81, 'LH', 51, 'CDG', 'FRA', '16-APR-2012', 5000, 500, null); |
||||
|
INSERT INTO BUCHUNG VALUES (187, 81, 'LH', 54, 'FRA', 'CDG', '17-FEB-2012', 5000, 500, null); |
||||
|
|
||||
|
UPDATE BUCHUNG SET TAG = '01-01-2000'; |
||||
|
UPDATE BUCHUNG SET TAGINT = 1; |
||||
|
|
||||
|
|
||||
|
commit; |
||||
|
|
@ -0,0 +1,118 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
INSERT INTO FLUG VALUES (91, 'AC', 10, 'YYZ', 'FRA', 1815, 740); |
||||
|
INSERT INTO FLUG VALUES (52, 'AC', 11, 'YUL', 'YYZ', 1500, 1700); |
||||
|
INSERT INTO FLUG VALUES (18, 'AF', 9, 'TXL', 'CDG', 915, 1040); |
||||
|
INSERT INTO FLUG VALUES (74, 'AF', 33, 'FRA', 'CDG', 900, 1010); |
||||
|
INSERT INTO FLUG VALUES (84, 'AF', 34, 'FRA', 'CDG', 1200, 1210); |
||||
|
INSERT INTO FLUG VALUES (1, 'AF', 35, 'CDG', 'FRA', 1400, 1500); |
||||
|
INSERT INTO FLUG VALUES (92, 'AF', 45, 'CDG', 'NRT', 1220, 730); |
||||
|
INSERT INTO FLUG VALUES (2, 'BA', 84, 'ORD', 'SFO', 1530, 1800); |
||||
|
INSERT INTO FLUG VALUES (66, 'BA', 86, 'FRA', 'LHR', 910, 1050); |
||||
|
INSERT INTO FLUG VALUES (3, 'BA', 87, 'LHR', 'FRA', 1310, 1450); |
||||
|
INSERT INTO FLUG VALUES (4, 'BA', 88, 'LHR', 'BHX', 1010, 1050); |
||||
|
INSERT INTO FLUG VALUES (5, 'BA', 90, 'LGW', 'BHX', 1020, 1150); |
||||
|
INSERT INTO FLUG VALUES (36, 'DB', 2, 'HHN', 'FRA', 1120, 1230); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (85, 'DB', 3, 'FRA', 'HHN', 1530, 1640); |
||||
|
INSERT INTO FLUG VALUES (19, 'DB', 6, 'ERF', 'FRA', 915, 945); |
||||
|
INSERT INTO FLUG VALUES (75, 'DB', 7, 'FRA', 'ERF', 1000, 1030); |
||||
|
INSERT INTO FLUG VALUES (20, 'DB', 8, 'MIR', 'FRA', 1000, 1230); |
||||
|
INSERT INTO FLUG VALUES (21, 'DB', 9, 'FRA', 'MIR', 1500, 1730); |
||||
|
INSERT INTO FLUG VALUES (67, 'DB', 10, 'DJE', 'FRA', 1000, 1230); |
||||
|
INSERT INTO FLUG VALUES (6, 'DB', 11, 'FRA', 'DJE', 1500, 1730); |
||||
|
INSERT INTO FLUG VALUES (76, 'DB', 14, 'LYS', 'FRA', 1845, 1955); |
||||
|
INSERT INTO FLUG VALUES (37, 'DB', 15, 'FRA', 'LYS', 115, 230); |
||||
|
INSERT INTO FLUG VALUES (38, 'DB', 16, 'PMI', 'FRA', 455, 650); |
||||
|
INSERT INTO FLUG VALUES (68, 'DB', 17, 'FRA', 'PMI', 915, 1150); |
||||
|
INSERT INTO FLUG VALUES (93, 'DB', 18, 'DRS', 'FRA', 600, 700); |
||||
|
INSERT INTO FLUG VALUES (77, 'DB', 19, 'FRA', 'DRS', 1750, 1850); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (39, 'DB', 20, 'ALF', 'FRA', 630, 700); |
||||
|
INSERT INTO FLUG VALUES (78, 'DB', 21, 'FRA', 'ALF', 930, 1050); |
||||
|
INSERT INTO FLUG VALUES (86, 'DB', 22, 'PEK', 'FRA', 0, 800); |
||||
|
INSERT INTO FLUG VALUES (53, 'DB', 23, 'FRA', 'PEK', 1500, 2300); |
||||
|
INSERT INTO FLUG VALUES (40, 'DB', 24, 'KLU', 'FRA', 1050, 1250); |
||||
|
INSERT INTO FLUG VALUES (22, 'DB', 25, 'FRA', 'KLU', 1450, 1650); |
||||
|
INSERT INTO FLUG VALUES (23, 'DB', 28, 'TUN', 'FRA', 1000, 1230); |
||||
|
INSERT INTO FLUG VALUES (24, 'DB', 29, 'FRA', 'TUN', 1500, 1730); |
||||
|
INSERT INTO FLUG VALUES (94, 'DB', 32, 'MPL', 'FRA', 820, 1050); |
||||
|
INSERT INTO FLUG VALUES (69, 'DB', 33, 'FRA', 'MPL', 1210, 1440); |
||||
|
INSERT INTO FLUG VALUES (25, 'DB', 36, 'HAJ', 'FRA', 800, 900); |
||||
|
INSERT INTO FLUG VALUES (26, 'DB', 37, 'FRA', 'HAJ', 1200, 1300); |
||||
|
INSERT INTO FLUG VALUES (95, 'DB', 40, 'YYC', 'FRA', 815, 1715); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (27, 'DB', 41, 'FRA', 'YYC', 1830, 330); |
||||
|
INSERT INTO FLUG VALUES (28, 'DB', 42, 'SSH', 'FRA', 500, 900); |
||||
|
INSERT INTO FLUG VALUES (29, 'DB', 43, 'FRA', 'SSH', 1100, 1400); |
||||
|
INSERT INTO FLUG VALUES (7, 'DB', 46, 'LIM', 'FRA', 2055, 1830); |
||||
|
INSERT INTO FLUG VALUES (79, 'DB', 47, 'FRA', 'LIM', 2015, 820); |
||||
|
INSERT INTO FLUG VALUES (8, 'DB', 48, 'DUS', 'FRA', 915, 1000); |
||||
|
INSERT INTO FLUG VALUES (41, 'DB', 49, 'FRA', 'DUS', 1115, 1200); |
||||
|
INSERT INTO FLUG VALUES (96, 'DB', 54, 'SVO', 'FRA', 1620, 1745); |
||||
|
INSERT INTO FLUG VALUES (80, 'DB', 55, 'FRA', 'SVO', 1845, 2010); |
||||
|
INSERT INTO FLUG VALUES (87, 'DB', 56, 'BRE', 'FRA', 615, 700); |
||||
|
INSERT INTO FLUG VALUES (9, 'DB', 57, 'FRA', 'BRE', 800, 845); |
||||
|
INSERT INTO FLUG VALUES (54, 'DB', 58, 'LPA', 'FRA', 100, 550); |
||||
|
INSERT INTO FLUG VALUES (10, 'DB', 59, 'FRA', 'LPA', 1700, 2150); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (42, 'DB', 60, 'ISA', 'FRA', 415, 32); |
||||
|
INSERT INTO FLUG VALUES (43, 'DB', 61, 'FRA', 'ISA', 1750, 909); |
||||
|
INSERT INTO FLUG VALUES (55, 'DB', 62, 'HKG', 'FRA', 1000, 1700); |
||||
|
INSERT INTO FLUG VALUES (56, 'DB', 63, 'FRA', 'HKG', 1900, 800); |
||||
|
INSERT INTO FLUG VALUES (11, 'DB', 72, 'YDE', 'FRA', 2315, 725); |
||||
|
INSERT INTO FLUG VALUES (57, 'DB', 73, 'FRA', 'YDE', 1740, 2340); |
||||
|
INSERT INTO FLUG VALUES (58, 'DB', 74, 'CGK', 'FRA', 2300, 1000); |
||||
|
INSERT INTO FLUG VALUES (12, 'DB', 75, 'FRA', 'CGK', 1700, 1300); |
||||
|
INSERT INTO FLUG VALUES (70, 'DB', 76, 'MVR', 'FRA', 1000, 1700); |
||||
|
INSERT INTO FLUG VALUES (59, 'DB', 77, 'FRA', 'MVR', 1800, 100); |
||||
|
INSERT INTO FLUG VALUES (44, 'DB', 78, 'TLS', 'FRA', 830, 1000); |
||||
|
INSERT INTO FLUG VALUES (71, 'DB', 79, 'FRA', 'TLS', 1230, 1400); |
||||
|
INSERT INTO FLUG VALUES (72, 'DB', 80, 'SZG', 'FRA', 800, 1000); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (45, 'DB', 81, 'FRA', 'SZG', 1200, 1400); |
||||
|
INSERT INTO FLUG VALUES (60, 'DB', 82, 'CRT', 'FRA', 1000, 1230); |
||||
|
INSERT INTO FLUG VALUES (61, 'DB', 83, 'FRA', 'CRT', 1500, 1730); |
||||
|
INSERT INTO FLUG VALUES (46, 'DB', 90, 'TRU', 'FRA', 2200, 1020); |
||||
|
INSERT INTO FLUG VALUES (30, 'DB', 91, 'FRA', 'TRU', 1430, 2200); |
||||
|
INSERT INTO FLUG VALUES (13, 'DL', 7, 'ORD', 'SFO', 1140, 1530); |
||||
|
INSERT INTO FLUG VALUES (14, 'DL', 9, 'LAX', 'NRT', 2220, 1000); |
||||
|
INSERT INTO FLUG VALUES (97, 'DL', 33, 'SFO', 'LAX', 900, 1005); |
||||
|
INSERT INTO FLUG VALUES (98, 'JL', 12, 'TXL', 'KIX', 1355, 820); |
||||
|
INSERT INTO FLUG VALUES (31, 'LH', 5, 'FRA', 'TXL', 730, 830); |
||||
|
INSERT INTO FLUG VALUES (62, 'LH', 6, 'TXL', 'FRA', 930, 1030); |
||||
|
INSERT INTO FLUG VALUES (88, 'LH', 7, 'FRA', 'TXL', 1130, 1230); |
||||
|
INSERT INTO FLUG VALUES (63, 'LH', 8, 'TXL', 'FRA', 1230, 1330); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (47, 'LH', 9, 'FRA', 'TXL', 1430, 1530); |
||||
|
INSERT INTO FLUG VALUES (48, 'LH', 10, 'TXL', 'FRA', 1630, 1730); |
||||
|
INSERT INTO FLUG VALUES (15, 'LH', 20, 'TXL', 'CDG', 900, 1140); |
||||
|
INSERT INTO FLUG VALUES (32, 'LH', 24, 'TXL', 'FRA', 2130, 2310); |
||||
|
INSERT INTO FLUG VALUES (89, 'LH', 32, 'JFK', 'LAX', 1400, 1800); |
||||
|
INSERT INTO FLUG VALUES (16, 'LH', 34, 'FRA', 'SFO', 1015, 1245); |
||||
|
INSERT INTO FLUG VALUES (49, 'LH', 36, 'SFO', 'LAX', 1700, 1815); |
||||
|
INSERT INTO FLUG VALUES (90, 'LH', 40, 'FRA', 'LHR', 700, 815); |
||||
|
INSERT INTO FLUG VALUES (99, 'LH', 41, 'LHR', 'FRA', 1025, 1145); |
||||
|
INSERT INTO FLUG VALUES (50, 'LH', 42, 'FRA', 'LHR', 1300, 1415); |
||||
|
INSERT INTO FLUG VALUES (81, 'LH', 43, 'LHR', 'FRA', 1515, 1640); |
||||
|
INSERT INTO FLUG VALUES (64, 'LH', 44, 'FRA', 'LHR', 1600, 1715); |
||||
|
INSERT INTO FLUG VALUES (17, 'LH', 45, 'LHR', 'FRA', 1830, 2000); |
||||
|
|
||||
|
INSERT INTO FLUG VALUES (33, 'LH', 46, 'FRA', 'LHR', 2130, 2245); |
||||
|
INSERT INTO FLUG VALUES (51, 'LH', 47, 'LHR', 'FRA', 700, 820); |
||||
|
INSERT INTO FLUG VALUES (34, 'LH', 50, 'FRA', 'CDG', 710, 810); |
||||
|
INSERT INTO FLUG VALUES (100, 'LH', 51, 'CDG', 'FRA', 930, 1030); |
||||
|
INSERT INTO FLUG VALUES (82, 'LH', 52, 'FRA', 'CDG', 1210, 1310); |
||||
|
INSERT INTO FLUG VALUES (35, 'LH', 53, 'CDG', 'FRA', 1500, 1620); |
||||
|
INSERT INTO FLUG VALUES (73, 'LH', 54, 'FRA', 'CDG', 1740, 1850); |
||||
|
INSERT INTO FLUG VALUES (83, 'LH', 55, 'CDG', 'FRA', 2000, 2120); |
||||
|
INSERT INTO FLUG VALUES (65, 'LH', 60, 'FRA', 'BHX', 1005, 1130); |
||||
|
|
||||
|
|
||||
|
commit; |
||||
|
|
@ -0,0 +1,93 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (1, 'Collins', 'Phil', 'GB ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (2, 'Sting', null, 'GB ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (3, 'Bush', 'Kate', 'GB ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (4, 'Jagger', 'Mick', 'GB ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (5, 'Richards', 'Keith', 'GB ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (6, 'Gabriel', 'Peter', 'GB ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (7, 'Kaas', 'Patricia', 'F ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (8, 'Lennox', 'Annie', 'GB ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (9, 'Nannini', 'Gianna', 'I ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (10, 'Meatloaf', null, 'USA','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (11, 'Mercury', 'Freddie', 'GB ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (12, 'Niedeggen', 'Wolfgang', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (13, 'Turner', 'Tina', 'USA','Frankfurt', '01-01-1920', 1); |
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (14, 'John', 'Elton', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (15, 'Ramazotti', 'Eros', 'I ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (16, 'Horn', 'Guildo', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (17, 'Miosga', 'Sarah', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (18, 'Miosga', 'Pascal', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (19, 'Maiwald', 'Kai', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (20, 'Maiwald ', 'Rudi', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (21, 'Burhenne', 'Matthias', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (22, 'Militz', 'Lukas', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (23, 'Hohmeyer', 'Melanie', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (24, 'Hohmeyer', 'Holger', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (25, 'Bayer', 'Daniel', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (26, 'Bayer', 'Eberhard', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (27, 'Hennecke', 'Christian', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (28, 'Hennecke', 'Markus', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (29, 'Gueclue', 'Ilkem', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (30, 'Gueclue', 'Erdem', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (31, 'Tepel', 'Andreas', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (32, 'Tepel', 'Martin', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (35, 'Mueller', 'Tatjana', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (36, 'Mueller', 'Susi', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (37, 'Reinel', 'Mario', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (38, 'Reinel', 'Martin', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (39, 'Lamps', 'Bob', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (40, 'Lamps', 'Tom', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (41, 'Bostanci', 'Hueseyin', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (42, 'Bostanci', 'Sinan', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (43, 'Hahn', 'Rene', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (44, 'Hahn', 'Donald', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (45, 'Bailleu', 'Pascal', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (47, 'Hahn', 'Andre', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (48, 'Hahn', 'Thomas', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (49, 'Scholz', 'Juergen', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (50, 'Scholz', 'Gerhard', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (51, 'Harasty', 'Sascha', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (52, 'Harasty', 'Simon', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (53, 'Schmitt', 'Stefan', null,'Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (55, 'Schmitt', 'Franz', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (56, 'Mahr', 'Florian', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (57, 'Paulheim', 'Annika', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (58, 'Klomann', 'Marcel', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (59, 'Saseno', 'Widya', 'ID ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (60, 'Ruppel', 'Florian', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (61, 'Knabe', 'Nico', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (62, 'Lied', 'Christian', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (63, 'Hesse', 'Sebastian', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (64, 'Meuer', 'Bjoern', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (65, 'Stock', 'Jan', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (66, 'Tobert', 'Stefan', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (67, 'Kouada', 'Hichem', 'TUN','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (68, 'Englert', 'Michael', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (69, 'Ksaier', 'Nejib', 'TUN','Frankfurt', '01-01-1920', 1); |
||||
|
|
||||
|
INSERT INTO PASSAGIER VALUES (70, 'Helmke', 'Christian', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (71, 'Gannouni', 'Walid', 'TUN','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (72, 'Sanama', 'Gaspard', 'CMR','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (73, 'Fessi', 'Aymen', 'TUN','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (74, 'Pei', 'Tao', 'CHN','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (75, 'Dehler', 'Tatjana', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (76, 'Sprenger', 'Sebastian', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (77, 'Heinz', 'Patrik', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (78, 'Haas', 'Bastian', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (79, 'Hahn', 'Benedikt', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (80, 'Wald', 'Daniel', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (81, 'Schaefer', 'Thilo', 'D ','Frankfurt', '01-01-1920', 1); |
||||
|
INSERT INTO PASSAGIER VALUES (82, 'Nguentcheng', 'Alexandre', 'CMR','Frankfurt', '01-01-1920', 1); |
||||
|
|
||||
|
commit; |
||||
|
|
@ -0,0 +1,29 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY 3 PARTITIONS */ |
||||
|
SELECT FLC, COUNT(*) FROM BUCHUNG GROUP BY FLC; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY WHERE 3 PARTITIONS */ |
||||
|
SELECT FLC, COUNT(*) FROM BUCHUNG WHERE (VON = 'FRA') GROUP BY FLC; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY HAVING WHERE 3 PARTITIONS */ |
||||
|
SELECT NACH, COUNT(*) FROM BUCHUNG WHERE (VON = 'LHR') GROUP BY NACH HAVING COUNT (*) > 2; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY HAVING WHERE 3 PARTITIONS */ |
||||
|
SELECT NACH, AVG(PREIS) FROM BUCHUNG WHERE (VON = 'LHR') GROUP BY NACH HAVING COUNT (*) > 2; |
||||
|
|
||||
|
/* SELECT GROUP BY HAVING WHERE 1 PARTITION */ |
||||
|
SELECT NACH, AVG(PREIS) FROM BUCHUNG |
||||
|
WHERE (VON = 'CDG') AND (FLC='AF') |
||||
|
GROUP BY NACH HAVING COUNT (*) > 2; |
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,18 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY */ |
||||
|
SELECT FLC, COUNT(*) FROM FLUG GROUP BY FLC; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY WHERE */ |
||||
|
SELECT FLC, COUNT(*) FROM FLUG WHERE (VON = 'FRA') GROUP BY FLC; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY WHERE NOTHING */ |
||||
|
SELECT FLC, COUNT(*) FROM FLUG WHERE (VON = 'ZZZ') GROUP BY FLC; |
||||
|
|
@ -0,0 +1,52 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
/* COUNT 3 PARTITIONS */ |
||||
|
SELECT COUNT(*) FROM PASSAGIER; |
||||
|
|
||||
|
/* COUNT 3 PARTITIONS */ |
||||
|
SELECT COUNT(*) FROM BUCHUNG; |
||||
|
|
||||
|
/* COUNT 1 PARTITION */ |
||||
|
SELECT COUNT(*) FROM BUCHUNG |
||||
|
WHERE FLC = 'LH'; |
||||
|
|
||||
|
/* MAX 3 PARTITIONS */ |
||||
|
SELECT MAX(BNR) FROM BUCHUNG; |
||||
|
|
||||
|
/* MAX 1 PARTITION */ |
||||
|
SELECT MAX(BNR) FROM BUCHUNG |
||||
|
WHERE FLC = 'AC'; |
||||
|
|
||||
|
/* MIN 1 PARTITION */ |
||||
|
SELECT MIN(BNR) FROM BUCHUNG |
||||
|
WHERE FLC = 'BA'; |
||||
|
|
||||
|
/* MIN 2 PARTITION */ |
||||
|
SELECT MIN(BNR) FROM BUCHUNG |
||||
|
WHERE FLC = 'AF' OR FLC = 'BA'; |
||||
|
|
||||
|
/* SUM 3 PARTITIONS */ |
||||
|
SELECT SUM(MEILEN) FROM BUCHUNG; |
||||
|
|
||||
|
/* SUM 1 PARTITION */ |
||||
|
SELECT SUM(MEILEN) FROM BUCHUNG |
||||
|
WHERE FLC = 'AF' OR FLC = 'BA'; |
||||
|
|
||||
|
/* AVG 3 PARTITIONS */ |
||||
|
SELECT AVG(MEILEN) FROM BUCHUNG; |
||||
|
|
||||
|
/* AVG 1 PARTITION */ |
||||
|
SELECT AVG(MEILEN) FROM BUCHUNG |
||||
|
WHERE FLC = 'AF' OR FLC = 'BA'; |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,29 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
/* SELECT ORDER BY */ |
||||
|
SELECT * FROM FLUGLINIE ORDER BY LAND ASC; |
||||
|
SELECT * FROM FLUGLINIE ORDER BY LAND DESC; |
||||
|
|
||||
|
|
||||
|
/* SELECT ORDER BY WHERE */ |
||||
|
SELECT PNR, NAME, LAND FROM PASSAGIER WHERE PNR <= 10 ORDER BY NAME ASC; |
||||
|
|
||||
|
|
||||
|
/* SELECT ORDER BY GROUP BY */ |
||||
|
SELECT FLC, COUNT(*) FROM BUCHUNG GROUP BY FLC ORDER BY 2 DESC; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY HAVING */ |
||||
|
SELECT TAGINT, SUM(MEILEN) FROM BUCHUNG GROUP BY TAGINT HAVING COUNT (*) > 110; |
||||
|
|
||||
|
|
||||
|
/* SELECT GROUP BY HAVING WHERE */ |
||||
|
SELECT FLC, SUM(MEILEN) FROM BUCHUNG WHERE (VON = 'CDG') GROUP BY FLC HAVING COUNT (*) > 2; |
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,30 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
/* SELECT ONE TUPLE */ |
||||
|
SELECT * FROM FLUGLINIE WHERE FLC = 'BA'; |
||||
|
|
||||
|
/* SELECT FROM ONE PARTITION */ |
||||
|
SELECT FLC, NAME, LAND FROM FLUGLINIE WHERE NAME = 'United Airlines'; |
||||
|
|
||||
|
/* SELECT TWO ALL PARTITONS */ |
||||
|
SELECT FLC, NAME, LAND FROM FLUGLINIE WHERE ALLIANZ = 'Star'; |
||||
|
SELECT FLC, NAME, LAND FROM FLUGLINIE WHERE (FLC = 'AF') OR (FLC = 'UA'); |
||||
|
|
||||
|
/* SELECT FROM ALL PARTITIONS */ |
||||
|
SELECT FLC, NAME, LAND FROM FLUGLINIE WHERE (ALLIANZ = 'Star') OR (ALLIANZ = 'SkyTeam'); |
||||
|
|
||||
|
/* SELECT ALL */ |
||||
|
SELECT FLC, NAME FROM FLUGLINIE; |
||||
|
|
||||
|
/* SELECT NOTHING */ |
||||
|
SELECT * FROM FLUGLINIE WHERE LAND = 'CZ'; |
||||
|
SELECT * FROM FLUGLINIE WHERE (LAND = 'D ') AND (ALLIANZ = 'Star'); |
||||
|
|
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,66 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
|
||||
|
/* SELECT WHOLE TABLES */ |
||||
|
SELECT COUNT(*) |
||||
|
FROM FLUG, FLUGLINIE |
||||
|
WHERE (FLUG.FLC = FLUGLINIE.FLC); |
||||
|
|
||||
|
|
||||
|
/* SELECT ONE CONJUNCTIVE RESTRICTION */ |
||||
|
SELECT FLUG.FLC, FLUG.FLNR, FLUGLINIE.NAME |
||||
|
FROM FLUG, FLUGLINIE |
||||
|
WHERE (FLUG.FLC = FLUGLINIE.FLC) |
||||
|
AND (FLUG.NACH = 'LHR'); |
||||
|
|
||||
|
|
||||
|
/* SELECT ONE CONJUNCTIVE RESTRICTION */ |
||||
|
SELECT PASSAGIER.NAME, PASSAGIER.VORNAME, BUCHUNG.BNR, BUCHUNG.FLC, BUCHUNG.FLNR |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE (PASSAGIER.PNR = BUCHUNG.PNR) |
||||
|
AND (PASSAGIER.PNR <= 4); |
||||
|
|
||||
|
|
||||
|
/* SELECT ONE DISJUNCTIVE RESTRICTION ON ONE TABLE */ |
||||
|
SELECT BUCHUNG.BNR, BUCHUNG.PNR, BUCHUNG.FLC, BUCHUNG.FLNR, BUCHUNG.FLNR, BUCHUNG.PREIS |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE BUCHUNG.PNR = PASSAGIER.PNR |
||||
|
AND (PASSAGIER.PNR < 3 OR PASSAGIER.PNR = 1200); |
||||
|
|
||||
|
|
||||
|
/* SELECT ONE DISJUNCTIVE RESTRICTION ON ONE TABLE */ |
||||
|
SELECT COUNT(*) |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE (PASSAGIER.PNR = BUCHUNG.PNR) |
||||
|
AND (BUCHUNG.BNR <= 2000 OR BUCHUNG.NACH = 'LIM'); |
||||
|
|
||||
|
|
||||
|
/* SELECT ONE DISJUNCTIVE RESTRICTION ON ONE TABLE */ |
||||
|
SELECT COUNT(*) |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE (PASSAGIER.PNR = BUCHUNG.PNR) |
||||
|
AND (BUCHUNG.VON = 'FRA' OR BUCHUNG.NACH = 'LHR'); |
||||
|
|
||||
|
|
||||
|
/* SELECT TWO CONJUNCTIVE RESTRICTIONS ON ONE TABLE */ |
||||
|
SELECT PASSAGIER.NAME, PASSAGIER.VORNAME, BUCHUNG.BNR, BUCHUNG.FLC, BUCHUNG.FLNR |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE (PASSAGIER.PNR = BUCHUNG.PNR) |
||||
|
AND (BUCHUNG.BNR <= 2000) AND (BUCHUNG.NACH = 'LIM'); |
||||
|
|
||||
|
|
||||
|
/* SELECT TWO CONJUNCTIVE RESTRICTIONS ONE PER TABLE */ |
||||
|
SELECT PASSAGIER.NAME, PASSAGIER.VORNAME, BUCHUNG.BNR, BUCHUNG.FLC, BUCHUNG.FLNR |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE (PASSAGIER.PNR = BUCHUNG.PNR) |
||||
|
AND (BUCHUNG.BNR <= 1500) AND (PASSAGIER.LAND = 'RSA'); |
||||
|
|
||||
|
|
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,39 @@ |
|||||
|
set echo on; |
||||
|
|
||||
|
alter session set nls_language = english; |
||||
|
alter session set nls_date_format = 'DD-MON-YYYY'; |
||||
|
alter session set nls_date_language = english; |
||||
|
|
||||
|
|
||||
|
/* COUNT GROUP BY */ |
||||
|
SELECT FLC, COUNT(*) |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE (PASSAGIER.PNR = BUCHUNG.PNR) |
||||
|
AND (BUCHUNG.VON = 'FRA') |
||||
|
GROUP BY FLC; |
||||
|
|
||||
|
/* COUNT GROUP BY */ |
||||
|
SELECT FLC, COUNT(*) |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE (PASSAGIER.PNR = BUCHUNG.PNR) |
||||
|
AND (BUCHUNG.VON = 'FRA') |
||||
|
AND (BUCHUNG.NACH = 'CDG') |
||||
|
GROUP BY FLC; |
||||
|
|
||||
|
/* COUNT GROUP BY */ |
||||
|
SELECT FLC, COUNT(*) |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE (PASSAGIER.PNR = BUCHUNG.PNR) |
||||
|
AND (BUCHUNG.BNR >= 500) |
||||
|
AND (BUCHUNG.BNR <= 1500) |
||||
|
GROUP BY FLC; |
||||
|
|
||||
|
/* COUNT GROUP BY */ |
||||
|
SELECT FLC, COUNT(*) |
||||
|
FROM PASSAGIER, BUCHUNG |
||||
|
WHERE (PASSAGIER.PNR = BUCHUNG.PNR) |
||||
|
AND (PASSAGIER.GEBDATINT > 14000) |
||||
|
GROUP BY FLC; |
||||
|
|
||||
|
rollback; |
||||
|
|
@ -0,0 +1,38 @@ |
|||||
|
package hsfulda.de; |
||||
|
|
||||
|
import junit.framework.Test; |
||||
|
import junit.framework.TestCase; |
||||
|
import junit.framework.TestSuite; |
||||
|
|
||||
|
/** |
||||
|
* Unit test for simple App. |
||||
|
*/ |
||||
|
public class AppTest |
||||
|
extends TestCase |
||||
|
{ |
||||
|
/** |
||||
|
* Create the test case |
||||
|
* |
||||
|
* @param testName name of the test case |
||||
|
*/ |
||||
|
public AppTest( String testName ) |
||||
|
{ |
||||
|
super( testName ); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @return the suite of tests being tested |
||||
|
*/ |
||||
|
public static Test suite() |
||||
|
{ |
||||
|
return new TestSuite( AppTest.class ); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* Rigourous Test :-) |
||||
|
*/ |
||||
|
public void testApp() |
||||
|
{ |
||||
|
assertTrue( true ); |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue