A simple database with a single table contains data

Assignment Help Database Management System
Reference no: EM13380381

A simple database with a single table contains data concerning rental properties in Australia. The table contains five fields that store data relating to street address, city, postcode, number of bedrooms and weekly rent e.g. 4/331 Albert Street, Ballarat, 3350, 3, 230.00. There are constraints placed on the data that are described below.

The assignment tasks are closely associated with the lab work of topics 8 to 10. Code which is provided in the topic 10 lab work should be a useful guide throughout this assignment.

The assignment requires a number of files and a report to be produced. The report should respond to written tasks that are included below.

Initial task

In a word document, create a table of about 6 records with no NULLs. The street address may contain a unit number as in the example given above. Add the table to your report, showing clearly the names of the table and the fields.

Tasks supported by Topics 7 and 8

Mark up the table of data using XML tags and save it as an .xml file. Check that the file is well-formed and report the method used. Make a deliberate error and report the error message.

Create a corresponding XMLSchema file (.xsd) that contains the following constraints:

• the street address and city are strings each with a maximum of 30 characters;
• the postcode is a string of exactly 4 digits, the first digit being non-zero;
• the number of bedrooms is an integer between 1 and 5 (inclusive);
• the weekly rent is a positive (non-zero) number less than 1000 expressed with two decimal places.

Use the .xsd file to validate your .xml file. Test the validation of the .xml file by breaking each constraint in turn and report the results. Also deliberately invalidate the .xml file (but keeping it well-formed) and report the response.

Task supported by Topic 9

Create an XSLT stylesheet file (.xsl) that supports the display of the data in a table. The data is to be displayed either in ascending postcode order or in ascending weekly rent order as requested by the user.

Task supported by Topic 10

Create new DOM documents for each of your .xml and .xsl files. Use these to generate output to the browser. Comment on the result.

Research

Access the XML DOM Tutorial at https://www.w3schools.com/dom/dom_nodes_set.asp. Under the ‘Manipulate Nodes' heading study the ‘Get Values' and ‘Change Nodes' sections. It will be important to have an understanding of the Dom Node Tree from Topic 10 prior to this study. Write your own code to show that you can both retrieve the value of the weekly rent of the first record in your XML file and change its value.

Report contents

1. Diagram of the table containing the initial data.

2. State how you checked that the XML file is well-formed.

3. What messages are sent if it is not well-formed?

4. State how you checked that the XML file is valid.

5. What messages are sent if the XML file is well-formed but not valid?

6. What messages are sent if constraints are not met by the data?

7. How is the .xsd file validated?

8. Comment on the output provided by your two DOM documents.

9. Draw a diagram showing the structure of the DOM tree associated with the .xml file, using data from any ONE record.

10. Give details of any assistance received (apart from teaching staff).

Reference no: EM13380381

Questions Cloud

The order in which the tables in your queries are joined : the order in which the tables in your queries are joined can have an effect on the query performs. if your query is
1 a table scan is reading every record from the table in a : 1. a table scan is reading every record from the table in a sequential order to find the data that a query is looking
Within this project create a package called : within this project create a package called mycompletesystem1. author a new class within your newly created package
Learning outcomes assesseda describe and discuss the : learning outcomes assesseda describe and discuss the issues involved in managing software selection. b compare
A simple database with a single table contains data : a simple database with a single table contains data concerning rental properties in australia. the table contains five
The development of complex algorithms that can mine mounds : the development of complex algorithms that can mine mounds of data that have been collected from people and digital
Select one of the social media tools noted above and : select one of the social media tools noted above and explain how this application can be used to collect data from
Implement class bankacct for bank of usq using bankacctcpp : implement class bankacct for bank of usq using bankacct.cpp and bankacct.h- the bsb for bank of usq at towoomba is
Taskimplement class serial using serialcpp and serialh- the : taskimplement class serial using serial.cpp and serial.h- the function call operator is overloaded and will generate a

Reviews

Write a Review

Database Management System Questions & Answers

  Build the physical model

She's come to you for questions regarding connectivity to the Oracle database, which method would you advise her to use to connect to the Oracle database?

  Imagine that you have been hired as a consultant to assist

imagine that you have been hired as a consultant to assist in streamlining the data processing of an international

  Develop an entity-relationship diagram as a conceptual mode

For the following requirements analysis description, develop an Entity-Relationship Diagram as a conceptual model that captures all of the requirements to the fullest extent possible.

  Draw a use case diagram for the carpark system

Draw the class diagram which covers all the situations described in the carpark system, showing inheritance, association (aggregation and composition as necessary) and multiplicity. Include all attributes and operations/methods.

  Calculate confidence and support of rule

Assume that 30% of science students are majoring in biology. Would you consider to be novel with respect to rule? Describe. Calculate confidence and support of rule.

  Create the primary and foreign key using a uml class diagram

Create the primary key and foreign keys using a UML Class diagram for each table and compare and contrast the key aspects that each system offers

  Design a flowchart for a program

Design a flowchart for a program that declares an array of 10 characters. Program should count and print number of times a special character, (your choice, let say ‘a') has been found in the array.

  Draw the er diagram for the database described above

Consider a video game store. For each game, the database contains information about title, producing company name, designer(s) name(s), version of the game, type of the game and characters in the game

  When does oracle stop processing the query

How does Oracle process this query? That is, what does Explain Plan tell you about how the query is processed - how would you recognize that the results were not correct?

  Create script file to list file in directory in sorted order

Create a script file to list the files in a directory in sorted order, showingonlythe file name, file size, and modification date.Each file's attributes must be on one line per file, in any order.

  Design database design for boingx aircraft company

You have been asked to design database design for BoingX Aircraft Company (BAC), that has two products: TRX-5A and TRX-5B HUD (heads-up display) units.

  Use case diagram for the functional requirements

Analyse the Case Study documents and produce an initial high level functional requirements specification. Document these requirements with.

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