diff --git a/semester4/dmdb/data-modelling-databases-summary.pdf b/semester4/dmdb/data-modelling-databases-summary.pdf index 511c4ea..4bd0908 100644 Binary files a/semester4/dmdb/data-modelling-databases-summary.pdf and b/semester4/dmdb/data-modelling-databases-summary.pdf differ diff --git a/semester4/dmdb/data-modelling-databases-summary.tex b/semester4/dmdb/data-modelling-databases-summary.tex index 9678811..414724e 100644 --- a/semester4/dmdb/data-modelling-databases-summary.tex +++ b/semester4/dmdb/data-modelling-databases-summary.tex @@ -2,6 +2,9 @@ \input{~/projects/latex/janishutz-helpers.tex} +\setupGlossary +\input{glossary/main.tex} + \usepackage{lmodern} \setFontType{sans} @@ -12,36 +15,41 @@ \vspace{1cm} \begin{center} - \includegraphics[width=0.5\linewidth]{~/projects/latex/assets/logo.jpg} + \includegraphics[width=0.5\linewidth]{~/projects/latex/assets/logo.jpg} \end{center} \vspace{2cm} \begin{center} - \begin{Large} - \quote{A curry can be written in many different ways} - \end{Large} + \begin{Large} + \quote{A curry can be written in many different ways} + \end{Large} - \hspace{3cm} - Prof. Dr. Gustavo Alonso, 2026 + \hspace{3cm} - Prof. Dr. Gustavo Alonso, 2026 \end{center} \vspace{1.5cm} \begin{center} - FS2026, ETHZ + FS2026, ETHZ - \begin{Large} - Summary of the Script and Lectures - \end{Large} + \begin{Large} + Summary of the Script and Lectures + \end{Large} \end{center} - \newpage + \printtoc{Aquamarine} +\newpage \section{Introduction} A note on the quote on the title page: He did not \textit{actually} mean ``curry'', but of course ``query'', but he just pronounced it that way. +This summary assumes some basic knowledge about databases. +All words written in \textbf{bold} should be clickable and should link you to the corresponding term in the glossary. +If I did not forget a term that is, of course. + \newsection \section{SQL} @@ -49,5 +57,7 @@ A note on the quote on the title page: He did not \textit{actually} mean ``curry \input{parts/00_sql/01_operations.tex} +\printGlossary + \end{document} diff --git a/semester4/dmdb/glossary/acronyms.tex b/semester4/dmdb/glossary/acronyms.tex new file mode 100644 index 0000000..522775d --- /dev/null +++ b/semester4/dmdb/glossary/acronyms.tex @@ -0,0 +1 @@ +\newacronym{sql}{SQL}{Structured Query Language} diff --git a/semester4/dmdb/glossary/basics.tex b/semester4/dmdb/glossary/basics.tex new file mode 100644 index 0000000..0c172ae --- /dev/null +++ b/semester4/dmdb/glossary/basics.tex @@ -0,0 +1,12 @@ +\newglossaryentry{declarative}{ + name={declarative}, + description={Describes \textit{what} to achieve, but not how} +} +\newglossaryentry{imperative}{ + name={imperative}, + description={Describes how to achieve something} +} +% \newglossaryentry{}{ +% name={}, +% description={} +% } diff --git a/semester4/dmdb/glossary/main.tex b/semester4/dmdb/glossary/main.tex new file mode 100644 index 0000000..05e8c02 --- /dev/null +++ b/semester4/dmdb/glossary/main.tex @@ -0,0 +1,3 @@ +\input{glossary/acronyms.tex} +\input{glossary/basics.tex} +% \input{} diff --git a/semester4/dmdb/parts/00_sql/00_intro.tex b/semester4/dmdb/parts/00_sql/00_intro.tex index 2325f23..1992e03 100644 --- a/semester4/dmdb/parts/00_sql/00_intro.tex +++ b/semester4/dmdb/parts/00_sql/00_intro.tex @@ -1 +1 @@ -SQL is a declarative programming language, used to describe and operate on databases. +\refacr{sql} is a \refgls{declarative} programming language, used to describe and operate on databases.