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

  Discuss the feasibility and practicality

In Coffee's (2006) article, IT professionals discuss the role application developers take in software security. Pick one of these IT experts, summarize his or her perspective on building security into software, and then discuss the feasibility and..

  Design program to accepts account number

Design a program that accepts an account number, the account owner's first and last names, and a balance. Print the projected running total balance for each year for the next 20 years.

  Program to read employee information in the array of objects

Let the program which will read employee information into the array of objects, sort array by employee identification number, write the sorted array.

  Develop logic for program to read customer records

Develop the logic for a program that reads in 100 customer records and stores the first and last name and total purchases in three parallel arrays.

  Applications in involve computing various powers of e

The transcendental number, e. Many applications in mathematics involve computing various powers of e. It can be proven that ex = 1 + x/1 + x2/2! + x3/3! + ... for all values of x. Of course, this is an infinite sum.

  Write a main method to test your max method

Write a main() method to test your max method. It should input three values, call your max method, and then print the three values and returned max value as output, eg:

  Write a program that replies either leap or not a leap year

Write a program that replies either Leap Year or Not a Leap Year, given a year. It is a leap year if the year is divisible by 4 but not by 100 (for example, 1796 is a leap year because it is divisible by 4 but not by 100).

  Design a class named customerrecord that holds a customer

design a class named customerrecord that holds a customer number name and address. include methods to set the values

  Write pseudocode for worm moving toward apple

Worm is moving toward an apple. Each time it moves, worm cuts distance between itself and apple by its own body length until worm is close enough to enter the apple. Give pseudocode for this.

  Clear description of the program

Program Description- A detailed, clear description of the program you are building. Analysis- Demonstrates your thought process and steps used to analyze the problem. Be sure to include the required input and output and how you will obtain the req..

  How many number of users currently logged into the system

How do you know how many number of users currently logged into the system? (Not considering if any user is logged more than one time

  Create program which calculate distance travelled by boat

Create a program which calculate distance a boat travels across a river, given the width of the river, the boat's speed perpendicular to the river.

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