Question

In: Computer Science

1. Create one XML data file and one DTD file for the entire data set (using...

1. Create one XML data file and one DTD file for the entire data set (using a subset of SQL assignment – see below). [Use of ID and IDREF are not required.]

2. Write and execute XML statements for the following two queries:

Q1. Find the name of an employee who lives in Lincoln and works in Omaha.

Q2. Find salaries of employees who live in the same cities as the companies for which they work.

[You can replace one of the above with a query of your own choice – but it must not be too simple. If this is the case, state the English statement before present the XML query and the result.]

Data to be used for this assignment

Employee

Name                            street          city               gender

--------------------------------------------------------

Anderson, Susan L          108th        Omaha           F

Brady, Dan L                  P street     Lincoln         M

Chen, Peter K                124th           Omaha       M

Clemson, Ann M             O              Lincoln          F

Dale, Mary K                  132th        Omaha           F

Gill, Mary L                   P street      Lincoln       F

Harrison, Susan M          Old Mill           Omaha F

Jackson, Kim A               178th         Omaha          F

Jason, Pat M                   8th             C.Bluffs        M

Kumar, Paul T           Dodge           Omaha     M

Works: employee_name         company_name      salary

------------------------------------------------

Anderson, Susan L     Mutual of Omaha   48000

Brady, Dan L          FDR               42000

Chen, Peter K                FDR                 53000

Clemson, Ann M        First Bank        39000

Dale, Mary K          Mutual of Omaha   58000

Gill, Mary L                  Union Pacific     48700

Harrison, Susan M          Union Pacific 54320     

Jackson, Kim A        FDR               68000

Jason, Pat M          FDR               83000

Kumar, Paul T          FDR               44000

Company:

company_name          city

-----------------------------

First Bank                       Omaha

FDR                   Omaha

Lincoln Star                    Lincoln

Mutual of Omaha       Omaha

Union Pacific     (UP)                 Omaha

Solutions

Expert Solution


Related Solutions

3.1. Create an XML schema to validate the following XML file. <?xml version="1.0" encoding="utf-8"?> <root> <whats>Everything</whats>...
3.1. Create an XML schema to validate the following XML file. <?xml version="1.0" encoding="utf-8"?> <root> <whats>Everything</whats> <up>Is</up> <doc>Fine</doc> </root> Schema starter: <xsd:schema xmlns:xsd=""> <xsd:element name="root" type="rootType" /> <xsd:complexType name="rootType">     <xsd:sequence>       <xsd:element name="" type="" minOccurs="1" />       <xsd:element name="” type="" minOccurs="1" />       <xsd:element name="" type="" minOccurs="1" />     </xsd:sequence> </xsd:complexType> </xsd:schema> 3.2. Use your schema to validate the XML file.                     3.2.1. You can use Visual Studio or online utilities to apply the schema to the XML file....
Using node.js, create the following tasks. 1. Set up a server and HTML file server as...
Using node.js, create the following tasks. 1. Set up a server and HTML file server as shown in the videos. Once you have it successfully running, make the following adjustments A. When a 404 error (file not found) occurs, display a funny message about the file missing and/or did you forget how to type? B. If the user enters a request for the home page (index.html) then: Display an index.html page you have created which includes your name, course number,...
Exercise 1 Create a data file in SPSS using the following memory scores for this sample...
Exercise 1 Create a data file in SPSS using the following memory scores for this sample of 15 fictional patients with dementia: 8 3 11 7 6 5 4 8 9 8 7 9 5 4 10 Higher memory number indicates better memory performance. Use this information to complete the following in SPSS. 17) Run descriptive statistics on the dementia patients’ memory scores (make sure to include the mean and confidence interval by using the “Explore” option as shown in...
Using the SATGPA data set in Stat2Data package. Test by using α= .05. 1) Create the...
Using the SATGPA data set in Stat2Data package. Test by using α= .05. 1) Create the following three variables and then print out all the six variables. Create a new variable “SAT”, which is the sum of MathSAT and VerbalSAT. Create second new variable “SATLevel”, and assign the value of “SATLevel” as 1 when SAT<=1100, 2 when 1100<SAT<=1200, 3 when 1200<SAT<=1300, and 4 when SAT>1300. Create third new variable “GPALevel” and assign the value of “GPALevel” as 1 when GPA<=2.8,...
Using the entire data set of 65 stocks, count up the number of stocks in your...
Using the entire data set of 65 stocks, count up the number of stocks in your data that have a high stock price that is at least $20. State this value here: Verify this by copying the stem-and-leaf display for the high prices below. Stem and Leaf Plot of High   Leaf Digit Unit = 10            Minimum  1.1400 3 9 represents 390              Median   27.930                                 Maximum  393.00 Depth   Stem  Leaves   (46)     0   0000000000000001111111111122222222223333344444    19       0   5677888999     9       1   23     7       1   6     6       2   0003     2       2   8     1       3        1       3   9 65 cases included   0 missing cases    Suppose it is desired to determine...
Using the entire data set of 65 stocks, count up the number of stocks in your...
Using the entire data set of 65 stocks, count up the number of stocks in your data that have a high stock price that is at least $20. State this value here: ___28____. (is it)? Verify this by copying the stem-and-leaf display for the high prices below. Stem and Leaf Plot of high Leaf Digit Unit = 10 Minimum 0.1100 4 3 represents 430     Median   26.400                                                 Maximum 430.80 Depth       Stem        Leaves (46)           0           0000000000000000000111111111222222222333334444    19            0          ...
1. Using the Data Set, create and calculate the following in Excel®: Determine the range of...
1. Using the Data Set, create and calculate the following in Excel®: Determine the range of values in which you would expect to find the average weekly sales for the entire sales force in your company 90% of the time, and calculate the following: A. The impact of increasing the confidence level to 95% B. The impact of increasing the sample size to 150, assuming the same mean and standard deviation, but allowing the confidence level to remain at 90%...
Using a minimum of 2 classes create a java program that writes data to a file...
Using a minimum of 2 classes create a java program that writes data to a file when stopped and reads data from a file when started. The data should be in a readable format and the program should work in a way that stopping and starting is irrelevant (e.g. all data doesn't have to save just the important elements.) Program should be unique and semi-complex in some way.
We have been using the same set of data (Data Set One) in the notes to...
We have been using the same set of data (Data Set One) in the notes to illustrate production and costs. I have provided Data Set One in both tables below. When costs were calculated in the notes, fixed costs were $200. By using the term fixed costs economists are only referring to the fact that a firm must pay this expense no matter how much output it produces or sells. An example of a fixed cost could be the rent...
We have been using the same set of data (Data Set One) in the notes to...
We have been using the same set of data (Data Set One) in the notes to illustrate production and costs. I have provided Data Set One in both tables below. When costs were calculated in the notes, fixed costs were $200. By using the term fixed costs economists are only referring to the fact that a firm must pay this expense no matter how much output it produces or sells. An example of a fixed cost could be the rent...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT