HS2021 Database Design

{`
        HS2021 Database Design and Use Group Assignment
        HOLMES INSTITUTE
        FACULTY  OF HIGHER EDUCATION
        UNDERGRADUATE PROGRAM
        `}

HS2021 Database Design and Use Group Assignment

This is a group assignment with a maximum of 2-4 students per group

Submission Requirements

SQL scripts that you submit must work with Oracle Live SQL.

You must Submit Your Coursework as a single .zip file using Blackboard submission link.

Your single .zip file must include the following three files:

  1. A single .PDF document named PDF that contains:

All student names and numbers on page 1

A fully expanded and complete ERD diagram (see part 1). o The diagram must be an image created with a diagramming tool such as draw.io or Visio

o The diagram must follow the ERD symbol conventions used in lectures

and labs.

The relational schema (see part 2)

Please ensure that you know how to create a pdf file at least one week prior to submission of your assignment.

[A simple way to create the above PDF document is to create an MS Word document, add the appropriate text and paste diagrams from Draw.io or Visio. Finally, choose either Save As PDF, or Print the document using the Adobe PDF Printer option. Both PDF options are available in all Swinburne labs.]

  1. The script file named TXT that contains SQL statements for parts 3-5.
  2. The Doc file named docx contains output generated by the above script.

NOTE: These files must be zipped into a single .zip file prior to submission. Do not submit a .rar or .7z file.

Aussie Wine Tours

Part 1.

Create a fully expanded ERD based on the information in the following narrative.

Business Narrative

Aussie Wine Tours (AWT) conduct tours of the wineries of Victoria's Yarra Valley wine region. Each tour is run on a single day. Currently, there are several wine tours including The White Wine tour, The Red Wine tour and The Sparkling Wine tour. The Red Win Tour is a very popular tour and has often run 3 or 4 times in a single month. The tour schedule depends upon the availability of the wineries, the availability of the tour leaders and the public interest.

Each tour takes usually takes around 6 hours to complete and is led by one or more of AWT's well-renowned wine experts.

Each tour has a 'current price'. However, due to various market forces, prices have been rising over the past couple of years. For example, last year the Red Wine Tour was $170 but now it's the current price is $200.

No two events for the same tour can occur on the same day. (e.g. The Red Wine Tour cannot be conducted twice on the same day).

AWT have many satisfied customers, many of whom have attended multiple wine tours over the years. Each customer has a customer id, name, address and contact phone number.

AWT usually plan and advertise wine tour details and dates about 6 months prior to the running of each tour. Customers usually ring AWT to make bookings for their wine tour. Each booking stored in the AWT system is for a single person. (E.g. A husband and wife attending the same tour event will have two bookings created for them. Each booking is for a single customer).

AWT have a number of printed wine tour brochures – one for each of the different wine tour (E.g. A 4page printed glossy brochure that has photos and details of the Red Wine Tour).

People often ring up or email AWT and request a brochure. Brochures are only sent to customers.

If the person requesting a brochure is not already a customer, then AWT create a new customer by assigning a customer id and recording the person's name, address and phone number. When a brochure is requested, AWT record the date of the request. After the brochure is mailed to the customer, AWT record the date that the brochure was sent. Obviously, a customer who requests a brochure is not under any obligation to make any bookings.

A customer makes payment(s) for each booking. Each payment made is for a single booking. AWT record the amount of the payment, the date of the payment, the type of payment made (cash, credit card or cheque) and which booking the payment is for. Some customers may two or more payments for single booking (e.g. the tour price is $200 and the customer makes two payments $120 and $80.)

Sometimes (though rarely), a customer makes a payment for an amount larger than required. AWT simply record the amount of the payment. (You simply have to record the amount of the payments made. You do not need to concern yourself with how refunds or payment transfers may occur).

AWT have a number of gifts available for participants attending tour events. Generally, three or four gifts are offered to participants of a tour event. The gifts on offer are often decided by a mixture of the type of tour, the whim of the wine expert leading the event and availability of stock. On the day of the event, each participant may choose a maximum of two gifts. AWT records which gifts are chosen by each booked customer. Obviously, a customer has the right to not select any gifts while attending a tour.

Note: You are not expected to limit the number of gifts selected by a customer to 2. This is beyond the scope of an ERD. Such a restriction would normally be programmatically solved using a Stored Procedure, Trigger or some other programming technique).

IMPORTANT: You must not ask answers or assistance from your tutor as this is an assessment that needs to be done by team members by themselves. The tutor will provide only general guidelines only.

Part 2.

  • Create a Relational Schema based on your ERD.

Part 3.

  • Create a file called Ass2_SQLScript.TXT which contains SQL statements that can be executed by your tutor. All SQL statements must be able to be executed successfully in Oracle Live SQL.
  • Add the Create Table to the script file to create all of the tables.
  • All tables must enforce primary key and foreign key constraints. Surrogate Keys mustnot be introduced into your solution.
  • Add the Insert statements to populate your tables with only the data used in Appendix A below. Do not add your own data.

Part 4.

Demonstrate your foreign key constraints work correctly. Each of the generated Insert statements must fail due to foreign key constraint errors. Add the Insert statements to the script file.

  1. Attempt to insert a row that allocates expert # 22 to Tour B1 conducted on 2020/02/18.
  2. Attempt to insert a row that books customer C078 on Tour W1 conducted on 2020/01/01.
  3. Attempt to insert a row that makes a payment for customer C225 conducted on Tour W1 conducted on 2020/01/01.
  4. Attempt to insert a row that allocates gift G09 to Tour W1 conducted on 2020/01/01.
  5. Attempt to insert a row that allows customer C123 to select gift G09 on Tour R2 conducted on 2020/10/07.

Part 5.

Create SQL queries to do the following. Add the SQL statements to the script file.

Query 1. List Customer No, Name, Address and Phone No of all customers. The List must be in Customer No sequence.

Query 2. List tour code, event date, wine expert name(s) of all tour events.

The List must be in tour code, event date, wine expert surname sequence.

Query 3. List tour code, event date, customer no and customer name for every booking made

The List must be in tour code, event date, customer no sequence.

Query 4. List tour code, event date, gift code and gift description for all gifts offered on all tour events The List must be in tour code, event date, gift code sequence.

Query 5. List tour code, event date, customer no and customer name, gift code and gift description for all gifts selected by customers on all tour events

The List must be in tour code, event date, customer no, gift code sequence.

Part 6.

Query 6. List Customer No, Customer Name, total payments made by all customers who

have made bookings. Include customer that may never made a booking. The List must be in Customer No sequence

Query 7. List Tour Code and total payments made for all tours.

The List must be in Tour Code sequence

Query 8. List gift code and gift description and total number of times that a gift has been selected by a booked customer.

Include all gifts that may never have been selected.

The List must be in descending total sequence

Query 9. List the current price and the minimum price charged for each tour.

E.g. Tour X1 has a current price of $500. Ten months ago, this course ran and the price was $425 The list would show:

Tour Code Description Current Price Minimum Price

X1 Expensive Wine Tour 500 425

Query 10. List Customer No, Customer Name, tour code, event date for all customers who requested a brochure for a tour and then made a booking for that tour.

Script execution and output requirements

Your submission must include the output generated by your script file after the entire script has been executed in Oracle Live SQL. The output must be pasted and copied into a Word file.

Appendix A. Existing Documents

Below are sample copies of various existinghandwritten documents that are currently manually maintained by staff at AWT.

Wine Tour Descriptions

Tour Code

ShortName

Short Description

Current Price

B1

Wine Appreciation

A great tour for visitors new to wine tasting. Our experts describe the process of wine tasting, purchasing wine and how to plan your wine cellar

$300

R2

Red Wine Tour

Sample brilliant red wine varieties from this famous region wineries with one of our distinguished wine experts

$200

W1

White Wine Tour

Taste the best white wines of the regions many worldrenowned wineries under the guidance of one of our celebrated wine experts

$220

S1

Sparkling Wine Tour

The region is famed for its interesting forms of sparkling wines. Our expert tour leader will ensure that this is an experience never to be forgotten

$250

Event Calendar

Tour Code

Tour Description

Event Date

Price

Event Wine Expert

(s)

Gifts on offer

R2

Red Wine Tour

2019/10/07

$170

Penny Folds, Geoff Millar

G01, G02, G03, G04

B1

Wine Appreciation

2019/11/11

$270

Geoff Millar

G06, G05,

B1

Wine Appreciation

2020/02/18

$280

Hillary Cork, Sue Davies

G01, G03, G05, G07

R2

Red Wine Tour

2020/02/18

$190

Penny Folds

G01, G06, G07, G09

R2

Red Wine Tour

2020/03/07

$200

Geoff Millar

G02, G06, G08

B1

Wine Appreciation

2020/03/14

$300

Geoff Millar, Hillary Cork

G04, G05, G06

W1

White Wine Tour

2020/06/03

$200

Sue Davies

G01, G04, G06

S1

Sparkling Wine Tour

2020/10/27

$250

Sue Davies

G02, G04, G09

W1

White Wine Tour

2020/10/29

$220

Hillary Cork, Penny Folds

G01, G05, G06, G09

List of Wine Experts

Expert No

Expert FirstName

Expert Surname

Phone Number

5

Sue

Davies

9214-2222

1

Geoff

Millar

9214-1111

8

Hillary

Cork

9214-4444

12

Penny

Folds

9214-3333

Participant Details

Tour: B1 Wine Appreciation Date: 2020/02/18

Customer No

FirstName

Surname

Amt Paid

Gifts Selected

C123

Joel

Warren

$280

G01

C218

Sue

Armstrong

$280

G01, G05

C178

Grant

Simpson

$280

G05, G07

C191

Sarah

Charter

$280

G05

C334

Helen

Chin

$280

G05, G07

C367

Ryan

Chin

$280

G07

C555

Ted

Smith

$325

Tour: R2 Red Wine Tour Date: 2020/02/18

Customer No

FirstName

Surname

Amt Paid

Gifts Selected

C078

Clare

Watts

$190

G01, G07

C267

Karin

Black

$190

G01

C225

Ziggy

Lee

$190

G07, G09

Tour: R2 Red Wine Tour Date: 2020/03/07

Customer No

FirstName

Surname

Amt Paid

Gifts Selected

C218

Sue

Armstrong

$200

G02, G06

C191

Sarah

Charter

$200

G08

C123

Joel

Warren

$270

G02

Tour: W1 White Wine Tour

Date: 2020/06/03

Customer No

FirstName

Surname

Amt Paid

Gifts Selected

C078

Clare

Watts

$100

C123

Joel

Warren

$200

G04

C225

Ziggy

Lee

$200

G04, G06

C367

Ryan

Chin

$200

G01, G04

Tour: B1 White Wine Tour

Date: 2019/11/11

Customer No

FirstName

Surname

Amt Paid

Gifts Selected

C191

Sarah

Charter

$270

G05, G06

C555

Ted

Smith

$270

G06, G05

C267

Karin

Black

$270

G05, G06

Tour: R2 White Wine Tour

Date: 2019/10/07

Customer No

FirstName

Surname

Amt Paid

Gifts Selected

C225

Ziggy

Lee

$50

G01, G04

C078

Clare

Watts

$170

G02, G03

C123

Joel

Warren

$170

G04

List of Gifts

Code

Description

G01

Collectors Red Wine Glass

G02

Cork Screw

G03

Sherry Glass

G04

White Wine Glass

G05

Guide to Wine Tasting Handbook

G06

Winery Guide Handbook

G07

Wine for Women Handbook

G08

Wine Museum Voucher

G09

Collectors Sparkling Wine Glass

G10

Commemorative Cup

Brochure Requests

Request Date

Cust No

CustFirstname

CustSurname

Address

Phone

Tour #

Request

2019/06/19

C267

Karin

Black

1 Black St

9214

8888

W1

2020/08/19

C215

Henry

Ryde

8 White St

9214

6666

B1

2019/09/15

C225

Ziggy

Lee

17 Low St

9214

9999

B1, R2,W1

2020/01/05

C218

Sue

Armstrong

1 High St

9214

9999

B1, R2

2020/01/06

C334

Helen

Chin

6 Red Rd

9214

5555

B1

Customer Address List

Customer Name

Address

Phone

Joel Warren

7 Bluff Rd

9214 2277

Henry Ryde

8 White St

9214 6688

Sue Armstrong

1 High St

9214 9911

Ziggy Lee

17 Low St

9214 9944

Karin Black

1 Black St

9214 8822

Helen Chin

6 Red Rd

9214 5500

Clare Watts

15 Dale Rd

9214 1166

Ted Smith

7 John St

9214 8000

Ryan Chin

6 Red Rd

9214 5522

Sarah Charter

19 Hill Ave

9213 4477

Grant Simpson

23 Wall St

9213 3311

Diploma Universities Assignments

Laureate International Universities Assignment

Holmes Institute Assignment

Tafe NSW

Yes College Australia

ACC508 Informatics and Financial Applications Task 2 T2, 2019

ACC512 Accounting

ACC520 Legal Regulation of Business Structures Semester 2, 2019

ACCT20074 Contemporary Accounting Theory Term 2 Assessment 3

AERO2463 Computational Engineering Analysis : Assignment 4

B01DBFN212 Database Fundamentals Assessment 1

BE01106 - Business Statistics Assignment

BFA301 Advanced Financial Accounting

BFA504 Accounting Systems Assessment 3

BSB61015 Advanced Diploma of Leadership and Management

BSBADV602 Develop an Advertising Campaign

BSBCOM603 Plan and establish compliance management systems case study

BSBCOM603 Plan and establish compliance management systems Assessment Task 1

BSBCOM603 Plan and establish compliance management systems Assessment Task 2

BSBCOM603 Plan and establish compliance management systems Assessment Task 3

BSBFIM501 Manage Budgets And Financial Plans Assessment Task 1

BSBHRM602 Manage Human Resources Strategic Planning

BSBINM601 Manage Knowledge and Information

BSBWOR501 Assessment Task 3 Plan Personal Development Plan Project

BSBMGT517 Manage Operational Plan

BSBWHS521 Ensure a Safe Workplace For a Work Area

BSBWRK510 Manage employee relations

BUSS1030 Accounting, Business and Society

CAB202 Microprocessors and Digital Systems Assignment Help

CHC40213 Certificate IV in Education Support

CHCAGE001 Facilitate the empowerment of older people

CHCAGE005 Provide support to people living with dementia

CHCCCS023 Support independence and wellbeing

CHCCCS025 Support relationships with carers and families

CHCCOM005 Communicate and CHCLEG001 Work Legally Ethically

CHCDIS002 Follow established person-centred behaviour supports

CHCECE019 Early Childhood Education and Care

CHCHCS001 Provide home and community support services

COMP10002 Foundations of Algorithms

COMP90038 Algorithms and Complexity

COSC2633/2637 Big Data Processing

COSC473 Introduction to Computer Systems

CPCCBC5011A Manage Environmental Management Practices And Processes In Building And Construction

CPCCBC5018A Apply structural Principles Medium rise Construction

CSE3OSA Assignment 2019

ELEC242 2019 Session 2

ENN543 Data Analytics and Optimisation

ENN543 Data Analytics and Optimisation Semester 2, 2019

FINM202 Financial Management Assessment 3 Group Report

Forensic Investigation Case Assignment ECU University

HA2042 Accounting Information Systems T2 2019

HC1010 Holmes Institute Accounting For Business

HC2112 Service Marketing and Relationship Marketing Individual Assignment T2 2019

HC2121 Comparative Business Ethics & Social Responsibility T2 2019

HI5002 Holmes Institute Finance for Business

HI5003 Economics for Business Trimester 2 2019

HI5004 Marketing Management T1 2020 Individual Report

HI5004 Marketing Management T1 2020 Group Report

HI5004 Holmes Institute Marketing Management

HI5014 International Business across Borders Assignment 1

HI5014 International Business across Borders

HI5017 Managerial Accounting T2 2019

HI5017 Managerial Accounting T1 2019

HI5019 Tutorial Questions 1

HI5019 Strategic Information Systems for Business and Enterprise T1 2020

HI5019 Holmes Institute Strategic Information Systems T2

HI5019 T2 2019

HI5019 T1 2019

HI5020 Corporate Accounting T3 2019

HI5020 Corporate Accounting T2 2019

HI6005: Management and Organisations in a Global Environment

HI6006 Tutorial questions

HI6006 Competitive Strategy Individual T1 2020

HI6006 Holmes Institute Competitive Strategy

HI6006 Competitive Strategy T3 2019

HI6007 Statistics for business decisions

HI6007 Assessment 2 T1 2020

HI6007 T1 2019

HI6008 T2 2019

HI6008 Holmes Institute Research Project

HI6025 Accounting Theory and Current Issues

HI6026 Audit, Assurance and Compliance Assignment Help

HI6026 Audit, Assurance and Compliance

HI6027 business and corporate law tutorial Assignment T1 2021

HI6027 Business and Corporate Law T3 2019

HI6027 Business and Corporate Law T2 2019

HI6028 Taxation Theory, Practice and Law T2 2021

Hi6028 taxation theory, practice and law Final Assessment t1 2021

HI6028 Taxation Theory, Practice and Law T2 2019

HI6028 Taxation Theory T1 2019

HI6028 Taxation Law Holmes

HLTAAP001 Recognise healthy body systems

HLTWHS002 Follow safe practices for direct client care

HOTL5003 Hotel Property and Operations

HPS771 - Research Methods in Psychology A

HS2021 Database Design

ICTICT307 Customise packaged software applications for clients

IFN619 Data Analytics for Strategic Decision Makers

INF80028 Business Process Management Swinburne University

ISY2005 Case Assignment Assessment 2

ISYS326: Information Systems Security Assignment 2, Semester 2, 2019

ITAP3010 Developing Data Access Solutions Project

ITECH1103- Big Data and Analytics – Lab 3 – Working with Data Items

ITECH1103- Big Data and Analytics Assignment Semester 1, 2020

ITECH 5500 Professional Research and Communication

Kent Institute Australia Assignment

MA5830 Data Visualisation Assignment 2

MGMT7020 Project Management Plan

Mgt 301 Assessment 3

MGT215 Project Management Individual Assignment

MIS102 Data and Networking Assignment Help

MITS4002 Object Oriented Software Development

MITS5002 Software Engineering Methodology

MKT01760 Tourism Planning Environments Assessment 4

MKT01760 Tourism Planning Environments

MKT01906 International Tourism Systems

MKT5000 Marketing Management S2 2019

MNG03236 Report Writing SCU

MRE5003 Industrial Techniques In Maintenance Management Assignment 4

MRE5003 Industrial Techniques In Maintenance Management Assignment 3

MRE5003 Industrial Techniques In Maintenance Management

Network Security and Mitigation Strategies Answers

NIT2213 Software Engineering Assignment

NSB231 Integrated Nursing Practice Assessment Task 1

Science Literacy Assessment 4

SIT323 Practical Software Development T 2, 2019

SIT718 Using aggregation functions for data analysis

SITXCOM002 Show Social and Cultural Sensitivity

TLIL5055 Manage a supply chain

TLIR5014 Manage Suppliers

USQ ACC5502 Accounting and Financial Management

UTS: 48370 Road and Transport Engineering Assessment 2

CHCAGE001 Facilitate the empowerment of older people

CHCAGE005 Provide support to people living with dementia

CHCCCS011 Meet personal support needs

CHCCCS015 Provide Individualised Support

CHCCCS023 Support independence and wellbeing

CHCCCS025 Support relationships with carers and families

CHCCOM005 Communicate and work in health or community services

CHCDIS001 Contribute to ongoing skills development

CHCDIS002 Follow established person-centred behaviour supports

CHCDIS003 Support community participation and social inclusion

CHCDIS005 Develop and provide person-centred service responses

CHCDIS007 Facilitate the empowerment of people with disability

CHCDIS008 Facilitate community participation and social inclusion

CHCDIS009 Facilitate ongoing skills development

CHCDIS010 Provide person-centred services

CHCDIV001 Work with diverse people

CHCHCS001 Provide home and community support services

CHCLEG001 Work legally and ethically

CHCLEG003 Manage legal and ethical compliance

HLTAAP001 Recognise healthy body systems

HLTAID003 Provide First Aid

HLTHPS007 Administer and monitor medications

HLTWHS002 Follow safe work practices for direct client care

Assignment 2 Introduction to Digital Forensics

MGT603 Systems Thinking Assessment 1

MGT603 Systems Thinking Assessment 2

Hi5017 Managerial Accounting T1 2021

HI6028 Taxation Theory, Practice and Law T1 2021

OODP101 Assessment Task 3 T1 2021

ITNE2003R Network Configuration and Management Project

Australia Universities

ACT

Australian Catholic University

Australian National University

Bond University

Central Queensland University

Charles Darwin University

Charles Sturt University

Curtin University of Technology

Deakin University

Edith Cowan University

Flinders University

Griffith University

Holmes Institute

James Cook University

La Trobe University

Macquarie University

Monash University

Murdoch University

Queensland University of Technology

RMIT University

Southern Cross University

Swinburne University of Technology

University of Adelaide

University of Ballarat

University of Canberra

University of Melbourne

University of Newcastle

University of New England

University of New South Wales

University of Notre Dame Australia

University of Queensland

University of South Australia

University of Southern Queensland

University of Sydney

University of Tasmania

University of Technology Sydney

University of the Sunshine Coast

University of Western Australia

University of Wollongong

Victoria University

Western Sydney University

Year 11 - 12 Certification Assignment

Australian Capital Territory Year 12 Certificate

HSC - Higher School Certificate

NTCE - Northern Territory Certificate of Education

QCE - Queensland Certificate of Education

SACE - South Australian Certificate of Education

TCE - Tasmanian Certificate of Education

VCE - Victorian Certificate of Education

WACE - Western Australia Certificate of Education