Write a query to display the information about the employees

Assignment Help PL-SQL Programming
Reference no: EM132420940

227_table.jpg

Task 1: Create three tables with relevant keys as suggested in the above diagram

Task 2: Insert record of 10 employees in the employee table

Task 3: Insert record of 5 departments in the department table

Task 4: Insert record of 5 salary levels in the salary table

Task 5: Write a query to display the information about the employees in the employee table

Task 6: Write a query to display the name of all the employees

Task 7: Write a query to display the name of all the employees and their jobname.

Task 8: Write a query in SQL to display the unique jobname for all the employees

Task 9: Write a query to increase the salary for all the employees by 12%. Display the empname, jobname and salary after the increment

Task 10: Write a query to display the employee names with minimum and maximum salary.

Task 11: Write a query to display the employee id, employee name, jobname of all the employees whose salary is greater than 90,000 P.A.

Task 12: write a query to display the all the details of all the employees whose jobname is Manager. (Hint: While entering the records for employee, make sure to add manager as jobname for a few employees.)

Task 13: Write a query to display the all the details of the employee whose name is Robert. (Hint: While entering the records for employee, make sure to add Robert as empname for at least one employee.)

Task 14: Write a query to display all the details of the employee who work as a manager and have salary greater than 95000 P.A.

Task 15: Write a query to display employeeid, employee name, jobname and date of joining of all the employees who joined after year 2001.

Task 16: Write a query to display the list of all the employees whose annual salary is within the range 55000 and 95000.( Hint: make sure to add the salary in this range while entering records in the employee table)

Task 17: Write a query to display the list of all the employees in the descending order of their salaries.

Task 18: Write a query to count the number of employees in the employee table.

Task 19: Insert a new record in the employee table and add ANALYST as their jobname. The other fields can be added as per your choice

Task 20: Insert a new record in the employee table with the following data fields

employee_id= 1011
empname= Janet
jobname= PROGRAMMER
managerid= 5095
dateofhire= 12-10-2014
salary= 90000
department_id=2011

Task 21: Write a query to delete the record of the employee whose name is 'Flynn'. (Hint: Make sure to add a record with employee name 'Flynn' in the beginning.

Task 22: Write a query to update the salary by 15% of the employee whose employee name is ROBERT.

Task 23: Write a query to find the number of staff working in each department and the sum of their salaries.

Task 24: Write a query to find all employees with the string 'Avenue' in their address

Reference no: EM132420940

Questions Cloud

Current and future issues in it project management : Demonstrate theoretical and practical implementation of leadership, team building, and performance management approaches for IT projects
Transactions on the books of vogel corporation : Prepare the journal entries to record these transactions on the books of Vogel Corporation.
Global or lnternational marketing assignment : Global or lnternational Marketing Assignment help and solutions:-Main theme of the article - the author's major point.implications of the article important
What are market research reports : What are market research reports?
Write a query to display the information about the employees : Create three tables with relevant keys as suggested in the above diagram and Write a query to display the information about the employees in the employee table
What is the benefit of accelerated depreciation : What is the benefit of accelerated depreciation for income tax purposes when the total depreciation taken over the asset's life is identical under any method
New major sporting event assignment : NEW Major Sporting Event Assignment help and solutions:-How will the XFL "break through the clutter" to attract fans both nationally and globally?
What do you think about the concept of training of customer : "in order to deliver superior service, you need to make your customers behave", please express your thought about the statement.
Hyaundai elantra assignment : Hyaundai Elantra Assignment help and solutions:-why you choose the product or service.Finally outline the self oriented values that may weigh into consumers.

Reviews

len2420940

12/20/2019 11:27:20 PM

This is all sql coding and has 24 programs. The all coding should b written as ms word document and database design in excel format. All coding should be run in the sql as well

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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