Construct a model-theoretic interpretation

Assignment Help Database Management System
Reference no: EM131047726

Text: Fundamentals of Database Systems, Elmasri, Ramez; Navathe, Shamkant B.

Chapter: Answer the following questions.

26.34 Consider the COMPANY database described in Figure 5.6 on page 162 of E&N. Using the syntax of Oracle triggers, write the active rules to do the following:

a. Whenever an employee's project assignments are changed, check if the total hours per week spent on the employee's projects are less than 30 or greater than 40; if so, notify the employee's direct supervisor.

Use this command to notify the manager of that an employee has worked more or less hours than expected:

host /usr/sbin/sendmail -t <"Employee " + Essn + " has more or less hours than expected this week">

b. Whenever an employee is deleted, delete the PROJECT tuples and DEPENDENT tuples related to that employee, and if the employee manages a department or supervises employees, set the Mgr_ssn for that department to NULL and set the Super_ssn for those employees to NULL.

26.35 Repeat Exercise 26.34 (prior question) but use the syntax of STARBURST active rules.

2282_figure.jpg

26.43 Consider a deductive data base with the following rules:
r1 : ANCESTOR(X, Y) :- FATHER(X, Y)
r2 : ANCESTOR(X, Y) :- FATHER(X, Z), ANCESTOR(Z, Y)
Notice that FATHER(X, Y) means that X is the father of Y; ANCESTOR(X, Y) means that X is the ancestor of Y.

Consider the following fact base:

FATHER(Harry, Issac), FATHER(Issac, John), FATHER(John, Kurt)

a. Construct a model-theoretic interpretation of the above rules using the given facts.

b. Consider that a database contains the above relations FATHER(X, Y), and another relation BROTHER(X,Y), and third relation BIRTH(X, B), where B is the birth date of Person X. State a rule that computes the first cousins of the following variety: their fathers must be brothers

Verified Expert

This report solve the problems using Oracle triggers update and delete details of employee table , use of STARBURST active rules to solve the update and delete details of employee table. Also construct a model-theoretic interpretation for the given scenario and form the rules. References are included as per APA format.

Reference no: EM131047726

Questions Cloud

What would be the bonds clean price : Suppose you buy a bond with a 12 percent annual coupon, payable semiannually. You actually pay $ 1,080 for this bond. On the day you buy it, the next coupon is due in 3 months. What would be the bond's clean price?
Bond issue outstanding with maturity : IBM has a bond issue outstanding with 14 years to maturity. When originally issued the bond had a par value of $1,000, a stated coupon rate of 12% and 15 years to maturity. Currently, similar risk bonds in the market place are yielding 8%. What would..
Size of the international market for the product : an assessment of the segmentation and positioning opportunities in the selected foreign market; an assessment of the size of the international market for the product and a forecast of future demand
How much of your money will you invest in stock : A stock market comprises 4600 shares of stock A and 1600 shares of stock B. Assume the share prices for stocks A and B are $15 and $30, respectively. If you have $15,000 to invest and you want to hold the market portfolio, how much of your money will..
Construct a model-theoretic interpretation : Construct a model-theoretic interpretation of the above rules using the given facts - State a rule that computes the first cousins of the following variety: their fathers must be brothers
How would you describe your primary responsibilities : As a systems analyst on this project, how would you describe your primary responsibilities, and how could you contribute to the quality of the finished product?
Motivate with the aid of a graph : motivate with the aid of a graph
Improves the application of investment rules : Net present value is just a tool and as with any tool, it can be dangerous in the wrong hands. In what way do the risk based present value improves the application of investment rules?
Process of using marginal analysis to solve decision problem : Explain the process of using marginal analysis to solve decision problems with a square matrix (ie actions = states) involving discrete probability distributions describing the states of nature.

Reviews

Write a Review

Database Management System Questions & Answers

  Represent data for sales of individual stores

Explain how you will visually represent the data for the sales of the individual stores and for the time period shown. You want to show the change in sales for each store over time for the past three years.

  What are the typical departments in a data center

What techniques would you use to effectively manage a team of system administrators (network, database, application, etc.) working in your data center?

  Describe the core concepts of data quality

Write clearly and concisely about relational database management systems using proper writing mechanics and technical style conventions.

  Construct an er diagram for a hospital

Construct an er diagram for a hospital with a set of patients and a set of medical doctors. associate with each patient a log of various test and examination conducted.convert er diagram into tables

  Design a dss to help decision-makers

Design a DSS to help decision-makers run the 2012 London Olympics-Write down the step-by-step solution to train the classifier by the basic perceptron learning rule.

  Develop the ipo chart, flowchart, and pseudocode for an app

You will need to develop the IPO Chart, flowchart, and pseudocode for an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed.

  Derive an efficient computation method

Discovery-driven cube exploration is a desirable way to mark interesting points among a large number of cells in a data cube. Derive an efficient computation method to identify such points during the data cube computation

  Draw an functional decomposition diagram

Draw an functional decomposition diagram that shows the main operations described in the fact statement - prepare a context diagram and diagram 0 DFD for the new system.

  Error code in unning this program in raptor

I need an input statement that would allow the user to input any day of the week for steps walked and be able to input any number for step walked on any day of the week.

  Elaborate further on the definition of information systems

Review some of the tools you use whether at home or school that helps turn the data we are exposed to into information for making decisions.

  How many of the artist works have been sold

List the names of the deceased artists and the number of years of age they were when they died (for example, an artist born in 1950 and deceased in 2001 has an age of 51).

  Drawing a diagram of the data structures

Drawing a diagram of the data structures will help you figure out what you are deallocating as you write your dictionary_free function. This should help you avoid memory leaks.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd