Solutions_Selects for a single table(1) (2).docx - Selects for a single table solutions 1 Return all employee fnames in uppercase select upper(empfname

Solutions_Selects for a single table(1) (2).docx - Selects...

This preview shows page 1 - 2 out of 2 pages.

Selects for a single table - solutions 1. Return all employee fnames in uppercase select upper(empfname) from qemp 2. Select all of the item types in your qitem table (remove duplicates) select distinct itemtype from qitem 3. Select the departments that sell Compasses and are not the navigation department select deptname from qsale where itemname = 'Compass' and deptname <>'Navigation' 4. Find the average delivery quantity and round it to the nearest whole number select round(avg(delqty)) from qdel 5. Select the empfname of all employees and print them out by department and within department by empfname select empfname from qemp order by deptname, empfname 6. Select everything from the QDEL table
Image of page 1

Subscribe to view the full document.

Image of page 2
  • Spring '17
  • Natural number, Compass

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

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes