Homework: Database Design & Management Project Using MySQL
MySQL
MySQL is a database management system that allows you to manage relational databases. It is open source software backed by Oracle. It means you can use MySQL without paying a dime. Also, if you want, you can change its source code to suit your needs.
Even though MySQL is open source software, you can buy a commercial license version from Oracle to get premium support services.
MySQL is pretty easy to master in comparison with other database software like Oracle Database, or Microsoft SQL Server.
MySQL can run on various platforms UNIX, Linux, Windows, etc. You can install it on a server or even in a desktop. Besides, MySQL is reliable, scalable, and fast.
ABOUT THE MySQL FINAL
Use screen captures to document each step of the project.
• Describe the requirements for a database that will support a small online business. Makeup a small business scenario or use a real-life scenario familiar to you. In this section you should also try to formulate the queries that you that you want to write for the database.
• Design the conceptual database behind the described requirements. This is the ER Diagram for the small database.
• Convert the conceptual design to a physical design. This is translating the ER Diagram into the relational schema and metadata describing the tables, attributes and relationships.
• Implement the Physical Database from the physical design. This is transposing the relational schema and metadata into the a series of CREATE TABLE statements with the appropriate CONSTRAINT modifiers.
Here are some helpful hints to get started with your design
You need to describe at least the following aspects of the Database:
• What products and/or services will the database hold, the categories of products/services, approximate number of product titles in each category, what (approximately) is the product information that the customers will be able to access
• What information is need from the database
• Create the ER diagram from the information gathered in parts 1
• Write out the schema and metadata of the database, including:
o All the database tables.
The Metadata
For each table column please specify: the name and the type of the column, whether the value can be null or not, and whether the values are required to be unique.
For each table please specify which column (or columns) forms its primary key.
In the ER Diagram, show all relations between columns, specify the type of the relations (one-¬-to-¬-one or one-¬-to-¬-many), and what is the foreign key by which the tables are related. You can do this in the diagram by placing an FK suffix at the end of the attribute that is a foreign key.
A few things to keep in mind when creating and finalizing the design
• Don't try to be, too ambitious in planning your database. As much as you would want to have a lot of features in your database, you have to keep in mind that they will be implemented later in the project! So please try to create a minimum design that will be easy to implement and test.
You may need to reduce the scope of the project to get a working version completed. In IT, if you cannot deliver a list of features within a given schedule, you have two choices. You can either reduce the features in order to deliver on time, or you can extend the time of the project. We are at the end of the semester, so we cannot extend the time, we can only reduce the activity in the project. In a Database Project, reducing the scope means removing tables, data, and queries from the project.
o Create the database Container
o Create Entity Tables
o Create Relationship Tables
o Insert Test Data
Designing the ER Diagram, creating the Relational Schema, creating the Metadata and inserting the Test Data is part of the group homework. Once the database structure is created and the test data has been inserted, the projects turns into individual homeworks. Individually the group members of a group are to write queries to test separate segments of the database
Project Overview
As you create a Database to support sometime of business activities, create the ER
Diagram, Relational Schema, Metadata and Test Data for the Database you have chosen. Create the physical database in MySQL using the appropriate Create Database and Create Table DDL statements to create the database container and create the tables for the database. Finally, insert the initial test data representing a current state of the test organization.
Perform the following types of queries using tables of the segment of the database that you are testing in your database project. Practice Union, Intersection and Difference operations on one entity table in the database. For this part of the homework, choose a single table from the entity tables of your database project to work with. Merge two databases, a number of tests have to be performed on similar data sets from both databases. Create a duplicate table to mirror the entity table you are testing. Insert a few rows from the test data of your entity table into the duplicate table mirroring it. You should then insert one or two unique rows into the duplicate table mirroring your entity table. Once you get this type of environment setup in your database for this homework, you will be able to perform varying relational algebra operations. You will be able to perform an intersection finding common records in both tables. You will be able to perform a difference operation from both directions. You will be able to perform a Union combining both tables into one result set. That is exactly what you are to do:
o Write a query that performs an intersection on you main table and your duplicate mirroring table
o Write a query that performs an Difference on you main table and your duplicate mirroring table
o Write a query that performs an Union on you main table and your duplicate mirroring table
For the union, difference and intersect query, the other database table is a table structure made from the table that you have chosen to work with in your project. It represents the data from another company merging with the data in your company.
You are to write a query using your table and a table that it has a relationship with:
Remember a relationship is established when two table share a common attribute. One is the primary key table the other is the foreign key table. For the multi-¬-table select query, use the entity table as the one side of a 1-¬-M relationship. Use one of the relationship tables created earlier as the many side of a 1-¬-M relationship.
Create a query that will alter the structure of your entity table:
Normally when integrating systems, there are a few data type compatibility issues and data alignment issues that need resolution. To prepare for handling such problems, create an Alter Table command to demonstrate that you can handle these types of situations should they arise
Write a query that will update a row in your entity table
To demonstrate that you have an understanding of update queries, create an update process to update one or more existing records in your chosen table. This could be accomplished by populating the new attributes added to the table. The project submission must include the following documents:
o Copy of the ER Diagram and Schema that was used to develop the table
o The Metadata for the database
o The SQL script file to create the database, tables and insert the data
o The SQL script file containing your individual queries
Format your homework according to the following formatting requirements:
o The answer should be typed, using Times New Roman font (size 12), double spaced, with one-inch margins on all sides.
o The response also includes a cover page containing the title of the homework, the student's name, the course title, and the date. The cover page is not included in the required page length.
o Also include a reference page. The Citations and references must follow APA format. The reference page is not included in the required page length.