Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download

📚 The CoCalc Library - books, templates and other resources

Views: 96169
License: OTHER
1
\documentclass[DIN, pagenumber=false, fontsize=11pt, parskip=half]{scrartcl}
2
3
\usepackage{ngerman}
4
\usepackage[utf8]{inputenc}
5
\usepackage[T1]{fontenc}
6
\usepackage{textcomp}
7
8
% for matlab code
9
% bw = blackwhite - optimized for print, otherwise source is colored
10
\usepackage[framed,numbered,bw]{mcode}
11
12
% for other code
13
%\usepackage{listings}
14
15
\setlength{\parindent}{0em}
16
17
% set section in CM
18
\setkomafont{section}{\normalfont\bfseries\Large}
19
20
\newcommand{\mytitle}[1]{{\noindent\Large\textbf{#1}}}
21
\newcommand{\mysection}[1]{\textbf{\section*{#1}}}
22
\newcommand{\mysubsection}[2]{\romannumeral #1) #2}
23
24
25
%===================================
26
\begin{document}
27
28
\noindent\textbf{Informationssysteme} \hfill \textbf{Universität Ulm}\\
29
SoSe 2011 \hfill Michael Müller\\
30
31
\mytitle{Übungsblatt 4 \hfill \today}
32
33
34
%===================================
35
\mysection{Aufgabe 4-1: Gruppierungsfunktionen}
36
37
\mysubsection{1}{SQL-Abfrage}
38
\begin{lstlisting}
39
SELECT
40
TeileNr, Farbe, MIN(Preis) AS niedrigster_preis,
41
MAX(Preis) AS hoechster_preis,
42
MAX(Preis) - MIN(Preis) AS Differenz
43
FROM
44
Liefert
45
WHERE
46
LiefNr <> 0
47
GROUP BY
48
TeileNr, Farbe
49
\end{lstlisting}
50
51
\mysubsection{2}{SQL-Abfrage}
52
\begin{lstlisting}
53
SELECT
54
TeileNr
55
FROM
56
Liefert
57
\end{lstlisting}
58
59
60
%===================================
61
\mysection{Aufgabe 4-2: NULL-Werte}
62
\begin{tabular}{c||c|c|c}
63
or & T & U & F\\
64
\hline
65
\hline
66
T & T & T & T \\
67
\hline
68
U & T & U & U \\
69
\hline
70
F & T & U & F \\
71
\end{tabular} \hspace*{1cm}
72
\begin{tabular}{c||c|c|c}
73
and & T & U & F\\
74
\hline
75
\hline
76
T & T & U & F \\
77
\hline
78
U & U & U & F \\
79
\hline
80
F & F & F & F \\
81
\end{tabular}
82
83
84
%===================================
85
\mysection{Aufgabe 4-3: Lorem ipsum}
86
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
87
88
89
\end{document}
90