Question: * * Please Solve All, Post Scripts, and Screenshots * * The assignment is to create a SQL script in Oracle SQL Developer Data Modeler
Please Solve All, Post Scripts, and Screenshots
The assignment is to create a SQL script in Oracle SQL Developer Data Modeler and run it into Oracle APEX. Here are the steps and deliverables.
Access Oracle SQL Developer Data Modeler and create a new Design. Perhaps name it "Student Database Example"
Add two tables to the design in the Logical Model. Call them "Class" which is the transactional table and "Professors" which is the code table Add a field for the name Class Name and Professor Name to each table as a VARCHAR field. Each table should have primary key CLASSID PROFESSORID which is numeric. Add a date field DATECLASSSTART, DATEPROFESSORHIRED to the tables also. And the "Class" table should have a column for "Professor" also which should be a number field All of this is done in the Table Properties area using the "Columns" dialouge box.
Create a PKFK relationship between the two tables using the Professor data point. You do this in the Table Properties area in the Foreign Keys dialouge box.
Engineer this forward to the Relational Model using the icon on the top of the screen with the two right arrows following the prompt
From the Relational Model, use the DDL File Editor under the View menu to generate the CREATE TABLE and ALTER TABLE scripts.
Copy those SQL statements should be two CREATE TABLE statements and three ALTER TABLE statments two for the table primary keys and one for the foreign key to a text file.
Save the text file as a SQL file and run the script in Oracle APEX to create the tables in APEX.
The deliverables for this which can be saved to the assignment are:
Screenshot of the Logical model in SQL Developer
Screenshot of the Relational model in SQL Developer
The saved SQL statement as a text file.
A screenshot of the SQL statement output creating the two files in Oracle APEX
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
