123 lines
2.8 KiB
TeX
123 lines
2.8 KiB
TeX
\documentclass[12pt]{article}
|
|
|
|
\usepackage[utf8]{inputenc}
|
|
\usepackage[spanish]{babel}
|
|
\usepackage{array}
|
|
\usepackage{adjustbox}
|
|
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm,a4paper]{geometry}
|
|
\usepackage{amsmath}
|
|
\usepackage{verbatim}
|
|
|
|
\usepackage{listings}
|
|
\lstset{
|
|
basicstyle=\footnotesize\ttfamily,
|
|
columns=flexible,
|
|
breaklines=true,
|
|
inputencoding=utf8,
|
|
extendedchars=true,
|
|
literate={á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1 {ñ}{{\~n}}1 {Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1 {Ñ}{{\~N}}1
|
|
}
|
|
|
|
\usepackage{titling}
|
|
\renewcommand\maketitlehooka{\null\mbox{}\vfill}
|
|
\renewcommand\maketitlehookd{\vfill\null}
|
|
|
|
\usepackage{hyperref}
|
|
\hypersetup{colorlinks=true,allcolors=black}
|
|
\usepackage{hypcap}
|
|
|
|
\title{\textbf{Proyecto Semestral de Base de Datos\\Entrega 2}}
|
|
\author{Christopher Cromer\\\\Profesora Valeria Beratto\\Sección 1}
|
|
\date{\today}
|
|
|
|
\pretitle{%
|
|
\begin{center}
|
|
\LARGE
|
|
\includegraphics[width=4cm]{ubblogo.png}\\[\bigskipamount]
|
|
}
|
|
|
|
\posttitle{\end{center}}
|
|
|
|
\begin{document}
|
|
\clearpage
|
|
\hypersetup{pageanchor=false}
|
|
\begin{titlingpage}
|
|
\maketitle
|
|
\end{titlingpage}
|
|
\thispagestyle{empty}
|
|
|
|
\newpage
|
|
|
|
\clearpage
|
|
\thispagestyle{empty}
|
|
\tableofcontents
|
|
|
|
\newpage
|
|
\hypersetup{pageanchor=true}
|
|
\pagenumbering{arabic}
|
|
\section{Introducción}
|
|
El objetivo de este trabajo es modelar un sistema por el Servicio Nacional de Turismo(SERNATUR) con el propósito de almacenar y consultar a un base de datos de PostgreSQL con información sobre el turismo.
|
|
|
|
\newpage
|
|
\section{Consultas}
|
|
|
|
\subsection{Vista \texorpdfstring{$Q_1$}{Lg}}
|
|
\lstinputlisting{Informe2_vistaQ1.sql}
|
|
|
|
\subsubsection{Resultado de \texorpdfstring{$Q_1$}{Lg}}
|
|
|
|
\begin{center}
|
|
\includegraphics[keepaspectratio]{Informe2_Q1.png}
|
|
\end{center}
|
|
|
|
\subsection{Vistas \texorpdfstring{$Q_2$}{Lg}}
|
|
\lstinputlisting{Informe2_vistaQ2.sql}
|
|
|
|
\subsubsection{Resultado de \texorpdfstring{$Q_2$}{Lg}}
|
|
|
|
\begin{center}
|
|
\includegraphics[keepaspectratio]{Informe2_Q2.png}
|
|
\end{center}
|
|
|
|
\subsection{Vistas \texorpdfstring{$Q_3$}{Lg}}
|
|
\lstinputlisting{Informe2_vistaQ3.sql}
|
|
|
|
\subsubsection{Resultado de \texorpdfstring{$Q_3$}{Lg}}
|
|
|
|
\begin{center}
|
|
\includegraphics[keepaspectratio]{Informe2_Q3.png}
|
|
\end{center}
|
|
|
|
\subsection{Vistas \texorpdfstring{$Q_4$}{Lg}}
|
|
\lstinputlisting{Informe2_vistaQ4.sql}
|
|
|
|
\subsubsection{Resultado de \texorpdfstring{$Q_4$}{Lg}}
|
|
|
|
\begin{center}
|
|
\includegraphics[keepaspectratio]{Informe2_Q4.png}
|
|
\end{center}
|
|
|
|
\subsection{Vistas \texorpdfstring{$Q_5$}{Lg}}
|
|
\lstinputlisting{Informe2_vistaQ5.sql}
|
|
|
|
\subsubsection{Resultado de \texorpdfstring{$Q_5$}{Lg}}
|
|
|
|
\begin{center}
|
|
\includegraphics[keepaspectratio]{Informe2_Q5.png}
|
|
\end{center}
|
|
|
|
\newpage
|
|
\section{Script SQL}
|
|
|
|
\subsection{Crear tablas}
|
|
|
|
\lstinputlisting{Informe1corregido_creartablas.sql}
|
|
|
|
\newpage
|
|
\subsection{Insertar duplas}
|
|
|
|
\lstinputlisting{Informe1corregido_insertarduplas.sql}
|
|
|
|
\end{document}
|
|
|