E Book: Ricardo, Catherine M., and Susan Urban.

Create a view of Enroll that does not include the grade attribute, and give user 201 permission to read and update the view.
Create a role that includes reading Student, Class, and the view created in 2. Give that role to all clerks in the Deans office, which includes users 202, 203, 204, and 205.
Give permission to user 206, an assistant dean, to read and modify (insert, delete, update) the Faculty and Class tables. This user can authorize others to read and modify Class but not Faculty.
User 206 authorizes user 300 to read Class. Write the command to do this.
You will submit a Word document with the required SQL statements.

2)Instructions
Assume the following transactions are to be performed:

Transaction S:

read(a);

a=a+10;

write(a);

read(b);

b=b*5;

write(b);

Transaction T:

read(a);

a=a*2;

write(a);

If the initial value of a is 10 and the initial value of b is 20, what are their final values if we perform the transactions serially, using order S,T?
Using the same initial values, what are the final values of a and b if the order of execution is T,S?
Does this result have any implications for serializability?
Write a concurrent schedule for transactions S and T that illustrates the lost update problem.
Apply the standard two-phase locking protocol to the schedule you devised in step 4. Will the protocol allow the execution of that schedule? Does deadlock occur?
You will upload a Word document with the answers to the questions.

3) Instructions
Use the data distribution scheme for a distributed University example described below.

A University has multiple locations across a wide geographic area (large city?). There are servers located at each of the five campuses (North, South, East, West, and Main campuses).

Each of the campuses is connected to the University network. The servers at each site contain the following tables: Student, Faculty, Class, and Enroll. The primary copy of the Enroll table is on the Main campus server; secondary copies of the Enroll table exist on the North, South, East and West campus servers.

Describe two strategies for this query:
Find the ClassNumber and the names of all students enrolled in all classes with schedule MWF9.
Describe two strategies for this query:
Find the ClassNumber, facId of the teacher, and the campus of all classes being taken by RosemaryHughes, who is a student at the North campus.
Consider the query “Find the ClassNumber, schedule, and lastName of all enrolled students for all classes being taught by Professor Smith of the North campus.” The query is entered at the North campus.
Describe a strategy that does not use the semijoin.
Consider the query “Find the ClassNumber, schedule, and lastName of all enrolled students for all classes being taught by Professor Smith of the North campus.” The query is entered at the North campus.

Sample Solution

energy at a certain rate, X $/kwh and after that cap is reached, they are required to pay additional fees per kwh past their cap, which would be used to work toward the public good. This strategy, in theory, may encourage people to use less energy which in turn would put less strain on the energy production market and save on greenhouse gases.
Ethically this strategy is questionable because a flat tax above the designated load would disproportionally affect those people with lower income. Determining how much energy allotment each household or business received would be the primary factor with this. This cap could be established using a combination of relative household income (be that on a geographic average or using actual data), and the number of occupants in a household (understanding that dependents would be counted differently than independent adults). However, issues that are faced by those with lower income are exacerbated by factors in their homes such as poor insulation that can lead to drafts, and thus higher heating bills. Additionally, you then would have to find a way to determine how much energy is allowed during each season for different regions of the country. Businesses could work on a sliding scale, the local mom-and-pop shop would not pay the same overages as an Amazon warehouse, for example.
The list of externalities to energy production is extensive, and while there isn’t a direct path to abate all of them, one key tool to doing so is ensuring the funds are available. Using the additional funds generated by this plan, we can begin to invest in projects that benefit the consumer on a fundamental level (Reference 2). Better, more reliable distribution, availability of grants for higher efficiency furnaces, replacing windows in homes, and even employ energy auditors to visit homes and industry to identify places for improvement (Reference 3). The funds could also in part be delegated to environmental justice groups who advocate for those living next to the coal plant, or the oil field, or those affected by contaminated drinking water due to hydraulic fracturing. Too often the excuse is made that the funds just aren’t available, when in reality, they are.

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, Welcome to Compliant Papers.