Pages

Saturday, May 22, 2010

Step 3 – Apex Developer Day - Adding a Master Table

 

To make the project name maintainable and to be able to track other information about a project, you can move the Project information into a separate table. Perform the following steps:

1.

Click the Table tab.

clip_image002

2.

Click Create Lookup Table button.

Information: A lookup table is nothing but a 'lookup' it give values to referenced table (it is a reference) it is used at the run time it saves joins and space in terms of transformations. Example a lookup table called states provide actual state name ('Texas') in place of TX to the output.

clip_image004

3.

To specify the column on which the master table is to be created, select PROJECT - varchar2, and click Next .

clip_image006

4.

Enter the following values, and click Next >.

New Table Name: APEX_PROJECTS_LOOKUP
New Sequence: APEX_PROJECT_LOOKUP_SEQ

clip_image008

5.

Click Finish.

clip_image010

6.

Notice that the new APEX_PROJECT_LOOKUP table contains a numeric primary key along with the PROJECT column.

clip_image012

7. We can validate what sequences has been created. Select Sequences as the objects to be searched

clip_image014

We can see the sequences APEX_PROJECT_LOOKUP_SEQ

clip_image016

No comments:

Post a Comment