Consider the relational database of Figure. Give a relational-algebra expression for each of the following queries: a.
Question:
Consider the relational database of Figure. Give a relational-algebra expression for each of the following queries:
a. Find the company with the most employees.
b. Find the company with the smallest payroll.
c. Find those companies whose employees earn a higher salary, on average, than the average salary at First BankCorporation.
Transcribed Image Text:
employee (person-name, street, city) works (person-name, company-name, salary) соmрany (companу-пamе, city) таnages (person-нате, тапager-nате)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (6 reviews)
a t companyname works t maxnumemployees Pcompanystrengthcompanynamenumemployees t IIcompanyname Pta...View the full answer
Answered By
ANDREW KIPRUTO
Academic Writing Expert
I have over 7 years of research and application experience. I am trained and licensed to provide expertise in IT information, computer sciences related topics and other units like chemistry, Business, law, biology, biochemistry, and genetics. I'm a network and IT admin with +8 years of experience in all kind of environments.
I can help you in the following areas:
Networking
- Ethernet, Wireless Airmax and 802.11, fiber networks on GPON/GEPON and WDM
- Protocols and IP Services: VLANs, LACP, ACLs, VPNs, OSPF, BGP, RADIUS, PPPoE, DNS, Proxies, SNMP
- Vendors: MikroTik, Ubiquiti, Cisco, Juniper, HP, Dell, DrayTek, SMC, Zyxel, Furukawa Electric, and many more
- Monitoring Systems: PRTG, Zabbix, Whatsup Gold, TheDude, RRDtoo
Always available for new projects! Contact me for any inquiries
4.30+
1+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer Sciences questions
-
Consider the relational database of Figure. Give an expression in the relational algebra for each request: a. Modify the database so that Jones now lives in Newtown. b. Give all employees of First...
-
Consider the relational database of Figure. Give an expression in SQL for each of the following queries. a. Modify the database so that Jones now lives in Newtown. b. Give all employees of First Bank...
-
Consider the relational database of Figure. Write a Datalog program for each of the following queries: a. Find all employees who work (directly or indirectly) under the manager Jones. b. Find all...
-
A. Determine the cost of the goods sold for the September 30 sale. B. Determine the inventory on September 30. Beginning inventory, purchases, and sales for an inventory item are as follows: 31 units...
-
Goose down is used in a wide variety of products, including jackets, bedding, and pillows. In recent years, the cost of down has been increasing. For example, in 2009, a pound of goose down sold for...
-
Pineway Electric manufactures electric motors. It competes and plans to grow by selling high-quality motors at a low price and by delivering them to customers in a reasonable time after receiving...
-
A lot of compensation information is available to employees today on the Web (e.g., www.salary.com), and much of it is inaccurate. How can an organization assure employees that they are fairly...
-
The Dybvig Corporations common stock has a beta of 1.21. If the risk-free rate is 3.5 percent and the expected return on the market is 11 percent, what is Dybvigs cost of equity capital?
-
In the past, 30% of a country club's members brought guests to play golf sometime during the year. Last year, the club initiated a new program designed to encourage members to bring more guests to...
-
A box of nine gloves contains two left-handed gloves and seven right-handed gloves. a. If two gloves are randomly selected from the box, without replacement (the first glove is not returned to the...
-
Using the bank example, write relational-algebra queries to find the accounts held by more than two customers in the following ways: a. Using an aggregate function. b. Without using any aggregate...
-
List two reasons why we may choose to define a view.
-
The 2000 National Doctoral Program Survey asked 32,000 current and recent Ph.D. students in the United States, across all disciplines, to respond to the statement I am satisfied with my advisor. The...
-
Water-treatment processes that generate hydroxyl radicals are often used to remove organic chemicals that contaminate groundwater. The hydroxyl radical (OH) is a very reactive free-radical species...
-
1. import java.util.Scanner; 2. public class root 3. { 4. public static void main(String[] args) 5. { 6. 7. 8. Scanner input= new Scanner(System.in); double number = input.nextDouble(); double a = 2;...
-
Consider the following CIE Diagram. W is the white point. 520 54 510 X M 500 H 490 480 400 B 560 K E G 380 D600 R700nm F (a) (2 points) What color (point) can be regarded as the hue (as a spectral...
-
For the code given below, when m=387 and n=33, show the steps of the Euclidean algorithm. I have provided the pseudocode and shown the first 5 steps below. count = 0 while ((r = m mod n) != 0) m = n...
-
What is the output of the following program? #include using namespace std; main() { } int r, x = 2; float y = 5; r= y%x; cout
-
The following expenses budget has been prepared for Abacus Services for the year ending 30 June 2020. Professional salaries, secretarial wages and training are paid in the quarter in which they are...
-
Swifty company is a publicly held corporation whose $1 par value stock is actively traded at $30 per share. The company issued 3400 shares of stock to acquire land recently advertised at $93000. When...
-
Consider the E(t) curve below. A graph is shown, with t (in minutes) on horizontal axis and E of t (minutes inverse) on vertical axis. A hemi (half) circular curve starts at the origin and ends at 2...
-
Why do cloud-computing services support traditional database systems best by using a virtual machine, instead of running directly on the service providers actual machine, assuming that data is on...
-
Why might a client choose to subscribe only to the basic infrastructure-as-aservice model rather than to the services offered by other cloud service models?
-
Some database operations such as joins can see a significant difference in speed when data (e.g., one of the relations involved in a join) fits in memory as compared to the situation where the data...
-
1. What year are you preparing your students for? 1973? 1995? Provide evidence that your school's curriculum and the program you use are preparing your students for 2030? Are you even preparing them...
-
2 Classify each type of numerical data as discrete (D) or continuous (C). a number of homes with solar power b patients' body temperatures c sizes of the crowds at rock concerts d star ratings of...
-
What role does the use of either mimesis or abstraction play in each example? (Keep in mind that the concepts of mimesis and abstraction in the creative arts are defined and explored in the document...
Study smarter with the SolutionInn App