Show the structure of the employees table

Assignment Help Database Management System
Reference no: EM131269934

Questions:

1. Show the structure of the EMPLOYEES table.

2. Select all data from the EMPLOYEES table.

3. Select the first and last column of the EMPLOYEES table.

4. Create a query to display the JOB_ID, JOB_TITLE and MIN_SALARY with a MIN_SALARY greater than $4000.00.

5. Create a query to display the JOB_ID, JOB_TITLE and MIN_SALARY for one specific employee.

6. Write a query to display your name and the current date on a single line of output.

7. 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.

8. Write a query to modify the previous query and display the HIRE_DATE's that are not between 1995 and 1996.

9. Write a query using the JOBS table to determine the what the MAX_SALARY would be if the employees were given a 5% raise. Label the column New Max Salary. Display four columns from the employees table including the salary and the New Max Salary column.

10.Using the employees table display the employee numbers, department id, and hire date, which is the first Thursday three months from the hire date. Format the dates to appear in the format similar to "Thursday the Fifteenth of July, 2001"

11.For each Employee in the employees table display the employee_id, job_id, department_id and calculate the number of months between the hire_date and today's date. Label the column MONTHS FROM HIRING. Round the number of months up to the closest whole number.

12.Write a query using the EMPLOYEES table that produces the following output concatenated. "Mr." <first_name> "," <last_name> "can be contacted at the following phone number " <phone> " or at his email address of " <email>. Provide a column alias for each column.

13.Write a query using the employees table to display the last name, first name and hire date for three specific employees without using the ‘or' operator.

14.Write a query using the regions table to display the REGION_ID REGION_NAME for the regions whose name contains the string East.

15.Write a query using the employees table to display the LAST_NAME, JOB_ID, and HIRE_DATE for employees whose last name begins with a G.

16.Write a query using the departments table that displays the department number, department name, manager id and location id where the manager id or location id is not null.

17.Create a query that will display the EMPLOYEE ID, LAST_NAME and MANAGER_ID of employees in the employee table. If the employee does not have a manger put "No Manger is Listed". Create an alias for the column.

18.Write a query using the employees table to display the employee id, hire date , and salary for all employees with an hire date of December 19, 1999.

19.Display the average max_salary of all employees in the jobs table. Label the column "Average Max Salary". Truncate your results to the nearest whole number.

20. Display the last name, first_name, hire date and end date of employees using the employees table and the job_history table.

21. Modify #20 so that it only lists employees with a department id of 20, 50 or 90.

22.Write a query to display a unique listing of the number of job id's .

23.Determine the number of job id's without listing them. Label the column Number of Jobs.

24.Write a query that will display the difference between the highest hire date and lowest end date in the employee and job_history tables. Label the column "Highest and Lowest".

25.Write a query using the job_history table to display the job id , department id, and job title and months between the END_DATE and START_DATE.

26.Write a query to display the employee last name, email, phone_number, and start_date of all employees who earn a commission.

27. Create a query that displays an evaluation of the employee's salary where the salary is between the minimum salary and the maximum salary in the jobs table. Display the last names, department numbers, the minimum salary and the maximum salary. Give each column an appropriate label.

Reference no: EM131269934

Questions Cloud

What are the characteristics of a candidate key : What are the characteristics of a candidate key?
Explain the importance of getting innovative new products : Explain the terms, vertical and horizontal channel conflict and explain the importance of getting innovative new products to market quickly.
Determine the value of an american call option on blackberry : Finance 6301 Financial Management Fall 2016 Assignment. use the Black-Scholes model to determine the value of an American call option on Blackberry Computer with 9 months to expiration and a $70 strike price
Find the future value : Find the future value at 3.95%, compounded continuously, for 5 years of a continuous income stream with a rate of flow of f(t) = 1,000 - 200t.
Show the structure of the employees table : Show the structure of the EMPLOYEES table. Select all data from the EMPLOYEES table. Select the first and last column of the EMPLOYEES table.
How does a relation differ from an ordinary file : Why was the commercial introduction of relational database delayed during the 1970s? What factors encouraged its introduction in the early 1980s?
Find the interest earned : Find the interest earned at 4.15%, compounded continuously, for 4 years for a continuous income stream with a rate of flow of f(t)=1,000-250t.
What is the coefficient of coupling : What is the coefficient of coupling - Assume that the physical structure of these cou-pled coils is such that ρ1 = ρ2. What is the turns ratio N1/N2 if N1 is the number of turns on the 52 mH coil - Find the coefficient of coupling.
How do relational query optimizers work : What are some of the ways that relational query optimizers can handle joins?

Reviews

Write a Review

Database Management System Questions & Answers

  Explain the concept of a data warehouse

Describe the use of technology to store and integrate customer data.- Briefly explain the concept of a data warehouse.

  Give a list of employee names

Using the Northwind database - Give a list of employee names and each employee's corresponding customers by company name.

  Briefly describe how a cross-site scripting attack

Briefly describe how a cross-site scripting attack can be used to compromise the confidentiality of information stored in a database

  Explain the life cycle of an information systems

Imagine that you run a photography printing store. Your employees have been using punch cards for time entry since you started the business.

  Describe the entity-relationship model

Composite and multi-valued attributes can be nested to any number of levels.

  Define the importance of various system analysis

By now you should have a "toolbox" full of useful design and analysis tools. List the tools in your toolbox and then write one short paragraph on how you can/will apply them in your careers, lives, etc.

  Program to build a database concerning employee information

Company XYZ needs a program to build a database concerning employee information.

  Modify the clsdatalayer to use a two-step process

Modify the SavePersonnel() function so that instead of just doing a single SQL INSERT operation with all the personnel data, it does an INSERT with only the FirstName and LastName, followed by an UPDATE to save the PayRate, StartDate, and EndDate ..

  Relational algebra expressions for names of salespeople

Illustrate relational algebra expressions for names of all salespeople, names of all salespeople having ORDER row and names of salespeople not having ORDER row.

  Stores a logically related database over two or more

A distributed database management system (DDBMS) stores a logically related database over two or more physically distinct locations connected by a computer network.

  Create a list of managers and supervisors

Your company wants to encourage carpooling. Create an answer table listing employee name, city and street address (in that order) for employees who live in Crestline.

  Use contemporary case tools in process and data modeling

Discuss the requirements needed to build a database for the scheduling process.

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