ISYS1057 - Database Concepts Assignment Problem

Assignment Help Database Management System
Reference no: EM132386787

ISYS1057 - Database Concepts Assignment - RMIT University, Australia

1. SQL

This question uses the Research database available in Oracle and as a build file for use in SQLite.

The ER model for the Academics database is as follows:

1432_figure.png

The Relational model for the Academics database is as follows:

DEPARTMENT( deptnum , descrip, instname, deptname, state, postcode)

ACADEMIC( acnum , deptnum*, famname, givename, initials, title)

PAPER( panum , title)

AUTHOR( panum*, acnum* )

FIELD( fieldnum , id, title)

INTEREST( fieldnum*, acnum* , descrip)

Write one SQL query for each question below to extract information from the database. Do not supply the output of the query. Only the SQL query is required for each question. All SQL must be presented in text format, i.e. no screenshots.

1.1. Use an IN subquery to find the title, given name and family name of all academics who work in departments located in Queensland. (Postcodes for Queensland start with the digit 4)

1.2. Using joins only, list all the title of fields of interest to doctors that work in Queensland. Output the field names, without duplicates. Do not use Natural Join for this question.

1.3. Display a list of academics that have collaborated with another academic on more than one paper. List individual pairs of academics on each line. List only their academic numbers. Do not list duplicate pairs. (e.g 56,113 and 113,56 are duplicate pairs)

1.4. There are some academics that have written more than 12 papers and there are some academics are interested in fields that have the word "database" in the title. List the academic number of each academic that meet either or both of these conditions.

1.5. There is concern about the integrity of the data in the Academics table. Are there any academics in the database who are missing Initials or a Title? Write a query to list the academic number of any academics that do not have initials or a title. Do not use a sub-query.

1.6. There are two requirements for this question:

1. Find all academics who have an interest in the field titled "Natural Language Processing". You must use an EXISTS sub-query. Output the initials of these academics. HINT: Don't forget to use TRIM when testing the title.

2. Further limit this list of academics by adding a NOT EXISTS condition test so only academics who have no other interests other than "Natural Language Processing" are present in the output.

1.7.What does the following query do? Describe what its purpose is using only plain English. Avoid use of SQL keywords. You may refer to Question 1 for help regarding postcodes.

select distinct p1.title

from paper P1, author A1

where P1.panum=A1.panum

and acnum in (select acnum

from academic

where title like 'Dr%'

or title like 'Prof%')

and exists (select *

from academic AC1

where AC1.deptnum in

(select deptnum FROM department

WHERE postcode >=4000 and postcode <= 4999)

And AC1.acnum=A1.acnum);

1.8. Write an SQL query to create a View that displays the title and surname of each academic and how many papers they have written. If an academic have not written any papers, then a "0" should be displayed against their name.

Hardcoding of identifiers not given in the question is not permitted and will incur a penalty for the question. Only use the information provided in each question.

Do not use the SQL keyword 'ROWNUM', 'FETCH' or 'LIMIT' to get a result.

2. Relational Modelling

For the relation: R (A, B, C, D, E, F, G)

The following functional dependencies hold:

F -> D

G -> B

C -> D

F -> C, E

B -> F

A -> F, G

2.1 Use Inference rules to find the minimal ?basis.

2.2 Determine the primary key? of the relation.

2.3 Based on this key, determine if the relation R is in BCNF. Explain your answer in terms of the FDs and the key.

2.4 If the relation R is not in 3NF or BCNF, then decompose the relation to 3NF/BCNF.

3. Normalisation

The table below has basic information about Sales staff and their sales for a small appliance sales chain. It shows the employee, the items they sell as well as which store they work in.

SALES(Emp_Name, Emp_ID , Make, Grade , Retail_Price, Wholesale_Price, Serial_No, Commission, Store _Address, Date, Store _Phone, Model)

The following functional dependencies apply and there are no redundancies present:

Store_Address -> Store_Phone

Grade -> Commission

Emp_ID -> Store _Address

Serial_No -> Model, Make

Emp_ID , Serial_No -> Date, Retail_Price

Serial_No ->Wholesale_Price

Emp_ID -> Grade

Emp_ID -> Emp_Name

3.1 Find the Primary Key of the SALES relation.

3.2 Decompose the SALES relation into 3NF. Show the final schema in full with all primary keys and foreign keys mark appropriately.

3.3 The following FD also holds true: Store_Phone-> Store_Address

Which relation in your decomposition would it map to? Test that relation to show that it is still in 3NF. Show your working.

4. Entity Relationship Modelling

This task can be completed using lucidchart.

If you prefer to use something else you are more familiar with that is also ok.

e.g. Visio, MS Paint, GIMP or even Google Drive.

Once you have created your diagram just insert it into your final document.

You must use only the following notation:

856_figure1.png

Use of Crows feet, Chen, IE notation or any other form is not permitted and will incur a penalty for this question.

According to the given description, construct an Entity Relationship (ER) diagram for the database, and make assumptions where necessary. You must represent entities, relationships and their attributes, and all applicable constraints in your ER diagram. Explain any concepts in the description that cannot be expressed in the ER diagram.

Bob The Builders is a company working in the construction industry and want a database to help manage their activities. They hire out equipment and people for construction work. Here are some relevant information about the company's operation.

The company has many types of equipment but all have some common information required for the database. They are; registration number, registration cost, weight, purchase date.

All equipment belongs to one of 4 categories; Earth, Lift, Move? and Other?

Each has specific data that needs to be recorded.

  • For Earth : Size, Fuel
  • For Lift : Height, Fuel, Capacity
  • For Move : Type, Fuel, Length, Height Limit
  • For Other : Power Source, Type, Rating

Employees are also represented in the database. Their employee number, name, address, contact number and specialty are recorded.

As the company takes on new jobs, these need to be loaded into the database as projects. Each project has a code to identify it, a name and address.

Employees form teams with names. Only the current team assignment for each employee is recorded in the database. Each team has a team leader. An employee can be a team leader or a team member but not both. Sometimes an employee is not available for work in a team at all.

A construction has one team allocated to it to work on just one project. A team only works on one construction at any given time. The start date and duration of the construction will be recorded.

Do not create any new attributes not already provided in this business description.

5. Relational Schema mapping

This is the ER diagram for a proposed database for an independent supermarket. It records information about staff and their activities as well as any awards they earn. The supermarket has cash register equipment and a roster that needs to be managed in the database.

Convert the ER diagram into a relational schema.

1629_figure2.png

For each relation in your relational database schema, you should:

  • Underline a primary key for each relation - each relation MUST have a primary key
  • Denote any foreign keys with asterisks(*) in your relations
  • Make sure you create a relation for each entity and relationship you see.

Relations not expressed in the approved representation are not permitted and will incur a penalty for this question.

Attachment:- Database Concepts Assignment File.rar

Reference no: EM132386787

Questions Cloud

Determine the test statistic : Determine the test statistic. Round your answer to three decimal places. Show all work; writing the correct test statistic
Determine for march 2019 the equivalent units of production : Baltimore uses the weighted average method. Use this information to determine for March 2019 the equivalent units of production for conversion costs.
What is the value of the observation : If the z-score for an observation is -1.22, the mean of the data set is 83, and the variance is 84, what is the value of the observation?
Why are prepaid expenses necessary : Why are prepaid expenses necessary and what is a an example of that? Also what is the status of the affected accounts before and after the adjustment?
ISYS1057 - Database Concepts Assignment Problem : ISYS1057 - Database Concepts Assignment Help and Solution, Assessment Help - RMIT University, Australia - Convert the ER diagram into a relational schema
Design remote access solution : Design a remote access solution. Risk management or assessment-protection of confidential and personally identifiable information (PII)
Identify the appropriate hypothesis test : (a) Identify the appropriate hypothesis test and explain the reasons why it is appropriate for analyzing this data.
What is their qbi deduction for 2018 : Dan and Katlyn are married and operate a pizza restaurant as an S corporation. In 2018, the store has qualified business income of $300,000.
Construct a table describing the probability distribution : 1. Let random variable x represent the number of heads when a fair coin is tossed two times.

Reviews

Write a Review

Database Management System Questions & Answers

  Create a view with the table

Create a view with the table which shows the number of subscribers who received each type of magazine.  The view should have columns for the magazine ID and count.

  Gathering information using cross indexed

Using data mining, it is possible to gather information which has been buried that can be manipulated and cross indexed which could be a valuable information gathering technique for entities.

  Identification of data requirements from different user

Structured Methodologies, Data Flow Diagrams, Entity Relationship diagrams, Structured English, Decision Tables and Cohesion/coupling.

  Draw a uml class diagram

Agencies typically keep the details of the employers they have dealt with, even when they have no current business with them.

  Assignment 5 logical design part ii problem your e-r model

assignment 5 logical design part ii problem your e-r model from a prior week was a success assignment 2 - logical

  Write sql queries to solve the given specifications

Write SQL queries to solve the following specifications. Include the query AND THE OUTPUT. A screen dump of the output is acceptable. Show as many rows as you can.

  Create a supplier database and related reports

Create a supplier database and related reports and queries to capture contact information for potential PC component suppliers that might be used to purchase the equipment your specified in your MS Word project - the PC specifications

  List the last name and first name of every boat owner

List the owner number, last name, and first name of every boat owner.

  Use of databases and data communication technologies

Discuss with your team how the bookstores use the Internet and if they use collaboration technology. The use of databases and data communication technologies

  The traditional retail model has focused on finding

assignment 3 how is technology changing the face of business today?the traditional retail model has focused on finding

  Prepare the layout for the buysell database- the general

chris and pat aquino own a successful isp internet service provider and want to expand their business to host an

  Write the statements to save the contents of the richtextbox

Create the necessary event handler that will execute when the user clicks the Save button to save the file in a rich text format.

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