
Programming language: SQL
Tool: Oracle SQL Developer
The
Employee (Lastname, FirstName, MidInitial, gender, street, city)
Works (Lastname, FirstName, MidInitial, company-name, salary) company (company-name, city)
company (company-name, city)
Manages(Lastname, FirstName, MidInitial, ManagerLastname, MFirstName, MMidInitial, start-date)
Manages(Lastname, FirstName, MidInitial, ManagerLastname, MFirstName, MMidInitial, start-date)
employee_table (you should define three attributes for employee and manager names)
Name street city gender
--------------------------------------------------------
Anderson, Susan L 108th Omaha F
Brady, Dan L P street Lincoln M
Chen, Peter K 124th Omaha M
Clemson, Ann M O Lincoln F
Dale, Mary K 132th Omaha F
Gill, Mary L P street Lincoln F
Harrison, Susan M Old Mill Omaha F
Jackson, Kim A 178th Omaha F
Jason, Pat M 8th C.Bluffs M
Kumar, Paul T Dodge Omaha M
Orr, Susanne S Q Omaha F
Peterson, Mike E Blondo Omaha M
Powell, Tom E Broadway C.Bluffs M
Quinn, Jacky M 168st Omaha F
Rand, Pam R 13st Omaha F
Schreck, Ann P 214st Elkhorn F
Simon, Eric K 77th Lincoln M
Smith, John A 8th C.Bluffs M
Thomson, Ron F Farnam Omaha M
Young, Don R Dodge Omaha M
Wong, Carole S Broadway C.Bluffs F
works_table: (Again, you should define three attributes for employee name)
employee_name company_name salary
------------------------------------------------
Anderson, Susan L Mutual of Omaha 48000
Brady, Dan L FDR 42000
Chen, Peter K FDR 53000
Clemson, Ann M First Bank 39000
Dale, Mary K Mutual of Omaha 58000
Gill, Mary L Union Pacific 48700
Harrison, Susan M Union Pacific 54320
Jackson, Kim A FDR 68000
Jason, Pat M FDR 83000
Kumar, Paul T FDR 44000
Orr, Susanne S Lincoln Star 32000
Peterson, Mike E First Bank 37000
Powell, Tom E First Bank 54000
Quinn, Jacky M First Bank 85000
Rand, Pam R FDR 37000
Schreck, Ann P First Bank 36000
Simon, Eric K Mutual of Omaha 45000
Smith, John A FDR 55000
Thomson, Ron F First Bank 39000
Young, Don R Mutual of Omaha 27000
Wong, Carole S First Bank 44000
company_table:
company_name city
-----------------------------
First Bank Omaha
FDR Omaha
Lincoln Star Lincoln
Mutual of Omaha Omaha
Union Pacific Omaha
Manages (Note: both employee and manager names should include three
attributes):
employee_name manager_name start_date
-----------------------------------------------------
Anderson, Susan L Dale, Mary K 15-SEP-2002
Brady, Dan L Jason, Pat M 05-MAR-2004
Chen, Peter K Jason, Pat M 12-JUNE-2003
Clemson, Ann M Powell, Tom E 30-AUG-2001
Gill, Mary L Harrison, Susan M 25-JAN-2003
Jackson, Kim A Jason, Pat M 09-MAY-2008
Kumar, Paul T Jason, Pat M 09-MAY-2001
Rand, Pam R Smith, John A 15-JAN-2004
Peterson, Mike E Powell, Tom E 30-AUG-2006
Schreck, Ann P Quinn, Jacky M 28-FEB-1996
Simon, Eric K Anderson, Susan L 22-FEB-2004
Smith, John A Jason, Pat M 05-MAR-2003
Thomson, Ron F Powell, Tom E 30-AUG-1998
Wong, Carole S Quinn, Jacky M 28-FEB-2001
Young, Don R Dale, Mary K 15-SEP-2007
- For those employees whose last name initial is not a character “C” and who earn less than the average salary of all employees of their own companies, find their full names and cities they live.
- Find the average number of employees for all companies.
- (a) Give all managers a 4% pay raise while give all other employees a 6% pay raise (do not use the view ManagerInfo defined above) and display the result.

Trending nowThis is a popular solution!
Step by stepSolved in 4 steps

- DB security - Extensive administrative method for database physical control.detailarrow_forwardWithin a database, what categories does the information included in each row of each table come under?arrow_forwardhow to build a bookstore database with Entities for Tables Books This entity will store information about the books in the bookstore, such as title, author, publisher, and publication date. The table could also include additional fields such as genre, language, and the number of pages. Authors This entity will store information about the authors of the books in the bookstore, such as name, date of birth, nationality, and biography. The table could also include additional fields such as gender, education, and awards. Bookstore Members This entity will store information about the bookstore members, such as name, address, phone number, email address, and membership status. The table could also include additional fields such as date of birth, occupation, and membership type.arrow_forward
- The term "Network Database System" is used to describe a kind of database management software that centers on the idea of ownership.arrow_forwardFill in the phases of the Database Life Cycle (DBLC): Behavior of Answer Shape/Pocket: Shapes can be in any pocket, or in initial position.arrow_forwardSystem Description Data Dictionary (Description of each table and attribute) Conceptual Model (Entity/Relationship Model) Logic Model (Relational Model) Database Schema Script (DDL)Design a database to keep data about college students, their academic advisors, the clubs they belong to, the moderators of the clubs, and the activities that the clubs sponsor. Assume each student is assigned to one academic advisor, but an advisor counsels many students. Advisors do not have to be faculty members. Each student can belong to any number of clubs, and the clubs can sponsor any number of activities. The club must have some student members in order to exist. Each activity is sponsored by exactly one club, but there might be several activities scheduled for one day. Each club has one moderator, who might or might not be a faculty member. Draw a complete E-R diagram for this example. Include all constraints.arrow_forward
- Microsoft Access table design models: how to choose?arrow_forwardDatabase Design Testing (ID_testing,date,observerId) Observer(observerId,observer_name) Type(TypeId,typename) Essentialoil (ID_essential,essentialname,typeId,batchcode) Constituent (ID_constituent,cname,min_percentage,Test_percentage,status) Before an Essential Oil product is marketed, testing is carried out based on the production batch from any essential oil. This is done to maintain the quality and content of the existing constituents in essential oils. Where the Test Percentage Content must reach the Minimum standard Percentage Content for each constituent. If there is one type of constituent that does not fulfill minimum standard, the batch will not be marketed because it does not meet the standard quality. Question 1. Make an ERD (Entitiy Relationship Diagram) based on the results of Normalization 2. Develop the ERD that you create to implementGeneralization / Specialization.arrow_forwardAn example of a real-world SQL database should be given and described.arrow_forward
- Why should derived attributes not be stored in a database?arrow_forwardThe database schema Employee (Lastname, FirstName, MidInitial, gender, street, city) Works (Lastname, FirstName, MidInitial, company-name, salary) company (company-name, city) company (company-name, city) Manages(Lastname, FirstName, MidInitial, ManagerLastname, MFirstName, MMidInitial, start-date) Manages(Lastname, FirstName, MidInitial, ManagerLastname, MFirstName, MMidInitial, start-date) employee_table (you should define three attributes for employee and manager names) Name street city gender -------------------------------------------------------- Anderson, Susan L 108th Omaha F Brady, Dan L P street Lincoln M Chen, Peter K 124th Omaha M Clemson, Ann M O Lincoln F Dale, Mary K 132th Omaha F Gill, Mary L P street Lincoln F Harrison, Susan M Old Mill Omaha F Jackson, Kim A…arrow_forwardPart A - Database design case study In this part, you need to provide a short description of the application/website for which you will be designing the database (The overview of your own/chosen case study that is related to the assignment topic), outline the basic functions that your database needs to support, identify the data requirements, and business rules.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





