Given these facts: Department (dname). meaning dname is the name of a department. Employee...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Given these facts: • Department (dname). meaning "dname" is the name of a department. • Employee (name). meaning "name" is the name of an employee. • Manager (name). meaning "name" is the name of an employee who is a manager. • Gain (namel, salary). meaning "name1" has the salary "salary". • managedBy (namel, name2). meaning "namel" manages "name2". • Dept Manager (namel, dname). meaning "name1" manges department "dname". • workin (namel, dname). meaning "name" work in deparment "dname". • Gender (namel, male). • Gender (name2, female). • married (namel, name 2). meaning "name1" as husband married "name2" as wife. Provide the datalog expression of these queries below: Find employees who are manage by umar and are male.(5 marks) Find employee who earn more their manager.(5 marks) Find employee who are married to each other but work in different department (5 marks) Find department who are manage by Fatima or Umar.(5 marks) Find departments that is manage by female employee.(5 marks) DATABASE MANAGEMENT SYSTEM Given these facts: • Department (dname). meaning "dname" is the name of a department. • Employee (name). meaning "name" is the name of an employee. • Manager (name). meaning "name" is the name of an employee who is a manager. • Gain (namel, salary). meaning "name1" has the salary "salary". • managedBy (namel, name2). meaning "namel" manages "name2". • Dept Manager (namel, dname). meaning "name1" manges department "dname". • workin (namel, dname). meaning "name" work in deparment "dname". • Gender (namel, male). • Gender (name2, female). • married (namel, name 2). meaning "name1" as husband married "name2" as wife. Provide the datalog expression of these queries below: Find employees who are manage by umar and are male.(5 marks) Find employee who earn more their manager.(5 marks) Find employee who are married to each other but work in different department (5 marks) Find department who are manage by Fatima or Umar.(5 marks) Find departments that is manage by female employee.(5 marks) DATABASE MANAGEMENT SYSTEM
Expert Answer:
Answer rating: 100% (QA)
To express the given queries in Datalog we can use the following representations Find employees who ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
A company has warehouses in Los Angeles, St. Louis and Boston. The company has six retail outlets throughout the United States which place orders, which the company then ships from one of the...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
Create a conclusion to following work. Hotels form an uninterrupted narrative of a story, filling guests with emotions that define their stay. They have ceased to be considered one-dimensional places...
-
How would you apply this concepts to call center statistics? There are two numerical ways of describing quantitative variables, namely measures of location, and measures of dispersion. Measures of...
-
Hansboro Corporation's budget planning meeting is like a zoo. Neil Gleason, the credit manager, is naturally conservative and Rachel Lawson, the marketing manager, is the opposite. They have argued...
-
Repeat the analysis of Problem 27 for the network of Fig. 9.83 with R s and V s of Fig. 9.87. Fig. 9.87 Problem 27 a. The feedback capacitance of an inverting amplifier is 10 pF. What is the Miller...
-
Check the name of a corporation that does business in California and determine where its principal place of business is located.
-
Consider a simultaneous game in which player A chooses one of two actions (Up or Down), and B chooses one of two actions (Left or Right). The game has the following payoff matrix, where the first...
-
OVERHEAD VARIANCES FSI had the following ACTUAL fixed and variable overhead costs during the month of October. 14,000 of direct labor were used to produce 30,000 shirts. Variable Overhead Fixed...
-
The proposed rates were not in the range the CEO expected given the pricing analysis. The CEO has asked the pricing actuary to verify the total projected loss cost excluding potential large storm...
-
The impedance Z given below consumes 60VAR reactive power with a leading power factor of 0.6 when the applied voltage is 300V2 cos(100 t). a. Calculate average power P consumed in this impedance. b....
-
Ryan is a 12 year old diagnosed with Oppositional DefiantDisorder (ODD). As a small child, Ryan was first diagnosed withAttention Deficit, Hyperactivity Disorder. He had just startedpreschool and was...
-
Describe the SALT Deduction and any limitations. How does this impact NJ taxpayers? Include a reference to the applicable IRC section. ALSO response on how this impacts NJ taxpayers. Indicate whether...
-
You own a portfolio of two stocks, A and B. Stock A is valued at $85,000 and has an expected return of 8.6 percent. Stock B has an expected return of 4.2percent. What is the expected return on the...
-
The master budget at Monroe Manufacturing last period called for sales of 42,200 units at $44 each. The costs were estimated to be $28 variable per unit and $526,000 fixed. During the period, actual...
-
Gleason Guitars produces acoustic guitars. The table below contains budget and actual information for the month of June: Note: Indicate the effect of each variance by selecting "F" for favorable, "U"...
-
Implement BFS and DFS in single program for graph represented as adjacency matrix.
-
Calculate the change in entropy when 100 kJ of energy is transferred reversibly and isothermally as heat to a large block of copper at (i) 0 C, (ii) 50 C.
-
Consider a graph having n vertices labeled 1, 2, . . . , n, and suppose that, between each of the pairs of distinct vertices, an edge is independently present with probability p. The degree of vertex...
-
Let Z be a standard normal random variable Z, and let g be a differentiable function with derivative g. (a) Show that E[g(Z)] = E[Zg(Z)] (b) Show that E[Zn+1] = nE[Zn1] (c) Find E[Z4].
-
Independent trials that result in a success with probability p and a failure with probability 1 p are called Bernoulli trials. Let P n denote the probability that n Bernoulli trials result in an...
-
With your instructor's consent, identify a company and perform a background review of it to identify high-risk areas for an upcoming audit. Utilize all the electronic sources that have information...
-
According to the AICPA's ethical standards, an auditor would be considered in- dependent in which of the following instances? a. The auditor has an automobile loan from a client bank. b. The auditor...
-
Explain how "privileged communication" differs from confidential information.
Study smarter with the SolutionInn App