Difference between revisions of "Oracle"

From mi-linux
Jump to navigationJump to search
Line 10: Line 10:
 
</code>
 
</code>
  
There will be exercises for you to try out too. In most cases you will be given the results you are aiming for. These will also be presented in a blue font. For example:
+
There will be exercises for you to try out too. In most cases you will be given the results so you can check your answer. These will also be presented in a blue font, for example:
  
 
<pre style="color: blue">
 
<pre style="color: blue">

Revision as of 13:36, 19 February 2016

Main Page >> Oracle and SQL

Oracle 12c Version 12.1.0.1.0

The purpose of this handout is to introduce using SQL from the Oracle database management system (DBMS). It is intended to be supplemented by a lecture course.

Commands to try out are in a box, for example:

SELECT * FROM DEPT;

There will be exercises for you to try out too. In most cases you will be given the results so you can check your answer. These will also be presented in a blue font, for example:


    DEPTNO DNAME          LOC
---------- -------------- -------------
        10 ACCOUNTING     NEW YORK
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
        40 OPERATIONS     BOSTON

Things to note:

  • when running the commands in Oracle you will need to press RETURN after each line.
  • the order of the results may differ from yours. The key thing is that you have the same rows, but not necessarily in the same order.


Menu options (Windows) that involve more than one step will be shown as a sequence, separated by the greater than symbol (>), for example:

 File>Open

Means select File from the main Window menu then Open from the submenu



If you spot any errors in this workbook, please inform the Oracle DBA: Mary Garvey