Write sql statement to delete all information about employee

Assignment Help Database Management System
Reference no: EM13934262

Consider the following relational schema and briefly answer the ques- tions that follow:

Emp(eid: integer, ename: string, age: integer, salary: real) Works(eid: integer, did: integer, pct time: integer) Dept(did: integer, budget: real, managerid: integer)

1. Define a table constraint on Emp that will ensure that every employee makes at least $10,000.

2. Define a table constraint on Dept that will ensure that all managers have age > 30.

3. Define an assertion on Dept that will ensure that all managers have age > 30. Compare this assertion with the equivalent table constraint. Explain which is better.

4. Write SQL statements to delete all information about employees whose salaries exceed that of the manager of one or more departments that they work in. Be sure to ensure that all the relevant integrity constraints are satisfied after your updates.

Reference no: EM13934262

Questions Cloud

Investment funds to self-managed super fund : Having completed your Graduate Degree from Cambridge, you have just got a job at a small investment advisory firm. Your firm recommends investment funds to Self-Managed Super Fund (SMSF) clients based on their risk and return characteristic
What central purpose for developing first apa ethics code : What was the central purpose for developing the first APA Ethics Code? Was that purpose accomplished? Why or why not? Why were revisions to the code deemed necessary in 2002? How did those revisions affect the ethical principles of the code?
Environment over evolutionary time-order to ensure survival : Consider the differences between an animal that must survive in the arctic cold and one that lives in a hot, dry desert. Each one has adapted to their environment over evolutionary time in order to ensure survival.
C code : C code to find the sum of elements
Write sql statement to delete all information about employee : Write SQL statements to delete all information about employees whose salaries exceed that of the manager of one or more departments that they work in.
Simplify the company logistics requirements : IndoAust Jaya(IAJ) has just employed you as its new logistics manager to examine the company's requirements and also to implement new initiatives to make the business more profitable. The owner/managing director is especially keen to simplify the ..
Determine the required force applied to the handle : Determine the required force F applied to the handle at A and the magnitude of the pin reaction at O. Note that the plunger passes through a vertically-elon- gated hole in the handle at B, so that negligible vertical force is transmitted there.
Prepare a presentation outlining an example : Prepare a presentation outlining an example of an ethical dilemma in that department and proposing a solution for resolving it.
C code : C code to find the sum of elements

Reviews

Write a Review

Database Management System Questions & Answers

  Create queries and explain the purpose of query in detail

Create Queries and explain the purpose of each query in detail.

  Provide a logical and physical design

Design and develop a database using professional principles and standards. Provide a logical and physical design of the database.

  Produce budget reports for department at university

Consider system which produces budget reports for department at university. For whichever system you select, answer the following design questions. Who will use output?

  Advantages of database management

Discuss the advantages of a database management approach to the file processing approach? Give examples to illustrate your answer.Outline the benefits and limitations of the relational database model for business applications today?

  Create a local database that will synchronize data

In the prior phase, you started work on some of the application's graphical user interface (GUI). In this assignment, you will add a data entry form to the GUI and create a local database that will synchronize data to the isolated storage containe..

  How would your answers to the two questions change

How would your answers to the two questions change, if at all, if your system did not support indexes with multiple-attribute search keys?

  Front-end and back-end validation

What are the advantages and disadvantages of front-end and back-end validation and in which specific situations would one technique of validation be preferred over the other?

  Could a relation be stored as a sequential file

Suppose a sequential file contains 50,000 records, and 5 milliseconds are required to interrogate an entry. How long should we expect to wait when retrieving a record from the middle of the file?

  Describing the database design development life cycle

You will write a report describing the database design development life cycle and describe in details the steps needed to properly create the database you have selected for your Key Assignment

  Object approach improve the systems development process

How is the object approach different from the data and process approaches to systems development? And how can the object approach improve the systems development process

  Importing and analyzing sales data

Importing and Analyzing Sales Data- Security Enablers is a national company that provides security systems for small businesses. They have asked you to use the company template and import sales for the last five years

  Convert er diagram into relational schema

Suppose we are to design a registrar's database to store information about students, courses, the courses students have taken. Convert the E/R diagram into a relational schema.

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