Sql select ename deptno sal 2 from emp 3 order by

  • No School
  • AA 1
  • 28

This preview shows page 25 - 28 out of 28 pages.

SQL> SELECT ename, deptno, sal 2 FROM emp 3 ORDER BY deptno, sal DESC; ENAME DEPTNO SAL ---------- --------- --------- KING 10 5000 CLARK 10 2450 MILLER 10 1300 FORD 20 3000 ... 14 rows selected.
Image of page 25

Subscribe to view the full document.

2-26 Copyright Oracle Corporation, 1998. All rights reserved. Summary Summary SELECT [DISTINCT] {*| column [ alias ], ...} FROM table [WHERE condition(s) ] [ORDER BY { column, expr, alias } [ASC|DESC]];
Image of page 26
2-27 Copyright Oracle Corporation, 1998. All rights reserved. Practice Overview Practice Overview Selecting data and changing the order of rows displayed Restricting rows by using the WHERE clause Using the double quotation marks in column aliases Selecting data and changing the order of rows displayed Restricting rows by using the WHERE clause Using the double quotation marks in column aliases
Image of page 27

Subscribe to view the full document.

2-28 Copyright Oracle Corporation, 1998. All rights reserved.
Image of page 28
  • Fall '19

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