Using Oracle

Physical modelThe relation database we will use in this unit is Oracle. This topic looks at:

  • Why use Oracle? - discusses the rationale for using Oracle
  • Retrieving information from a database - introduces the command language, SQL, used by relational databases
  • "Oracle9i" provides an overview of Oracle

 

Why use Oracle?

Oracle logo Oracle was chosen as it is widely used in industry for medium to large scale projects. The choice of database package is actually not that important. What is important are the concepts and methodology of database modelling, construction and use. If you understand this, the database package will not matter.

Microsoft AccessStudents sometimes ask why we are not using Access, another common database application. Generally Access is only suitable for small projects and its setup is atypical of many relational databases. However, the skills covered in this unit will be applicable to Access.

 

Retreiving information from a database

The first task in Oracle will be to retrieve some information from the INVOICE database. To do this we will use the SELECT query.

SELECT can be used to answer very complex queries. A range of possibilities will be covered during the unit, however the next reading covers only a simple query which we will use in the Getting your hands dirty section.

 

Getting your hands dirty

Running your first query

1. Find out about The Oracle set up you will be using in this unit

2. Log on to Oracle

3. Changing your password 

4. Find out how to run an SQL statement

Now write the SQL statements for these queries:

5. Display the ITEM table

Show me

SELECT *
FROM ITEM;

6. Find all the customer names

Show me

SELECT CustName
FROM CUSTOMER;

7. Find all customer names and ABN numbers

Show me

SELECT CustName, CustABN
FROM CUSTOMER;