oracle 10g reports 3 of 4

12
7/23/2019 Oracle 10g Reports 3 of 4 http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 1/12 Table Descriptions B

Upload: sureshvitus

Post on 13-Apr-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 1/12

Table Descriptions

B

Page 2: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 2/12

Oracle Reports Developer 10g : Build Reports B-2

Table Descriptions

Overall Description

The sample company portrayed by the Oracle Database 10 g Sample Schemas operates

worldwide to fill orders for several different products. The company has several divisions:

• The Human Resources division tracks information on the company’s employees and

facilities.

• The Order Entry division tracks product inventories and sales of the company’s products

through various channels.

• The Product Media division maintains descriptions and detailed information on each

 product sold by the company.

• The Shipping division manages the shipping of products to customer.

Each of these divisions is represented by a schema. In this course, the user has access to the

objects in all of these schemas.

Page 3: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 3/12

Oracle Reports Developer 10g : Build Reports B-3

Table Descriptions

Overall Description (continued)

The Oracle Database Sample Schemas are a set of interlinked schemas. This set of schemas is

aimed at providing a layered approach to complexity:

• A simple schema (Human Resources, HR) for introducing basic topics.

• A second schema (Order Entry, OE) for dealing with matters of intermediate complexity. A

multitude of data types is available in this schema.

• The Online Catalog (OC) subschema is a collection of object-relational database objects

 built inside the OE schema.

• A schema dedicated to multimedia data types (Product Media, PM)

• A set of schemas gathered under the main schema name QS (Queued Shipping) to

demonstrate Oracle Advanced Queuing capabilities.

HR

OE

QS PM

Human Resources

QueuedShipping

Order Entry

ProductMedia

Page 4: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 4/12

Oracle Reports Developer 10g : Build Reports B-4

Table Descriptions

Human Resources (HR)

In the company’s human resource records, each employee has a unique identification number,

e-mail address, job identification number, salary, and manager. Some employees earn a

commission in addition to their salary, which is also tracked. When an employee switches jobs,

the company records the start date and end date of the former job, the job identification number,

and department.

The company also tracks information about jobs within the organization. Each job has an

identification number, job title, and a minimum and maximum salary range for the job. Some

employees have been with the company for a long time and have held different jobs within the

company. When an employee switches jobs, the company records the start date and end date of

the former job, the job identification number, and the department.

The sample company is regionally diverse, so it tracks the locations of not only its warehouses

 but also of its departments. Each of the company’s employees is assigned to a department. Each

department is identified by a unique department code and a short name. Each department is

associated with one location. Each location has a full address that includes the street address,

 postal code, city, state or province, and country code.

For each country where it has facilities, the company records the country name, currency

symbol, currency name and the region in which the county resides geographically.

Page 5: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 5/12

Oracle Reports Developer 10g : Build Reports B-5

Table Descriptions

Human Resources (HR) (continued)

Page 6: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 6/12

Oracle Reports Developer 10g : Build Reports B-6

Table Descriptions

Human Resources (HR) Row Counts

SQL> select count(*) from countries;

COUNT(*)

----------

25

SQL> select count(*) from departments;

COUNT(*)

----------

27

SQL> select count(*) from employees;

COUNT(*)

----------

107

SQL> select count(*) from jobs;

COUNT(*)

----------

19

SQL> select count(*) from job_history;

COUNT(*)

----------

10

SQL> select count(*) from locations;

COUNT(*)

----------

23

SQL> select count(*) from regions;

COUNT(*)

----------

4

Page 7: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 7/12

Oracle Reports Developer 10g : Build Reports B-7

Table Descriptions

Order Entry (OE)

The company sells several categories of products, including computer hardware and software,

music, clothing, and tools. The company maintains product information that includes productidentification numbers, the category into which the product falls, the weight group (for shipping

 purposes), the warranty period if applicable, the supplier, the status of the product, a list price, a

minimum price at which a product will be sold, and a URL address for manufacturer

information.Inventory information is also recorded for all products, including the warehouse where the product is available and the quantity on hand. Because products are sold worldwide, the

company maintains the names of the products and their descriptions in several different

languages.

The company maintains warehouses in several locations to facilitate filling customer orders.Each warehouse has a warehouse identification number, name, and location identification

number.

Customer information is tracked in some detail. Each customer is assigned an identification

number. Customer records include name, street address, city or province, country, phonenumbers (up to five phone numbers for each customer), and postal code. Some customers orderthrough the Internet, so e-mail addresses are also recorded. Because of language differences

among customers, the company records the NLS language and territory of each customer. The

company places a credit limit on its customers to limit the amount they can purchase at onetime. Some customers have account managers, whom we monitor. We keep track of a

customer's phone numbers. In this day, we never know how many phone numbers a customer

might have, but we try to keep track of all of them. Because of the language differences of ourcustomers, we identify the language and territory of each customer.

When a customer places an order, the company tracks the date of the order, the mode of the

order, status, shipping mode, total amount of the order, and the sales representative who helped place the order. This may be the same individual as the account manager for a customer, it may be different, or, in the case of an order over the Internet, the sales representative is not recorded.

In addition to the order information, we also track the number of items ordered, the unit price,

and the products ordered.

For each country in which it does business, the company records the country name, currency

symbol, currency name, and the region in which the county resides geographically. This data isuseful for tracking customers living in different geographic regions around the world.

Product Media (PM)

The company stores multimedia and print information about its products in the database.Examples of such information are:

• Promotional audio and video clips

• Product images and thumbnails for web publishing

• Press release texts

• Print media ads

• Other promotion texts and translations

Page 8: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 8/12

Oracle Reports Developer 10g : Build Reports B-8

Table Descriptions

Order Entry (OE) and Product Media (PM)

Page 9: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 9/12

Oracle Reports Developer 10g : Build Reports B-9

Table DescriptionsOrder Entry (OE) and Product Media (PMP Row CountsSQL> select count(*) from customers;

COUNT(*)

----------

319

SQL> select count(*) from inventories;

COUNT(*)

----------

1112

SQL> select count(*) from orders;

COUNT(*)

----------

105

SQL> select count(*) from order_items;

COUNT(*)----------

665

SQL> select count(*) from product_descriptions;

COUNT(*)

----------

8640

SQL> select count(*) from product_information;

COUNT(*)----------

288

SQL> select count(*) from warehouses;

COUNT(*)

----------

9

SQL> select count(*) from online_media;

COUNT(*)----------

9

SQL> select count(*) from print_media;

COUNT(*)

----------

4

Page 10: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 10/12

Oracle Reports Developer 10g : Build Reports B-10

Table Descriptions

Page 11: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 11/12

Oracle Reports Developer 10g : Build Reports B-11

Table Descriptions

Queued Shipping (QS)

The sample company has decided to test the use of messaging to manage its proposed B2B

applications. The plan calls for a small test that will allow a user from outside the firewall to

 place an order and track its status. The order must be booked into the main system. Then,

depending on the location of the customer, the order is routed to the nearest region for shipping.

Eventually, the company intends to expand beyond its current in-house distribution system to asystem that will allow other businesses to provide the shipping. Therefore, the messages sent

 between the businesses must also travel over HTTP and be in a self-contained format. XML is

the perfect format for the message, and both the Advanced Queuing Servlet and Oracle Internet

Directory provide the appropriate routing between the queues.

After the orders are either shipped or back ordered, a message needs to be sent back to

appropriate employees to inform them of the order's status and to initiate the billing cycle. It is

critical that the message be delivered only once and that there be a system for tracking and

reviewing messages to facilitate resolution of any discrepancies with the order.

For the purpose of this test application, the company utilizes a single database server and asingle application server. The application provides a mechanism for examining the XML

messages as well as looking at the queues. To demonstrate connectivity from outside the

firewall, both the generation of a new order and customer service reporting are performed using

queues. The new order application directly enqueues a queue, while the customer service

queries require XML messaging to dequeue a queue.

The users associated with this application are:   QS (Queue Shipping)

•  QS_ES (Eastern Shipping)

•  QS_WS (Western Shipping)

•  QS_OS (Overseas Shipping)•  QS_CB (Customer Billing)

•  QS_CS (Customer Service)

•  QS_ADM (Administration), and

•  QS_CBADM (Customer Billing Administration)

Page 12: Oracle 10g Reports 3 of 4

7/23/2019 Oracle 10g Reports 3 of 4

http://slidepdf.com/reader/full/oracle-10g-reports-3-of-4 12/12

Oracle Reports Developer 10g : Build Reports B-12

Table Descriptions