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

  Calculate the average rainfall for three months

Write a program that asks the user to enter five floating-point numbers. The program should create a file and save all five numbers to the file.

  Design a modularized body mass index program

Design a modularized Body Mass Index (BMI) Program which will calculate the BMI of a team player. The formula to calculate the BMI is as follows:

  Create-implement simple class using static variables-methods

This third programming project is intended to demonstrate your knowledge of the following: create and implement a simple class. properly use static variables, methods and constants

  Which protocol is using by video game programmers udp or tcp

What protocol do you think video game programmers would use UDP or TCP. Why do you think the game uses one or the other protocols

  Write program to choose female student-completed more course

Suppose that input consists of a student file. You are told to write a program to select female students who have completed more than two courses.

  Create a logical expression

Create a logical expression that corresponds to the following statement - Complete the truth table for the expression created.

  Write down a program which reads an integer between 0 and

write a program that reads an integer between 0 and 10000 by selecting the integer at random then sum the digits. for

  Write a script that accepts a part of a process name

Using what we know about shell scripts, write a script that accepts a part of a process name as the first argument (like pgrep), which prints out the PID of all matching processes in blue, which is color code 4. Then print out the number of proces..

  Implementing class called card for standard playing card

Design and implement a aclass called Card that represents a standard playing card. each card has a suit and a face value.

  Write potential function to derive valid amortized cost

Consider base 3 counter and de ne actual cost of increment operation to be number of digits which get changed. Provide a potential function which enables you to derive smallest valid amortized cost.

  Find e(x) and var(x)

Suppose 0.4 of students are women and gpa for women has mean of 3 and sd 0.8; Gpa for men has mean of 2.5 and sd of 1.0. a sample size of 100 students which consist 40 women and 60 men.

  Write program to compute salary of employee

Write a program to compute the salary of an employee according to his/her grade assigned by employer. You should declare class named CalSalary whose private data members will be employee.

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