"CS457C_HW3_SANDEEPANUGLA_10805"

"CS457C_HW3_SANDEEPANUGLA_10805" - CS457C...

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

View Full Document Right Arrow Icon
CS457C Homework # 3 Roll No: 10805 Name: Sandeep Reddy Anugula Section: CS457C 1. Write a query to display all columns of scott.emp and scott.dept tables. The result should be sorted by the ename in ascending order. 2. Write a query to display all columns of scott.emp table, but only those JOB as clerk.
Image of page 1

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

View Full Document Right Arrow Icon
3. Run queries on slide 7 of week 3 handouts, making sure tables needed to be added scott. in front of them.
Image of page 2
A. (a) Retrieve rows with salary>=1000 and salary<=1500; (b) Retrieve rows where sal>=1000 and sal<=1500 (c) Retrieve rows where sal<=1500 and sal<=1000
Image of page 3

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

View Full Document Right Arrow Icon
(d) Retrieve no rows. Lower limit first, then higher limit (e) Retrieve rows with Employee Name start from ‘C’ till ‘M’.
Image of page 4
(f) Retrieve rows with Hire Date 04/10/1981 – 12/31/1981. 4. Run queries on slide 8 of week 3 handouts, making sure tables need to be added scott.in front of them. A. (a) Retrieve rows with MGR 7902, 7698, 7788
Image of page 5

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

View Full Document Right Arrow Icon
(b) Order/duplicates in IN list are irrelevant.
Image of page 6
(c) Retrieve rows with job in ‘CLERK’, ‘SALESMAN’, ‘ANALYST’ .
Image of page 7

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

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ 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