44 lines
2.1 KiB
TeX
44 lines
2.1 KiB
TeX
\documentclass{article}
|
|
\usepackage{graphicx}
|
|
\usepackage{hyperref}
|
|
\graphicspath{ {./images/} }
|
|
\usepackage[utf8]{inputenc}
|
|
\usepackage{float}
|
|
\usepackage{indentfirst}
|
|
\setlength{\parskip}{\baselineskip}%
|
|
|
|
\title{QM 7093: Enterprise Data Systems: NoSQL with MongoDB}
|
|
\author{Noah L. Schrick}
|
|
\date{13 December, 2022}
|
|
|
|
\begin{document}
|
|
|
|
\maketitle
|
|
\tableofcontents
|
|
\newpage
|
|
|
|
\section{MongoDB}
|
|
Due to the flexible nature of the project assignment and the ability to take alternate database approaches, MongoDB was chosen as the database implementation.
|
|
While both MongoDB and CouchDB are document-based NoSQL databases, they each have differing advantages. My primary research focuses and interests revolve around the High-Performance Computing (HPC) space, and MongoDB sees greater usage in this area. MongoDB has greater scalability and better performance than CouchDB, though it does lack the design priorities of availability that CouchDB offers. MongoDB is also one of the most-widely used databases across all models, ranking at position 5 on \url{https://db-engines.com/en/ranking?utm_source=xp&utm_medium=blog&utm_campaign=content}.
|
|
|
|
|
|
\section{Insertions and Queries}
|
|
\subsection{Inserting Data}
|
|
Insert all records from the provided datasheet with the following properties:
|
|
\begin{itemize}
|
|
\item{Create all the records with columns StockCode, Description, Quantity, Price, Customer ID and Country (that means you should NOT include invoice and invoice Date in your columns).
|
|
}
|
|
\item{The code for records without customer ID should NOT have a customer ID column.
|
|
}
|
|
\item{Create another column “HighDemand” but ONLY for records with Quantity more than 12 (12 included). In the column put “Yes”.
|
|
}
|
|
\end{itemize}
|
|
|
|
\subsection{Queries}
|
|
\textbf{Question 1:} How many records have the column “HighDemand”? (Must have a code to answer this, one way to answer this is to have a code that displays all the records except those with the column HighDemand and then subtract the number from total number of records)
|
|
|
|
\textbf{Question 2:} Display the records with price more than 4 (4 excluded)
|
|
|
|
\section{Metadata}
|
|
|
|
\end{document} |