subject

Review chapters 5 and 6 in the Elmasri & Navathe textbook, as well as the relevant slides and class exercises before you start working on this assignment. Respond to the questions below in the context of the following relational schema for an order processing database: CUSTOMER (custNo, cName, city, state)
ORDER (orderNo, ordDay, ordMth, ordYr, custNo, ordAmt)
ORDERITEM (orderNo, itemNo, qty)
ITEM (itemNo, unitPrice)
SHIPMENT (orderNo, wNo, shipDay, shipMth, shipYr)
WAREHOUSE (wNo, wName, city, state)
Notes: ordAmt refers to total dollar amount of an order; ordDay, ordMth, ordYr refers to the date the order is placed; shipDay, shipMth, shipYr refers to the date the order is shipped. An order is typically shipped within 7 days, and may be shipped from any warehouse. Primary keys are underlined and in bold print.
1. Specify the foreign keys for this schema and the relations they reference. State any assumptions you make.
2. What is union compatibility? Why do the UNION, INTERSECTION, and DIFFERENCE operations require that the relations on which they are applied be union compatible?
3. How are the OUTER JOIN operations different from the INNER JOIN operations?
4. Using the correct notation, specify the following queries in relational algebra:
a. List the names of all customers in New Jersey.
b. List all the orders, and their amounts, that are shipped from warehouses in the same city as the customer.
c. List the total value of orders at each warehouse in December 2017.
d. List the orders that have been / were delayed (not shipped within seven days).
e. List the total amount of orders from each warehouse, that were not shipped within seven days.
f. List the items that have been shipped from every warehouse in the database.
g. List the total number, total amount, and average amount of orders shipped to the customer named "ABC Retail", from each warehouse.
h. List the names of the customers that placed orders totaling more than $50,000.
i. List the items that have never been ordered.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 14:30
Asoftware program that includes tools for entering, editing, and formatting text and graphics is called a word processing program. true or false?
Answers: 1
question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 22.06.2019 14:10
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text “invalid staff id” should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
question
Computers and Technology, 22.06.2019 14:40
For this assignment you have to write a c program that will take an infix expression as input and display the postfix expression of the input. after converting to the postfix expression, the program should evaluate the expression from the postfix and display the result. what should you submit? write all the code in a single file and upload the .c file. compliance with rules: ucf golden rules apply towards this assignment and submission. assignment rules mentioned in syllabus, are also applied in this submission. the ta and instructor can call any students for explaining any part of the code in order to better assess your authorship and for further clarification if needed. problem: we as humans write math expression in infix notation, e.g. 5 + 2 (the operators are written in-between the operands). in computer's language, however, it is preferred to have the operators on the right side of the operands, ie. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix write a program that takes an "infix" expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % ( example infix expression: (7-3)/(2+2) postfix expression: 7 3 2 2 result: rubric: 1) if code does not compile in eustis server: 0. 2) checking the balance of the parenthesis: 2 points 3) incorrect postfix expression per test case: -2 points 4) correct postfix but incorrect evaluation per test case: -i points 5) handling single digit inputs: maximum 11 points 6) handling two-digit inputs: 100 percent (if pass all test cases)
Answers: 3
You know the right answer?
Review chapters 5 and 6 in the Elmasri & Navathe textbook, as well as the relevant slides and cl...
Questions
question
Mathematics, 04.09.2020 20:01
question
Biology, 04.09.2020 20:01
question
Mathematics, 04.09.2020 20:01
question
History, 04.09.2020 20:01
question
Mathematics, 04.09.2020 20:01
Questions on the website: 13722363