DP10.docx - 2 Write a query to return all those employees...

Info icon This preview shows pages 1–3. Sign up to view the full content.

2. Write a query to return all those employees who have the same job id as Rajs and were hired after Davies. 4. What is the staff type for those Global Fast Foods jobs that have a salary less than those of any Cook staff-type jobs? 6. Return the department ID and minimum salary of all employees, grouped by department ID, having a minimum salary greater than the minimum salary of those employees whose department ID is not equal to 50. 1. What will be returned by a query if it has a subquery that returns a null ?
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Say it is a single row inner query, And I try to use >, >=,<, <= etc:- There are no rows returned here. I may have to use NVL to execute comparison with something valid. Based on what is the need of my query, I may use NVL in case a) above also. 2. Find the last names of all employees whose salaries are the same as the minimum salary for any department. 5. Place the correct multiple-row comparison operators in the outer query WHERE clause of each of the following: a. Which CDs in our d_cds collection were produced before “Carpe Diem” was produced? WHERE year
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Spring '16

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern