Practice 6

Practice 6 - p6q3.sql 4 Display the employee name department number and job title for all employees whose department location is Dallas 5 Display

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ASSIGNMENT FOR AST AND ANT JUNE 2004(29th july 2004) Submission date: 30 th july 2004 Practice 6 1. Write a query to display the employee name and hire date for all employees in the same department as Blake. Exclude Blake. 2. Create a query to display the employee number and name for all employees who earn more than the average salary. Sort the results in descending order of salary. 3. Write a query that will display the employee number and name for all employees who work in a department with any employee whose name contains a T . Save your SQL statement in a file called
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: p6q3.sql. 4. Display the employee name, department number, and job title for all employees whose department location is Dallas. 5. Display the employee name and salary of all employees who report to King. 6. Display the department number, name, and job for all employees in the Sales department. 7. Modify p6q3.sql to display the employee number, name, and salary for all employees who earn more than the average salary and who work in a department with any employee with a T in their name. Resave as p6q7.sql . Rerun your query....
View Full Document

This note was uploaded on 07/15/2011 for the course ECO 2023 taught by Professor Mr.raza during the Summer '10 term at FAU.

Ask a homework question - tutors are online