Question

In: Computer Science

Question 1                                         &nbs

Question 1                                                                                                                    2 Marks

Briefly explain the referential integrity rule. Provide a suitable situation when the referential integrity constraint is violated.

Question 2                                                                                                                    2 Marks

This question refers to the Part table as used in this unit lecture slides about the customers to order homeware parts. Using SQL DCL command to write a statement to permit a user with the log in ID of JOHNSON to access the Part table and update its UnitPrice value.

Question 3                                                                                                                    2 Marks

Consider a relation named STUDENT_ ACCOMMODATION (StudentID, Buidling, AccommodationFee) as shown in the figure below. Explain why this relation is in 2NF but not in 3NF.             

StudentID

Building

AccommadtionFee

101

Alpha

$320

102

Betta

$250

103

Alpha

$320

104

Betta

$250

105

Gemma

$400

Question 4                                                                                                                    2 Marks

Explain the purpose of transaction logs and checkpoints.

Question 5                                                                                                                    2 Marks

Compare and contrast Data Warehousing against Database.

Solutions

Expert Solution

1. Let us assume that there are Employees in an Organisation. Also there are Departments within that Organisation. Now, every employee works for a Department. And hence, a relationship exists between Employee and Department. In case of DBMS representation, there will be 2 tables for this mentioned scenario. Records are matched using foreign keys and this is known as referential integrity rule.

There can be 3 cases of this referential integrity constraint violation:

a> Insertion in a referencing relation

b> Deletion from a referencing relation

c> Updation of a referencing relation

2. GRANT ALL ON PART.UNITPRICE TO JOHNSON

3. In the given table to be in 3NF, Building and Accommodation Fee should be clubbed together. And Student details need to be in a different table matched to the building name/id.

4. Checkpoint means storing all logs into a storage disk after a specific time interval. Transaction logs are stored so that it can be referenced for future audit purposes.

5. Data Warehousing referes to the process of having multiple heterogeneous sources and integrating data in between these databases. Whereas, a database simply resembles a single storage for data in any relational format (RDBMS).


Related Solutions

Question 1                                         &nbs
Question 1                                                                                      On October 1, 2010, Madison Ltd. acquired all the shares of Dobson Ltd. for $849,600. On that date, Dobson’s statement of financial position showed share capital of $540,000 and retained earnings of $273,600. In addition, at the acquisition date, all of Dobson’s identifiable assets and liabilities had carrying values that equaled their fair values. Madison and Dobson’s financial statements for September 30, 2014 are presented below: Statement of Financial Position As of September 30, 2014                                                                                                 Madison...
QUESTION 1                                         &nbs
QUESTION 1                                                                                                                                From the following information of two sole trader enterprises conducting similar businesses, prepare: Ratio calculations in the table below for comparison of profitability, asset efficiency, liquidity and capital structure. Vertical analysis of the Balance Sheets for both enterprises. Round all calculations to 2 decimal places. Balance Sheet data (end-of-year) Hi Enterprises $ Lo Enterprises $ Current assets 24 000 32 000 Motor vehicles (net) 19 000 27 000 Total assets 43 000 59 000 Current liabilities 14...
Question 1                                         &nbs
Question 1                                                                                                         25 Marks Study the following comparative profit and loss and financial position statements for Phoenix Energy for the years 2013 and 2014. The current market price for Phoenix Energy is OMR 0.420 Instructions: Based on the information provided, Examine the following ratios for the years 2015 and 2016.                      20 marks Earnings per share.           Inventory turnover. Total assets turnover.        Times interest earned.          Operating profit margin. Critically evaluate the profitability and the efficiency of the company over the two-year period....
Question 1                                         &nbs
Question 1                                                                                                                    2 Marks Briefly explain the referential integrity rule. Provide a suitable situation when the referential integrity constraint is violated. Question 2                                                                                                                    2 Marks This question refers to the Part table as used in this unit lecture slides about the customers to order homeware parts. Using SQL DCL command to write a statement to permit a user with the log in ID of JOHNSON to access the Part table and update its UnitPrice value. Question 3                                                                                                                    2...
Question 1                                         &nbs
Question 1                                                                                   (Total: 25 marks)                                                 Sijanggut runs a news agency and general store, selling goods mainly for cash, although she has a few account customers for newspapers and magazines who pay monthly. His income statement for the year ending 31 August 2019 is as follows: SIJANGGUT INCOME STATEMENT FOR THE YEAR ENDED 31 AUGUST 2019 RM RM Revenue 87,355 Cost of sales Opening inventory 3,567 Purchases 71,714 75,281 (-) Closing inventory (3,886) (71,395) Gross profit 15,960 Expenses (20,466)...
Question 1                                         &nbs
Question 1                                                                                    List the details of cars that are Toyota sedan. The details include registration number, make and model, the number of seats, manufactured year, category ID, and category name. RegoNo MakeAndModel NumOfSeats ManufacturedYear CategoryID CategoryName ABC455 Toyota Camry 5 1 sedan NAK455 Toyota Corolla 4 2017 1 sedan Question 2                                                                                   Which cars have never been rented out? List the details that include the car’s registration number, make and model, number of seats, manufactured year, category as well...
Question No. 1:                                    (LO1)     &nbs
Question No. 1:                                    (LO1)                                                            Explain the “due process” procedures followed by the FASB in developing a financial reporting standard.                                                                                                                      What is meant by “economic Consequences” in accounting standard-setting?                                                                                                                         Explain in your own words the importance of Financial Accounting and Financial Reporting.                                                                  
Hellow please assist with a solution to this question: Question 1                               &nbs
Hellow please assist with a solution to this question: Question 1                                                                                                                 Your company has decided to investment in the stock market. Management has tasked you to conduct and assessment of the two stocks listed below. Year Stock A rA Stock B rB 2014 (18.00%) (14.50%) 2015 33.00 21.80 2016 15.00 30.50 2017 (0.50) (7.60) 2018 27.00 26.30 Required: Calculate the average rate of return for each stock during the period 2014 through 2018.                                                                                                                              Assume that someone held a portfolio consisting...
Question 5                                         &nbs
Question 5                                                                                                                                          Julian and Jenna carry on a partnership business and for the income year ended 30 June, the partnership net income was $38,000, as returned by their accountant. However, included in the deductions was a salary of $12,000 paid to Julian’s wife (who is not a business partner). The Commissioner disallows all but $2,000 of this amount. Required: What authority, if any, does the Commissioner have in disallowing the claim for salary? (2.5 marks) ANSWER: What course of...
Question 3                                         &nbs
Question 3                                                                                     Prints Galore Ltd., a Canadian company, acquired 100% of Sculptures Ltd. for FC 300,000 on January 1, 2014. Prints Galore’s functional currency is the Canadian dollar and Sculpture’s functional currency is the FC. Selected exchange rates are presented below:                              January 1, 2014                       FC1 = $1.6993 CAD                              December 31, 2015                  FC1 = $1.7182 CAD                              December 31, 2016                  FC1 = $1.7233 CAD Assume that the average rate for 2014, 2015, and 2016 is FC 1...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT