Provide a query that lists all employees

Assignment Help Computer Engineering
Reference no: EM132171791

Using MySQL and the Company schema.

1. Using the Company schema, provide a query that lists all employees along with any dependents. Include employees without dependents in the result set.

List the employee first name, last name, ssn, and the dependent's name and relationship if a dependent exists.

Use the explicit joins.

Expected Result Set Size: 47

2. Using the Company schema, select the unique project numbers and project names where either the project department's manager is ‘Freed' or an employee's last name is ‘Freed'.

Use explicit join notation where necessary.

Nested selects may be needed in this case.

Expected Result Set Size: 2

3. Using the Company schema, list every project name and average employee salary for employees in the project.

Use explicit joins.

Note that the avg salary for project 61 (OperatingSystems) is 42,166.

Expected Result Set Size: 11 i.e. the number of projects.

Schema Name: Company

Table Name: employee

Column Names: fname, minit, lname, ssn, bdate, address, sex, salary, superssn, dno

Table Name: dependent

Column Names: essn, dependent_name, sex, bdate, relationship

Table Name: dept_locations;

Column Names: dnumber, dlocation

Table Name: department

Column Names: dnumber, dname, mgrssn, mgrstartdate

Table Name: project

Column Names: pname, pnumber, plocation, dnum

Table Name: works_on

Column Names: essn, pno, hours

Reference no: EM132171791

Questions Cloud

Write a program that continuously requests a grade to be : When a grade of 999 is entered, the program should exit the repetition loop and compute and display the average of the valid grades entered.
Advantage for small business : Please explain why leasing as a capital financing alternative is an advantage for small business.
Display a table of expansion length for a steel bridge : Write a C++ program that displays a table of expansion length for a steel bridge that's 7365 meters long at 0 degrees Celsius.
What is the expected area : If the area of the tiles is the square of the side length, what is the expected area?
Provide a query that lists all employees : Provide a query that lists all employees along with any dependents. Include employees without dependents in the result set.
Electricity and sustainable alternative to gas flaring : Your paper will be evaluated on its appraisal of the issue, its quality of argument, and the topic's relevance to the subject matter covered in the course
Display the content of customers table : Create a new table named Customers. The new table should have at least 5 columns including a primary key.
Current production method : State the appropriate null and alternative hypotheses if the mean cost for the current production method is $230 per hour
Create a personal development plan : Personal Development Plan MGMT 1021 -

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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