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

  Develop the logic for a program that accepts a players name

Develop the logic for a program that accepts a player's name, age and nine-hole score as input. Display the player's name and score on each of the nine holes.

  This assignment is due for online students by midnight on

this assignment is due for online students by midnight on sunday of week 7 and for on-ground students before week 8s

  Mutual authentication and key establishment protocol

Assume a server-assisted mutual authentication and key establishment protocol. Suppose that Alice and the Server share the pairwise symmetric key KAS; however Bob and Server share a pairwise symmetric key KBS.

  Management tools for microsoft windows server

Based on the Kercher (2009) article, how can management tools for Microsoft Windows Server 2008 automate user account administration

  How do you locate all nonblank lines

How do you locate all nonblank lines that don't begin with #, /*, or //? Devise a sequence to locate those users who have logged in yesterday or earlier.

  Write down a java program that reads in 10 integers

Write down a C# program that calculates the square root of each number in the multiplication table for values from 1*1 up to 10*10. Be sure to provide labels for your rows and columns.

  Touchdevelop- prompt for the accuracy value

Create a 2nd loop the sum s until the sequential term is less than accuracy. Prompt for the accuracy value. Test for accuracy 0.01, 0.001 and 0.0001. Provide a flowchart.

  Create an application that instantiates one martian

Create an application that instantiates one Martian and one Jupiterian. Call the toString() method with each object and display the results.

  Take movie of a location and a movie shot in front of screen

Take a movie of a location and a movie shot in front of a green screen and use chromakey to blend the two movies together.

  Identifying the information security problem

In relation to the project management tools, discuss and give two examples or scenarios in order to demonstrate how the work breakdown structure could recognize and plan an information security problem or issue in the organisation.

  Calculate and display a square matrix multiplication table

A program will calculate and display a square matrix multiplication table. For instance a sample output for a 4x4 table is listed below.

  How does this app have a potentially impact on racial

How does this app have a potentially impact on racial, gender or religious discrimination? Suggest potential actions for rectifying the problem.

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