diff --git a/semester4/dmdb/code/sql/title.sql b/semester4/dmdb/code/sql/title.sql new file mode 100644 index 0000000..6113bec --- /dev/null +++ b/semester4/dmdb/code/sql/title.sql @@ -0,0 +1,12 @@ +SELECT d.user_id AS user_id, + d.analytics AS analytics, + d.survey_id AS surveyid +FROM ( + ((annotator NATURAL JOIN app_user) users + JOIN survey_users su ON su.users_id = users.user_id) u + JOIN survey s ON u.survey_id = s.id +) d +WHERE d.analytics <> '' + AND d.analytics LIKE '%x%' + AND d.title <> 'testing' + AND d.further_options <> ''; diff --git a/semester4/dmdb/data-modelling-databases-summary.pdf b/semester4/dmdb/data-modelling-databases-summary.pdf index 0074504..fce6cdd 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 bdd4b49..f87bcdd 100644 --- a/semester4/dmdb/data-modelling-databases-summary.tex +++ b/semester4/dmdb/data-modelling-databases-summary.tex @@ -20,13 +20,16 @@ \mediumverticalspacing -\vspace{1cm} -\begin{center} - \includegraphics[width=0.5\linewidth]{~/projects/latex/assets/logo.jpg} -\end{center} - - \vspace{2cm} +\inputcode{sql}{./code/sql/title.sql} +{\scriptsize + The above query is not what SQL technically is meant for and the data format isn't great.\footnote{ + However, I simply did not want to come up with a long query only for the title page. This query may or may not be from + \hlhref{https://github.com/eye-tap/analysis/blob/main/scripts/query-analytics-data.sql}{here}.} +} + + +\vspace{3cm} \begin{center} \begin{Large} \quote{A curry can be written in many different ways}