Preview

Kudler Fine Food Week 4

Good Essays
Open Document
Open Document
284 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Kudler Fine Food Week 4
Using the database and tables from Week Three, write queries using the SQL SELECT statement.

Note: Select all of the data from both of your tables before you perform the following.

· Select an EEO-1 Classification: Enhance all employees’ salaries that have: the selected EEO-1 classification by 10%.

revise employee set salary = salary * 1.1 where eeo_1_classification = 'sales workers'

· Increase all employees’ salaries by 5%.

revise employee set salary = salary * 1.05

· Select an employee from the employee table; delete this employee. delete from employee where id_num=5

· Print out the SQL statements and the data from both tables to show how the data was affected. Get ready to show your results in class.

Using the database and tables from Week Three, write SQL statements to:

· Calculate the average salary for all employees.

select avg(salary) from employee

· Calculate the maximum salary for exempt employees and the maximum salary for non-exempt employees.

choose max(salary) from employee join job_title on employee.job_title_id = job_title.job_title_id where exempt='yes'

choose max(salary) from employee join job_title on employee.job_title_id = job_title.job_title_id where exempt='no'

· Calculate the maximum salary for all employees.

choose max(salary) from employee

· Calculate the minimum salary for exempt employees and the maximum salary for non-exempt employees.

choose min(salary) from employee join job_title on employee.job_title_id = job_title.job_title_id where exempt='yes'

choose min(salary) from employee join job_title on employee.job_title_id = job_title.job_title_id where exempt='no'

· Calculate the minimum salary for all employees.

choose min(salary) from employee

· Print out the SQL statements and the results. Get ready to show your

You May Also Find These Documents Helpful

  • Good Essays

    The SELECT statement is the primary means of extracting data from database tables, and allows you to determine exactly which data you want to extract by means of different comparison operators used in the WHERE clause. This includes the use of specific "wild card" characters which allow you to search for character or number patterns within the data. You can also perform mathematical expressions within the SELECT statement to create derived output. The ORDER BY clause allows you to sort the output data in either ascending (the default) or descending order. Lab #5 will explore all of these applications of the SELECT statement.…

    • 1559 Words
    • 7 Pages
    Good Essays
  • Good Essays

    b. Amount of the employer’s FICA taxes for the weekly payroll? OASDI $76.92 HI $17.99 Total FICA = $94.91…

    • 541 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Pos 410 Week Dq

    • 703 Words
    • 5 Pages

    * 3.4 Write a SQL query that joins two tables in the example database and uses BETWEEN…

    • 703 Words
    • 5 Pages
    Powerful Essays
  • Better Essays

    Ocean Lab Report

    • 853 Words
    • 4 Pages

    Our data has two tables because it contains data from two classes. First data is from Wednesday 19th (T-1), which is our class and the other data is…

    • 853 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    You will need to design an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed. It will then calculate their gross and net pay. If they work more than 40 hours, overtime is calculated at 1 ½ times the regular rate and displayed separately. If they are married, use a flat tax rate of 15%. If they are single, use 22%, if they are divorced, use 23%, and if they are widowed, use 13% (I realize that these are not very realistic). Here is a sample of what the program should do when run:…

    • 482 Words
    • 14 Pages
    Satisfactory Essays
  • Satisfactory Essays

    SQL Queries

    • 423 Words
    • 2 Pages

    Query 3: Find the names and ID's of all faculty members, sorted in reverse alphabetical order by name. The result should be a two column table (SELECT should only be two in order for the table to be 2 columns)…

    • 423 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Weymouth Case Study Essay

    • 416 Words
    • 2 Pages

    2. The employee will also be paid for unused vacation for 2004 and vacation accrued for 2005.…

    • 416 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Week 1 Submission

    • 1120 Words
    • 5 Pages

    4. Show all employee names and salary that earn between $1,000 anod $2,000. Use the between operator.…

    • 1120 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Since Landslide Limousines is working at a net earning of (-) 50,000 dollars the first year, the total of the 25 employees he must plan for in company earnings is 650,000 dollars. Additionally, as incentive to attract employees, Mr. Stonefield will offer a full benefits package that includes only a 1 month waiting period for plan inclusion. Mr. Stonefield will offer 2 types of plan, An HMO or a PPO. The total cost of benefits for each will be deducted from the employee’s paycheck pre-tax. Of course, choosing the HMO will mean a higher premium per month but the PPO will off a higher deductable for plan inclusion. Vision and Dental will also be a pre-tax nominal fee for the employee. Additionally, the employees will be offered certain ‘a la carte’ benefits, they may purchase through Landslide Limousines insurance plan, they include: long term disability insurance, life insurance, catastrophic benefits insurance, direct deposit savings account and 401k benefits. In addition, the employees will be offered a 2 week vacation with 5 sick days with paid holidays for the 5 major holidays (New years day, Memorial day, 4th of July, Labor day and Christmas) with a time and a half benefit for employees working during those holidays. In addition, all employees will be able to declare their tips to keep adequate record for IRS…

    • 806 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Chapter 4

    • 784 Words
    • 4 Pages

    3. Before any row can be entered in the SECTION table, the COURSE_ID to be…

    • 784 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    4) Find the names of courses that have the word Database in the course Description…

    • 400 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Assignment2

    • 619 Words
    • 2 Pages

    In SQL, specify the following queries on the database specified in Figure 1 below using the concept…

    • 619 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    During the first nine years of employment, the calculation is 3/52 (approximately six percent) of the employee’s annual salary. You must also calculate vacation pay on the vacation pay at the same rate! Any commissions, overtime, or bonuses paid also need to be included in the calculation.…

    • 622 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    This brief discussion and critique focuses on the nature of exempt and non-exempt employees and how the different categorizations change the way in which they are compensated for the work they perform. Not only will I explain the difference between the two different categories, I’ll also examine a case in California where the definition of these two categories was in question. Specifically, the difference between a state definition and a federal definition of the way exempt and non-exempt employees are defined. In the end I’ll show how the case in California was decided upon and how that issue was resolved.…

    • 1148 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    contributions based on the total wages paid to all their employees), and individuals (who make…

    • 1434 Words
    • 6 Pages
    Good Essays