List all the employees in the emp table

Assignment Help Programming Languages
Reference no: EM13930179

1. List all the employees in the emp table. If they work for department Accounting, then add 1200 to their salary. If they work f

ordepartment Sales, then add 100 to their salary, otherwise add nothing to their salary.

2. List all the suppliers and the foods that they supply from the l_foods table. If supplier_id ASP provides the food, add 1 dollar

to his price. If supplier_id, CBC supplies the food, add 2 dollars to his price. Otherwise, just show the price as is.

3. List the employee_id and employee_name of the employees form the l_employees table with the top 4 credit limits.

4. Change your answer from above to list those employees with the bottom 4 credit limits.

5. From the project, project_hours, and employee table, list the all the projects, the hours worked, and the date worked. (You

will need this for the project).

6. Using the Lunches database, find the total amount spent on lunches by each employee. Show first_name, last_name,

credit_limit, and total_price_spent in your results. Order your answer by total_price_spent in descending order. Only show the

employees

who spent more than their credit limit (Modify question 9 from the last homework.)

7. Using the Lunches database, count the number of foods supplied by each supplier. List all the suppliers. Show the

supplier_id, supplier_name, and number of foods from each supplier. Sort the rows on the supplier_id. Make sure you count all

suppliers, even if they don't supply foods.

8. Using the Lunches database, count the number of employees who work in each department. List all the departments. Show

the department code, department name, and the number of employees. Sort on the dept_code. Make sure you count all

employees, regardless of whether they work for departments or not.


Attachment:- data for table.docx

Reference no: EM13930179

Questions Cloud

Share to make the two offers equally attractive : A business executive is offered a management job at Generous Electrical Company. They offer to give him a five-year contract which calls for a salary of $62,000 per year, plus 600 shares of their stock at the end of the five years. what must the Gene..
Identify the event depicted in each journal entry : Identify the event depicted in each journal entry as asset source (AS), asset use (AU), asset exchange (AE), or claims exchange (CE).
What are some of the advantages of using a meta-analysis : What are some of the advantages of using a meta-analysis? Provide an example
Proceeds out of the insureds gross estate : It is often desirable to keep life insurance death proceeds out of the insured’s estate for tax reasons. Which of the following describe(s) a necessary condition for keeping the proceeds out of the insured’s gross estate?
List all the employees in the emp table : Change your answer from above to list those employees with the bottom 4 credit limits.
Concerning valuation of life insurance policies-federal tax : Which of the following statements concerning the valuation of life insurance policies for federal gift tax purposes is (are) correct?
Concerning use of funded irrevocable life insurance trust : All the following statements concerning the use of a funded irrevocable life insurance trust are correct EXCEPT:
Policys gift tax value-determined by government rules : Some years ago, Y purchased a $100,000 universal life policy on his own life. Two years ago, he sold the policy to his cousin for the policy’s gift tax value of $40,000 as determined by government rules.
Designated the revocable beneficiary : John purchases a life insurance policy on the life of Mary. John is the owner, and Bill is designated the revocable beneficiary. Under these circumstances, which of the following statements is correct?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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