Let's start a new assignment project together, Get Exclusive Free Assistance Now!

Need Help? Call Us :

Place Order

ERD andSQL ITECH 7401 LEADERSHIP IN

Mar 13,23

Question:

Background:

Assignment1: ERD andSQL

ITECH 7401 LEADERSHIP IN IT PROJECT MANAGEMENT

Overview

The purpose of this task is todevelop student’s skills in designingan ERdiagram (ERD)and implementingthisin a relational database for a given casestudy.

Timelines and Expectations

Percentage Value of Task:25%

Due:Week7

Minimumtimeexpectation:Preparation for this task will take approximately20 hours

Learning Outcomes Assessed

The following course learning outcomes are assessed by completing this assessment:

K4.?Design a relational database for a provided scenario utilising tools and techniques including ER diagrams, relation models and normalisation.

K5.?Describe relational algebra and its relationship to Structured Query Language (SQL).

S1.?Interpret entity-relationship diagrams to implement a relational database.

S2. Demonstrate skills in designing and building a database application using a commercially available database management system development tool.

S3. Use a query language for data manipulation.

A1.?Design and implement a relational database using a database management system.

A2.?Utilise a query language tools and techniques to obtain data and information from a database.

Assessment Details

Background

Toys 4 Uis acompanythat specialises intoy hirefor parties, kindergartens andplay groups. Theyalso offer equipment for infants and babies forhire.Toys 4 Ucan own several copies (TOYCOPY) of eachtoy(TOY). For example, astore may have 10 copies of thetoyRocking Horse. In the database,Rocking Horse would be oneTOY, and each copy would be aTOYCOPY. Ahire transaction (HIRE) involves one or morecopiesbeinghired to a member (MEMBERSHIP). Acopycan behiredmany times over its lifetime; therefore, there is an M:N relationship betweenHIRE andTOYCOPY. DETAILHIRE is the bridge table to resolve this relationship.

Requirements

1.Design your ER Diagram with all entity names, attribute names, primary and foreign keys, relationships, cardinality and participation indicated. You may add entities or attributes as you see fit. You will need to normalise all of yourentities,to resolve anymany to many relationships.•Your attributenames, primary and foreign keysshould be indicated as per the conventions given in the lecture slides (i.e. entity/table names in capitals, attributes as proper nouns, primary key underlined and foreign keys in italics).•All many to many relationships should be resolved, and you should include a discussion of normalisation including the normal form that each entity is in and why that is optimal. Also, a discussion of how normalisation was achieved for that entity.2.For each entity, create some example data for that entity. Include 5 rows of data for each entity.3.Write the SQL code to create the table structuresfrom your developed ERD. The structures should contain the attributes specified inyourERD. Use data types that are appropriate for the data that will need to be stored in each attribute. Enforce primary key and foreign key constraints as indicated byyour ERD.4.Write the SQL code toinsert your data from (2) into theSQLtable structures.

Documentation requirements

1.Prepare a business style report whichcontains the following:a).ER diagrambased on defined scenariob).Example datac).A copy ofyour SQL coded).Statement of any resources used. These includes full disclosure of assistance from all sources including tutors and other students.Full APA referencing of any resources used.

A suggestedstructure for the above report is provided.You can useit as a guideline forpresenting your businessreport.For assistance in report writing techniques, see:https://federation.edu.au/__data/assets/pdf_file/0018/190044/General-Guide-to-Writing-and-Study-Skills.pdf , page 36.

Report file name:ITECH2004_Assignment1_Report_yourname_studentID

Title page

Executive summary

Table of contents

1.0Introduction2.0ERD for: [insert company name]3.0Example data

3.0?SQL Statements

3.1?Create tables

3.2?Insert data

4.0?Conclusion

5.0?Bibliography

2.A copy of theSQLstatements, file name:ITECH2004_Assignment1_SQL_yourname_studentID.txt

Academic Presentation

Assignment should be presentedin accordance with:

  • General Guide to Referencing:https://federation.edu.au/__data/assets/pdf_file/0020/313328/FedUni-General-Guide-to-Referencing-2016ed.pdf•General Guide to Writing and Study Skills:http://federation.edu.au/__data/assets/pdf_file/0018/190044/General-Guide-to-Writing-and-Study-Skills.pdf•Guide to Layout and Appearance:https://federation.edu.au/__data/assets/pdf_file/0017/190043/General-Guide-to-Layout-and-Appearance.pdf

Submission

The assignment is to be submitted via the Assignment1 submission box in Moodle. This can be found in the Assessments section of the course Moodle shell.

1.Thereport file described above EITHER as a MS word file or a PDF. If you are usingMacOS, please submitas a PDF.2.Thedatabase file, as described above.

Please note that the SQL files must be either .txt or .sqlso they can be run If they are in a word or pdf file there will be extra characters that will prevent the files from running without errors andwill cost marks.

Marking Criteria/Rubric

Assessment Criteria Marking Scale
Poor?Excellent
1 ? 5
Presentation and Referencing

•Overall presentation of the report.

0
ER Diagram

•Completeness of diagram

0
•Correct notation and convention used 0
•All assumptions clearly noted 0
•Primary and foreign keys 0
•Resolution of many to many relationships 0
Normalisation 0
•Discussion of normalisation for all entities and relationships
•Appropriate interpretation of each normal form, arguments for leaving the schema in the normal form you consider optimal. 0
Example data

•Example data provided for each entity/table

0
SQL Statements 0
•Correct translation of the ER diagram submitted with appropriate tables
•Types and restrictions on attributes given 0
•Primary keyscorrectly implemented 0
•Foreignkeyscorrectly implemented 0
•Insert statements correctly implemented 0
Total Mark?[70 marks] 0.0
Total Worth?[25%] 0.0

Feedback

Feedback and marks will be provided in Moodle. Marks will also be available in FDL Marks.

Plagiarism

Plagiarism is the presentation of the expressed thought or work of another person as though it is one’s own without properly acknowledging that person. You must not allow other students to copy your work and must take care to safeguard against this happening. More information about the plagiarism policy and procedure for the university can be found athttp://federation.edu.au/students/learning-and-study/online-help-with/plagiarism

Please refer to theCourse Description for information regarding late assignments, extensions, and special consideration. A reminder all academic regulations can be accessed via the university’s website, see:http://federation.edu.au/staff/governance/legal

Answer:

Introduction

Contents

  1. Introduction. 3
  2. ER Diagram.. 4
  3. SQL statements. 4

3.1 Create Table queries. 5

3.2 Insert data queries. 6

  1. Result and Conclusion. 9

References. 11

1. Introduction

Toys 4 U is mainly an organisation specialised in toys that essentially employ families, kindergarten and play groups which are actually very large, or as they think commonly. They also sell kindergarten furniture, particularly for infants, which they usually felt would really be of great significance. Toys 4 U will probably own a number of copies (TOYCOPY) of each toy (TOY) or, for all purposes, conceive about them, which is very important practically. For example, for the most part, a shop will be a 10-copy of Rocking Horse ‘s product, which reveals how it still sells child and baby equipment for really hiring in a subtle way. For the most part, Rocking Horse was one TOY in the archive, and each copy was basically a TOYCOPY in general, since they were thinking especially well. A hire transaction (HIRE) includes one or two copies (MEMBERSHIP) that demonstrate how a hire transaction (HIRE) includes a lot two copies (MEMBERSHIP), which is certainly important, or for all purposes, being kept in an entity (MEMBERSHIP), showing that toy 4 U may have very many copies in particular. A copy can be certainly leased many times over its lifespan for every reason; thus, most of the time there is a M: N partnership between HIRE and TOYCOPY, a kind of additional showing how toies 4 U undoubtedly have very many copies (TOYCOPY) of each toy (TOY), in every manner contrary to popula for any reason. DETAILHIRE is certainly the bridge table for this partnership to be solved, specifically to show how Toys 4 U generally is a business that specialises in toying, mostly for party playgrounds, kindergartens and groups in particular, and that shows how DETAILHIRE is highly unique

2. ER Diagram

Figure 1 ER diagram

3. SQL statements

SQL is the structured query language, since it is the domain-specific language of the Relational Database Management System (RDBMS) querying results.

Using SQL for questing with a few syntax variations in Microsoft SQL Server, MySQL, Oracle, etc.

  • SELECT

The SELECT statement is being used to records with or without a condition from the table.

· CREATE

To build a new table in an existing database, the CREATE statement is used. The creation of other database objects, including a stored procedure, function etc., is also using a CREATE statement

  • INSERT

In the INSERT statement, a set of values is entered into a table in the database.

· UPDATE

The UPDATE statement is used for a table and is based on a requirement to change current values.

· DROP

For removing a table definition and all data, indexes, triggers, restrictions and specifications for permission for the table, SQL DROP TABLE is used.

· DELETE

Delete statement is used to erase the current table record depending on those criteria.

3.1 Create Table queries

create table Membership(

MEM_NUM int ,

MEM_FNAME varchar(80),

MEM_LNAME varchar(80),

MEM_STREET varchar(80),

MEM_TOWN varchar(80),

MEM_STATE varchar(80),

MEM_POSTALCODE int,

MEM_BALANCE int,

primary key (MEM_NUM)

);

create table HIRE(

HIRE_NUM int ,

HIRE_DATE date,

MEM_NUM int,

primary key(HIRE_NUM),

foreign key (MEM_NUM) references Membership(MEM_NUM)

);

create table CHARGE(

CHARGE_Code int ,

CHARGE_DESCRIPTION varchar(400),

CHARGE_RENTFEE int,

CHARGE_DAILYLATEFEE int,

primary key (CHARGE_Code)

);

create table TOY(

TOY_NUM int ,

TOY_Title varchar(15),

TOY_YEAR int,

TOY_COST int,

TOY_TYPE varchar(20),

CHARGE_CODE int,

primary key (TOY_NUM),

foreign key (CHARGE_CODE) references CHARGE(CHARGE_CODE)

);

create table TOYCOPY(

TOYCOPY_NUM int ,

TOYCOPY_INDATE date,

TOY_NUM int,

primary key (TOYCOPY_NUM),

foreign key (TOY_NUM) references TOY(TOY_NUM)

);

create table DETAILHIRE(

HIRE_NUM int ,

TOYCOPY_NUM int,

DETAIL_FEE int ,

DETAIL_DUEDATE date,

DETAIL_RETURNDATE date,

DETAIL_DAILYLATEFEE int,

primary key(HIRE_NUM,TOYCOPY_NUM),

foreign key (TOYCOPY_NUM) references TOYCOPY(TOYCOPY_NUM)

);

3.2 Insert data queries

INSERT INTO MEMBERSHIP VALUES (’11’,’john’,’B’,’calicut’,’Kolavaenna’,’krala’,’6703018′,’50200′);

INSERT INTO MEMBERSHIP VALUES (’12’,’Raju’,’PY’,’calicut’,’Bareekad’,’krala’,’6073010′,’90200′);

INSERT INTO MEMBERSHIP VALUES (’13’,’Mohan’,’B’,’peru’,’cheru’,’Dli’,’6073015′,’150200′);

INSERT INTO MEMBERSHIP VALUES (’14’,’Cajan’,’Balu’,’calicut’,’olavanna’,’krala’,’6073018′,’50200′);

INSERT INTO MEMBERSHIP VALUES (’15’,’jici’,’boby’,’calicut’,’Ueroke’,’krala’,’6073032′,’60200′);

INSERT INTO MEMBERSHIP VALUES (’16’,’shji’,’ST’,’calicut’,’Klperumrannna’,’krala’,’6073012′,’80200′);

INSERT INTO MEMBERSHIP VALUES (’17’,’Wachu’,’B’,’calicut’,’Molavanna’,’krala’,’6073018′,’50200′);

INSERT INTO HIRE VALUES (‘100′,’1999-09-21′,’11’);

INSERT INTO HIRE VALUES (‘101′,’2007-09-02′,’12’);

INSERT INTO HIRE VALUES (‘102′,’2002-09-01′,’13’);

INSERT INTO HIRE VALUES (‘103′,’1998-09-02′,’14’);

INSERT INTO HIRE VALUES (‘104′,’2003-02-01′,’15’);

INSERT INTO HIRE VALUES (‘105′,’2000-09-21′,’16’);

INSERT INTO HIRE VALUES (‘106′,’2005-09-21′,’17’);

INSERT INTO CHARGE VALUES (‘202′,’late’,’100′,’240′);

INSERT INTO CHARGE VALUES (‘201′,’late’,’500′,’540′);

INSERT INTO CHARGE VALUES (‘200′,’late’,’800′,’440′);

INSERT INTO CHARGE VALUES (‘203′,’late’,’700′,’560′);

INSERT INTO CHARGE VALUES (‘204′,’late’,’800′,’570′);

INSERT INTO CHARGE VALUES (‘205′,’late’,’890′,’26’);

INSERT INTO CHARGE VALUES (‘206′,’late’,’500′,’540′);

INSERT INTO TOY VALUES (‘100′,’kids’,’2000′,’100′,’silicon’, ‘201’);

INSERT INTO TOY VALUES (‘101′,’kids’,’2008′,’150′,’silicon’, ‘202’);

INSERT INTO TOY VALUES (‘102′,’infants’,’2004′,’130′,’plastic’,’203′);

INSERT INTO TOY VALUES (‘103′,’infants’,’2002′,’80’,’silicon’,’204′);

INSERT INTO TOY VALUES (‘104′,’infants’,’2000′,’90’,’silicon’,’205′);

INSERT INTO TOY VALUES (‘105′,’infants’,’2009′,’110′,’silicon’,’206′);

INSERT INTO TOY VALUES (‘106′,’infants’,’2007′,’108′,’silicon’,’200′);

INSERT INTO TOYCOPY VALUES (‘520′,’2003-09-23′,’100’);

INSERT INTO TOYCOPY VALUES (‘521′,’2000-08-12′,’101’);

INSERT INTO TOYCOPY VALUES (‘522′,’2002-11-23′,’102’);

INSERT INTO TOYCOPY VALUES (‘523′,’2003-10-19′,’103’);

INSERT INTO TOYCOPY VALUES (‘524′,’2000-05-03′,’104’);

INSERT INTO TOYCOPY VALUES (‘525′,’2002-01-11′,’105’);

INSERT INTO TOYCOPY VALUES (‘526′,’2003-01-16′,’106’);

INSERT INTO DETAILHIRE VALUES (‘333′,’520′,’2999′,’2000-12-08′,’2003-12-08′,’999’);

INSERT INTO DETAILHIRE VALUES (‘334′,’521′,’1999′,’2000-10-09′,’2003-10-09′,’959’);

INSERT INTO DETAILHIRE VALUES (‘335′,’522′,’2999′,’2000-08-10′,’2002-08-10′,’799’);

INSERT INTO DETAILHIRE VALUES (‘336′,’526′,’2999′,’2000-06-11′,’2001-06-11′,’969’);

INSERT INTO DETAILHIRE VALUES (‘337′,’525′,’2999′,’2000-04-12′,’2003-04-12′,’199’);

INSERT INTO DETAILHIRE VALUES (‘338′,’524′,’2999′,’2000-02-13′,’2002-02-13′,’399’);

INSERT INTO DETAILHIRE VALUES (‘339′,’523′,’2999′,’2000-01-14′,’2001-01-14′,’989’);

4. Result and Conclusion

select * from membership;

select * from hire;

select * from charge;

select * from toy;

select * from toycopy;

select * from detailhire;

References

  • Barker, (2000). CASE*METHOD TM : Entity Relationship Modeling. Addison-Wesley Publishing Company, New York, New York,
  • Ramez Elmasri and Shamkant B. Navathe. (2006), Fundamentals of DatabaseSystems (5th Edition). Addison Wesley,.
  • J. Teorey and J. Fry & Yang, (2014), “A logical design methodology for relational databases using the extended entity-relationship model,” ACM Computing Survey, 18,2,

pp197-222.

create table Membership(
MEM_NUM int ,
MEM_FNAME varchar(80),
MEM_LNAME varchar(80),
MEM_STREET varchar(80),
MEM_TOWN varchar(80),
MEM_STATE varchar(80),
MEM_POSTALCODE int,
MEM_BALANCE int,
primary key (MEM_NUM)
);

INSERT INTO MEMBERSHIP VALUES (’11’,’john’,’B’,’calicut’,’Kolavaenna’,’krala’,’6703018′,’50200′);
INSERT INTO MEMBERSHIP VALUES (’12’,’Raju’,’PY’,’calicut’,’Bareekad’,’krala’,’6073010′,’90200′);
INSERT INTO MEMBERSHIP VALUES (’13’,’Mohan’,’B’,’peru’,’cheru’,’Dli’,’6073015′,’150200′);
INSERT INTO MEMBERSHIP VALUES (’14’,’Cajan’,’Balu’,’calicut’,’olavanna’,’krala’,’6073018′,’50200′);
INSERT INTO MEMBERSHIP VALUES (’15’,’jici’,’boby’,’calicut’,’Ueroke’,’krala’,’6073032′,’60200′);
INSERT INTO MEMBERSHIP VALUES (’16’,’shji’,’ST’,’calicut’,’Klperumrannna’,’krala’,’6073012′,’80200′);
INSERT INTO MEMBERSHIP VALUES (’17’,’Wachu’,’B’,’calicut’,’Molavanna’,’krala’,’6073018′,’50200′);

create table HIRE(
HIRE_NUM int ,
HIRE_DATE date,
MEM_NUM int,
primary key(HIRE_NUM),
foreign key (MEM_NUM) references Membership(MEM_NUM)
);

INSERT INTO HIRE VALUES (‘100′,’1999-09-21′,’11’);
INSERT INTO HIRE VALUES (‘101′,’2007-09-02′,’12’);
INSERT INTO HIRE VALUES (‘102′,’2002-09-01′,’13’);
INSERT INTO HIRE VALUES (‘103′,’1998-09-02′,’14’);
INSERT INTO HIRE VALUES (‘104′,’2003-02-01′,’15’);
INSERT INTO HIRE VALUES (‘105′,’2000-09-21′,’16’);
INSERT INTO HIRE VALUES (‘106′,’2005-09-21′,’17’);

create table CHARGE(
CHARGE_Code int ,
CHARGE_DESCRIPTION varchar(400),
CHARGE_RENTFEE int,
CHARGE_DAILYLATEFEE int,
primary key (CHARGE_Code)
);

INSERT INTO CHARGE VALUES (‘202′,’late’,’100′,’240′);
INSERT INTO CHARGE VALUES (‘201′,’late’,’500′,’540′);
INSERT INTO CHARGE VALUES (‘200′,’late’,’800′,’440′);
INSERT INTO CHARGE VALUES (‘203′,’late’,’700′,’560′);
INSERT INTO CHARGE VALUES (‘204′,’late’,’800′,’570′);
INSERT INTO CHARGE VALUES (‘205′,’late’,’890′,’26’);
INSERT INTO CHARGE VALUES (‘206′,’late’,’500′,’540′);

create table TOY(
TOY_NUM int ,
TOY_Title varchar(15),
TOY_YEAR int,
TOY_COST int,
TOY_TYPE varchar(20),
CHARGE_CODE int,
primary key (TOY_NUM),
foreign key (CHARGE_CODE) references CHARGE(CHARGE_CODE)
);

INSERT INTO TOY VALUES (‘100′,’kids’,’2000′,’100′,’silicon’, ‘201’);
INSERT INTO TOY VALUES (‘101′,’kids’,’2008′,’150′,’silicon’, ‘202’);
INSERT INTO TOY VALUES (‘102′,’infants’,’2004′,’130′,’plastic’,’203′);
INSERT INTO TOY VALUES (‘103′,’infants’,’2002′,’80’,’silicon’,’204′);
INSERT INTO TOY VALUES (‘104′,’infants’,’2000′,’90’,’silicon’,’205′);
INSERT INTO TOY VALUES (‘105′,’infants’,’2009′,’110′,’silicon’,’206′);
INSERT INTO TOY VALUES (‘106′,’infants’,’2007′,’108′,’silicon’,’200′);

create table TOYCOPY(
TOYCOPY_NUM int ,
TOYCOPY_INDATE date,
TOY_NUM int,
primary key (TOYCOPY_NUM),
foreign key (TOY_NUM) references TOY(TOY_NUM)
);

INSERT INTO TOYCOPY VALUES (‘520′,’2003-09-23′,’100’);
INSERT INTO TOYCOPY VALUES (‘521′,’2000-08-12′,’101’);
INSERT INTO TOYCOPY VALUES (‘522′,’2002-11-23′,’102’);
INSERT INTO TOYCOPY VALUES (‘523′,’2003-10-19′,’103’);
INSERT INTO TOYCOPY VALUES (‘524′,’2000-05-03′,’104’);
INSERT INTO TOYCOPY VALUES (‘525′,’2002-01-11′,’105’);
INSERT INTO TOYCOPY VALUES (‘526′,’2003-01-16′,’106’);

create table DETAILHIRE(
HIRE_NUM int ,
TOYCOPY_NUM int,
DETAIL_FEE int ,
DETAIL_DUEDATE date,
DETAIL_RETURNDATE date,
DETAIL_DAILYLATEFEE int,
primary key(HIRE_NUM,TOYCOPY_NUM),
foreign key (TOYCOPY_NUM) references TOYCOPY(TOYCOPY_NUM));

INSERT INTO DETAILHIRE VALUES (‘333′,’520′,’2999′,’2000-12-08′,’2003-12-08′,’999’);
INSERT INTO DETAILHIRE VALUES (‘334′,’521′,’1999′,’2000-10-09′,’2003-10-09′,’959’);
INSERT INTO DETAILHIRE VALUES (‘335′,’522′,’2999′,’2000-08-10′,’2002-08-10′,’799’);
INSERT INTO DETAILHIRE VALUES (‘336′,’526′,’2999′,’2000-06-11′,’2001-06-11′,’969’);
INSERT INTO DETAILHIRE VALUES (‘337′,’525′,’2999′,’2000-04-12′,’2003-04-12′,’199’);
INSERT INTO DETAILHIRE VALUES (‘338′,’524′,’2999′,’2000-02-13′,’2002-02-13′,’399’);
INSERT INTO DETAILHIRE VALUES (‘339′,’523′,’2999′,’2000-01-14′,’2001-01-14′,’989’);

0 responses on "ERD andSQL ITECH 7401 LEADERSHIP IN"

Leave a Message

Your email address will not be published. Required fields are marked *