Assignment 1 DBMS
Assignment 1 DBMS
HW 1
CS 623
You have several exercises to do in this assignment. You will submit this file with your
answers. Do not change the order of the questions and do not remove anything from the
file. Write your answers inline.
Exercise 1. Discord
Post your introduction in the discussion board. Who you are? Your degree? Your
location? What you expect from the course?
Introduction
Exercise 2. Research
What were the predicted The predicted advancements were about the complex
advancements of this topic? queries and how different techniques can support said
queries with a better language
What are the results of the The results of this topic today is data warehousing.
research on this topic Allowing the exchange of data and making it more
today? available
1. A x B = B x A
2. | A x B | = | B x A|
3. A U B = B U A
True, union of sets is commutative operation meaning the order in which
sets are combined does not matter
4.1. Compute S x T.
2^n=2^4=16
P(S) = {{},{a},{b},{c},{d},{a, b}, {a, c}, {a, d}, {b, c}, {b, d}, {c, d},{a, b, c},
{a, c, d}, {a, b, d}, {b, c, d},{a, b, c, d}
It can take too long to produce a result I.e; A×B = {(a1,b1), (a1,b2), (a1,b3), ( a2,b1),
(a2,b2),(a2,b3), (a3,b1), (a3,b2), (a3,b3)}. But A has 1 million elements and B has 2
millions elements
Exercise 4. Tools
Download and install the following software on your computer. You will test the
installation. Save your logins, passwords and ports. Write down in what directories the
software are installed. If you do not do this, you may get issues in the future.
Create screenshots to prove that you installed the software on your computer.
There is a graphical environment for MySQL but I prefer the command line version. You
are free to use the GUI version.
You need to be in the directory where MySQL is installed (bin directory) or have bin in
your path.
Video: https://www.youtube.com/watch?v=1GlQpflJZTU
Tutorial:
http://info.enterprisedb.com/rs/069-ALB-339/images/
Tutorial_Getting_Started_with_Advanced_Server_on_Windows.pdf
Graphical environment
Launch pgAdmin from the Start menu of Windows. Update to pgAdmin version XX.
Create a table.
Command line
For MySQL.
For PostgreSQL.
Exercise 5. SQL
You will do the same exercise in MySQL and PostgreSQL.
Provide the code and screenshots to support your work. Integrate the screenshots here.
MySQL PostgreSQL
Explain how transactions running on this system might violate each of the following
properties. Provide an example for each property.
• Atomicity
• Consistency
• Isolation
• Durability