Tutorial: Creating Objects for a Small Database

In this tutorial, you will use SQL Developer to create objects for a simplified library database, which will include tables for books, patrons (people who have library cards), and transactions (checking a book out, returning a book, and so on).


Tip:

To print this tutorial, right-click its book icon in the Help Contents display and select Print Topic Subtree.

The tables are deliberately oversimplified for this tutorial. They would not be adequate for any actual public or organizational library. For example, this library contains only books (not magazines, journals, or other document formats), and it can contain no more than one copy of any book.

You will perform the following major steps:

Creating a Table (BOOKS)

Creating a Table (PATRONS)

Creating a Table (TRANSACTIONS)

Creating a Sequence

Inserting Data into the Tables

Creating a View

Creating a PL/SQL Procedure

Debugging a PL/SQL Procedure (optional)

Using the SQL Worksheet for Queries (optional)


Note:

To delete the objects that you create for this tutorial, you can use the DROP statements at the beginning of the script in Script for Creating and Using the Library Tutorial Objects.

Related Topics

Script for Creating and Using the Library Tutorial Objects

SQL Developer Concepts and Usage

SQL Developer User Interface

Database Objects