Ask PL-SQL Expert

• Create an SQL server database for the Kudler Fine Foods Virtual Organization.
• Create the following tables using fields listed below.

Note. Supply SQL server data types when creating tables. In the Employee table, create an Employee ID field that generates a unique number for each employee and designate the field as the Primary Key. In the Job_Title table, use a listed field as the table's primary key or create an additional field to use as the primary key. The primary key from the Job Title table appears as the foreign key in the Employee table.

Employee.
1. Employee ID.
2. Last name.
3. First name.
4. Address.
5. City .
6. State.
7. Telephone area code.
8. Telephone number.
9. Employer Information Report (EEO-1) classification.
10. Hire date.
11. Salary.
12. Gender.
13. Age.
14. Foreign key from Job Title table.
o
o Job_Title.
1. EEO-1 classification .
2. Job title.
3. Job description.
4. Exempt/non-exempt status.


• Use the SQL INSERT statement to go to the human resources department in the Kudler Fine Foods Virtual Organization. Using information found in the employee files for the La Jolla and Encinitas stores, enter records into the Employee table for the following employees:
o Glenn Edelman.
o Eric McMullen.
o Raj Slentz.
o Erin Broun.
o Donald Carpenter.
o David Esquivez.
o Nancy Sharp.
• Use the information from the job classifications and descriptions to enter records into the Job Title table for the following titles:
o Accounting clerk.
o Assistant manager.
o Bagger.
o Cashier.
o Computer support specialist.
o Director of finance and accounting.
o Retail assistant bakery and pastry.
o Retail assistant butchers and seafood specialists.
o Stocker.

• Check results by selecting all columns from both tables. Non-exempt employees at Kudler Fine Foods are paid an hourly wage and must track their working hours. 


Individual Assignment: Data Changes and SQL Statements

o Use the database and tables from last week's assignment to prepare SQL statements and enter records into the eEmployee table for workers identified in the employee files for the administrative offices and the Del Mar store. Check results by selecting all columns from both tables.
o Use the database and tables from last week's assignment to prepare SQL queries. prepare an SQL query that does the following:
o Joins two tables in the ex database and uses BETWEEN to restrict record selection. Use salary to restrict data.
o Joins two tables in the ex database and uses BETWEEN to restrict record selection. Use hire dates to restrict data.
o Joins two tables in the ex database and uses LIKE to restrict record selection. Use telephone area codes to restrict data.
o Joins two tables in the ex database and uses LIKE to restrict record selection. Use age to restrict data.
o Uses the UNION of the two tables to produce a third table..
o Use the updated database to prepare the following queries, using the SQL GROUP statement:
o Select employees' last names and group them by EEO-1 classification.
o Select employees' last names and group them by salary.
o Select employees' last names and group them by salary in their EEO-1 classification.
o Select employees' last names and group them by salary in job titles, grouped into exempt and non-exempt.

Individual Assignment: SQL Reports


• Use the database and tables from last week's assignment to prepare SQL queries.
• Note. Select all data from both tables before you perform the following:
• Increase all employees' salaries with the selected EEO-1 classification by 10 percent. 
• Increase all employees' salaries by 5 percent.
• Choose an employee from the Employee table and delete that employee.
• Print out the SQL statements and data from both tables to show how data was affected.
• Use the database and tables from last week's assignment to prepare SQL statements that do the following:
• find out the average salary for all employees. 
• find out the maximum salaries for exempt and non-exempt employees.
• find out the maximum salary for all employees.
• find out the minimum salaries for exempt and non-exempt employees.
• find out the minimum salary for all employees. 

PL-SQL, Programming

  • Category:- PL-SQL
  • Reference No.:- M9130254

Have any Question?


Related Questions in PL-SQL

Complete the following tasksin microsoft access create the

Complete the following tasks: In Microsoft Access, create the database and tables that you identified in W3 Assignment 2. In Microsoft Word, write the SQL statements to create the database and tables. Write SQL statement ...

Purpose of the assessment with ulo mapping the purpose of

Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop skills in managing data in databases and to gain understanding of data model development and implementation using a commercially a ...

Continuing the project you have worked on in weeks 1-4 in

Continuing the project you have worked on in Weeks 1-4, in this final week, complete the following tasks: Refine your database and SQL statements by incorporating your instructor's feedback. Verify that the database comp ...

For this assignment you will be provided a database backup

For this assignment, you will be provided a database backup for a database called FinanceDB. You will have to restore this backup to your own version of SQL Server. All of the questions in this assignment relate to the F ...

Assignment - queries functions and triggersaimthe aims of

Assignment - Queries, Functions and Triggers Aim The aims of this assignment are to: formulate SQL queries; populate an RDBMS with a real dataset, and analyse the data; design test data for testing SQL queries; create SQ ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As