Build a database design and the erd

Assignment Help Other Subject
Reference no: EM133682250

Assessment Item: The 5 Assignment

Students will create a database of their own choosing,
Students will also write SQL queries for their database.

Students are required to give a satisfactory presentation about their assignment. The presentations will be marked simply as satisfactory or unsatisfactory.. Prior to giving their respective presentations, each student will hand to the subject coordinator a brief document summarizing their chosen database project.

Assignment Specification

Build a database. You decide what database you'd like to build. However, your database must satisfy the "minimal essential" conditions given below, otherwise you will be penalized heavily in the marking.

Task 0: Choice of Database Project
Your choice of database should demonstrate some initiative, and be something that is largely your own idea. It must not resemble closely any database you found in the textbook, or any other book, and it must not resemble closely any database built by a student in a previous semester. After you have chosen a project, you should check with the subject coordinator that the project is not too similar to any database in a book or built by a former student. To check with the supervisor:
Guidance via Zoom: communication is preferred, simple approval could be done via zoom, you should show the coordinator your first attempt at the ERD. This may be hand drawn, and may contain errors - it just needs to sufficient to convey to the coordinator what it is you intend to build.

Unless you have special permission from the subject coordinator (see below), your database must be inspired by a real web site. Imaginary data for that web site is acceptable, but real data from that web site is preferred, where possible. You must provide the URL for the web site that inspired your project.

Special Permissions: Some students may have a particular application in mind that is not on the world wide web. For example, they may want to build something relevant to where they work. That is acceptable in principle, but students must have the explicit permission of the subject coordinator, in writing (i.e. email). Students are reminded that their assignment submissions are public documents that may be placed in UTSOnline for classmates, and future students to look at. Therefore, the databases for which students seek special permission should not be populated with commercially sensitive data.

The Database Design and the ERD
Provide a well-designed ERD for this problem, using the notation from the textbook (do NOT provide something in Microsoft Access database diagram format). Indicate the primary key (with an underline) and give the complete attribute list for each entity (i.e. all columns in the given table should occur somewhere in the ERD). If foreign keys are composite, still don't show them in the ERD unless it is a primary key as well. Include all attributes for each entity in the ERD.

Your diagram may be generated with any drawing tool you like, but the ERD must be included in your PowerPoint document (perhaps pasted in as an image). Hand-drawn diagrams may be acceptable, provided they are legible (but where the diagrams are illegible, answers will be assumed wrong). Hand-drawn diagrams need to be scanned (or digitally photographed) and submitted as part of the PowerPoint document.

The database ERD must contain at least: (1) a single one-to-many (or zero to many) relationship, and (2) a single many-to-many relationship, broken into two one-to-many relationships. Failure to meet this criterion will attract zero marks for the entire assignment. However, a database design that just meets this minimal requirement (and meets all other requirements) is likely to score only half the available marks. The complete ERD should fit on a single A4 page, with all writing in the ERD in 12 point.

The SQL
In PostgreSQL, implement your database design. Populate your database with suitable data for testing the SQL queries you will provide in a subsequent task. Also, provide enough data so that the table rows demonstrate the relationships. For example, if there is a 1:M relationship between 2 tables, ensure that there are at least two records in the M-side table that are related to a respective record in the 1-side table. If the relationship is 0:M, then the appropriate table should contain a row that does correspond to any row in the other table.

When submitting the assignment, provide all your SQL, including all the "insert" commands for placing your data into your database.

Start the SQL with "DROP" commands for each of your tables, so you can run your script more than once. Use CREATE statements to create your tables. Use "Constraint" to define primary and foreign keys.

Domain Integrity: Where appropriate, add checks on your data.

Referential Integrity (1): Your database should check foreign keys. (2) Your database should also enforce suitable deletion actions.

When you paste your SQL code into the submission document, use the "Courier New" font. It is a fixed width font, and will preserve your indenting. A variable width font like "Times Roman" will not preserve your indenting.

Queries
Write the following queries for your database:
1. A simple query of a single table.
2. A query which uses the words "natural join".
3. The cross product equivalent to the "natural join" query above.
4. A query involving a "Group by", perhaps also with a "HAVING".
5. A query which uses a sub query.
6. A cross product which cannot be implemented using the words "natural join" (e.g. self join)

Set out each of these queries as they were set out for the SQL lab exams. That is:
An English language description of what the SQL query does.
The output generated by it (in Courier New font or another fixed width font).

After all six queries "questions" as specified above, provide the "answers" to all six queries.

The SQL .txt File: Minimum Essential Conditions
Your database must satisfy the following "minimal essential" conditions, otherwise you will be penalized heavily in the marking, and perhaps receive zero marks.
Your SQL in the .txt file must successfully build a database in PostgreSQL. A SQL submission that produces an error when run within PostgreSQL will attract zero marks for the entire assignment. If you can't get some aspect of the SQL working, leave it out of your project submission.
The file containing your SQL should begin with a comment header block (i.e. lines beginning with two dashes). The first line of the header block should contain ("5"),Sem, Year", followed by lines providing your name and email address and your (student number). The header block should then contain, in English, the nature of your database application. Do NOT use technical database language in this section. Write something like the description of the NASA database. You must provide the URL for the web site that inspired your project in this heard block.
Your SQL should be laid out so it is easy to read. When writing all your SQL, you should approximately follow the indentation style used in the files provided as part of the lab exercises. When you paste your SQL commands into the PowerPoint document, use a fixed-width like Courier to preserve indentation.
Domain Integrity: You must made good use of "check" statements.
Referential Integrity: Your SQL should contain all reasonable "ON DELETE" actions, if appropriate both "ON DELETE RESTRICT" and "ON DELETE CASCADE".
All your CREATE statements should precede all your INSERT statements.

Students are warned that a token effort (i.e. seriously breaches the "minimal essential" conditions) of assignment will attract zero marks.

Students are free to produce a database that goes well beyond the requirements of the minimum essential conditions.

PowerPoint Presentation: Minimum Essential Conditions

First run the script file before the presentation on Postgress to show that your script file is working and can generate tables and data in the tables. All students who have submitted the softcopy of their 5th assessment must do a presentation.

The required PowerPoint is a subset of what was required for the Distinction assignment:
The first slide should be a title slide, as in the HD assignment/Project. The title page should include the name of the student who produced the slides (and in the hardcopy only, his/her student number, which may be hand written).
The next slide (or set of slides) should describe the real-world domain modeled by this database. Be succinct. One slide could be enough. The audience just needs to know enough about the domain to understand the ERD.
The next slide should show the complete ERD for this database.
The next slide should illustrate a single one-to-many relationship in the database (other than a one-to-many relationship that occurs as part of a many-to-many relationship). As in the Distinction PowerPoint presentation, this slide should show both the relationship as shown in the ERD and its realisations in tables, with some example values in the tables.
The next slide should illustrate a single many-to-many relationship in the database. As in the Distinction PowerPoint presentation, this slide should show both the relationship as shown in the ERD and its realisations in tables, with some example values in the tables.
The next set of slides should show the various queries you are required to write:
A simple query of a single table.
A query which uses the words "natural join".
The cross product equivalent to the "natural join" query above.
A query involving a "Group by", perhaps also with a "HAVING".
A query which uses a sub query.
A cross product which cannot be implemented using the words "natural join" (e.g. self join)
For each query, provide (ideally, but not necessarily all on one slide) (1) an English
description of what the query is supposed to find, (2) the actual query, and (3) the
output generated by each of the queries (design queries that are economical in what
they return).
The next slide (or set of slides) should illustrate the use of CHECK statements from your SQL. Show a variety of your CHECK statements.

The next slide (or set of slides) should illustrate the use of action statements in your SQL. Two examples in the PowerPoint are sufficient. If your database contains both "ON DELETE RESTRICT" and "ON DELETE CASCADE", give an example of each.
The next slide (or set of slides) should illustrate the use of a view in your SQL.

Reference no: EM133682250

Questions Cloud

Perform an analytical control-system design : Design a LEAD compensator for the QUBE servo with angle output - Simulate the resulting closed-loop system using MATLAB/Simulink
How overall strategic planning can potentially be improved : Determine how overall strategic planning can potentially be improved by applying financial management and teamwork principles within your organization.
Acts of conducting legal research : Your evaluation of whether the acts of conducting legal research, analysis and/or writing skills may have helped you as you made your choices.
Why are all crime scene procedures organized : Why are all crime scene procedures organized around the 3 R's?
Build a database design and the erd : Build a database. You decide what database you'd like to build. However, your database must satisfy the "minimal essential" conditions given below, otherwise
Identify its core business and any diversified organizations : Identify its core business and any diversified organizations. Identify if the health care system is practicing related or unrelated diversification.
Plaintiff in small claim court action : You represent a plaintiff in a small claim court action for $5000 where the defendant is also represented by a paralegal you make an offer to settle
Modification or even elimination of fiduciary duties : What are the policy arguments for and against permitting parties to agree to modification or even elimination of fiduciary duties?
What directional strategies and strategic alternatives are : Identify what directional strategies and strategic alternatives are and discuss the similarities and differences in their application.

Reviews

Write a Review

Other Subject Questions & Answers

  Explain economic effect of an aging population on society

According to Novak (2018), federal funding for older adults has more than doubled since the 1960s. Increases in the number of older people and the number.

  What personal biases can you identify in yourself

What personal biases can you identify in yourself? What makes you feel uncomfortable working with the identified population?

  Concepts of organizational behavior

This assignment will require you to reflect on a real world organization and apply the concepts of organizational behavior. Ideally, you will use a current or a past organization you have worked for as the basis for this assignment. However, you may ..

  Varrying viewpoints-slavery

Varrying Viewpoints" notes that Ulrich B. Philips made certain claims about slavery that have been challenged in recent years. Which of the following is not one of his conclusions?

  What interest groups would be involved

What interest groups would be involved. What patterns might influence the direction of your research

  Describe a time when you experienced a conflict

Identify the person who you think is the best contact for you to communicate with about your area of interest. Why did you choose that person?

  What is main concern of schindlers about situation

According to Kohlberg’s theory, please briefly explain in Terri Schiavo case, what is the main concern of Schindlers (Terri’s parents) about the situation? Do you think they were right?

  What are creation myths

What are creation myths, and what purpose do they serve? What similar themes appear in creation myths across cultures

  Laws targeted online criminal behavior

What are some of the laws which have specifically targeted online criminal behavior. Have they been employed effectively

  Do you agree with indonesias strategy

Watch Video: Indonesia is vaccinating younger people first. Here's why (By Stanley Widianto and Tabita Diela) and state your opinion regarding Indonesia's.

  Explain and narrative analysis of the life span interview

Identify specific biological, psychological and sociological influences that shaped the individual's experience.Explain and narrative analysis of the Life Span

  How does the interview contribute to the assessment process

Why is a clinical interview necessary as an initial component to the assessment process? How does the interview contribute to the assessment process?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd