List the average cost of projects for employees

Assignment Help PL-SQL Programming
Reference no: EM131208143

Database Assignment: Aggregate Functions, Nested Queries, Union, Intersect, Except Name__Shelly Rideout

Write the SQL code for the following queries (you do not have to give the results of the query)

1. List the employee id and sum of days duration for employees that have spent over total 100 days working on projects (use a having command and not a nested query).

select emp_id, sum(days_duration) AS totaldays

...> from project
...> group by emp_id
...> having sum(days_duration)>100;

2. Display the count of employees whose department is located in a flying air ship.

3. Display the title and birth date of the employees whose manager is Director Fury who have worked on a project with Loki as the villain (use INTERSECT).

4. Display the manager of the employee with the oldest project start date.

5. List the average cost of projects for employees who weakness is "no super power" and the average cost of projects for all other employees, create a new column that labels each total (use UNION ALL).

Attachment:- Attachments.rar

Reference no: EM131208143

Questions Cloud

Manage racism in the workplace : How do you manage racism in the workplace? Give an example of a real life sceanrio. 100-200 words
Under what circumstances is ethnicity apparent : Under what circumstances is ethnicity apparent? How can an ethnic identity be both positive and perhaps counterproductive? How do you think that the media today can impact people's perceptions on ethnicity? Do you think the media is a positive or ..
What is strategic role that corporate social responsibility : What are the political and economic risks a corporation may face when investing in a BRIC country? Discuss cultural factors that might impact the role of a corporation's manager in these nations.
Human resource activities such as selection : Why is it important to keep the firm's strategy in mind when engaged in human resource activities such as selection?
List the average cost of projects for employees : List the average cost of projects for employees who weakness is "no super power" and the average cost of projects for all other employees, create a new column that labels each total (use UNION ALL).
Sole responsibility of corporate management : 1) Maximizing Shareholder Value is the sole responsibility of Corporate Management. Discuss the pros and cons of this statement with the help of information from multiple sources. What is your opinion?
What analytical strategies and tools were used : What presentation formats did you consider - How did you decide what formats to use? (Explain your reasoning and how can the data presentations be designed to avoid misinterpretation?
Patent and trademark office biggest customers : Microsoft has been on a patent roll. In recent years, it has been one of the U.S. Patent and Trademark Office's biggest customers.
How the organizational culture influences decision making : What unwritten rituals, social practices, specialized vocabulary/jargon, values, or routine practices are exhibited by members or leaders? Are any competing viewpoints from subcultures within the organization of the elements described above? If so,..

Reviews

Write a Review

 

PL-SQL Programming Questions & Answers

  Design database for school students

Design a database to maintain information about school staff and students satisfying following properties: 1. Staff will be having their id, name and classes they are teaching 2. Student will be having name, roll no,..

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Discuss how ultra wide band works

Discuss how Ultra Wide Band (UWB) works, and where it is used today in the real-world. What companies are making UWB-based products?

  Create report using wizard or based on sql query

Create a report using the wizard or based on an SQL query that that shows Courses that instructors are approved to teach. Show Course Number, First Name, and Last Name of Instructor.

  What does sql mean and what can you do with sql

Now we're getting to some exciting stuff - SQL and queries! We have *touched on it* earlier and now this week it will be the primary focus of this discussion topic. So what is SQL? What does SQL mean and what can you do with SQL

  Select statements to query the student schema

Write Ten SQL SELECT statements to query the STUDENT schema you created for practice lab 2. Your Select Statements should run error-free and should be valid.

  Creating sql script queries

Get the movie title for all movies that are comedy or horror, rename the output attribute name to be "Happily Scared"

  Draw an entity-relationship diagram

Draw an Entity-Relationship Diagram (ERD) for the data storage requirements of a business described in the case study and Data Model Transformation.

  Prior to the adoption of sql as a standard

Prior to the adoption of SQL as a standard by the American National Standards Institute (ANSI), each database management system (DBMS) had its own unique command language and syntax. SQL was adopted as an ANSI standard in 1986. The International S..

  Write sql to correction create the beach table

Write SQL to correction create the BEACH table, Write SQL to inset the data into the BEACH table

  Security administrator for a small company

You are the security administrator for a small company. You have a single server that is used as your Web server and e-commerce server. It is in your office, separate and distinct from all other systems.

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