Create a sql script containing your data definition language (ddl)
1. Create a SQL script containing your data definition language
(DDL) statements to create your tables, views, triggers, and
other required database objects for your project. Your script
must also include queries to demonstrate that all objects are
created successfully (i.e. selecting from the database
catalog/data dictionary using user_objects and user_tables).
Additionally, you must submit a separate document that
contains the complete textual output from running your DDL
script successfully. Your score will include the evaluation of
this output report as well as a live, error-free expected run of
your script in the environment. Within your DDL SQL script,
the following minimum requirements must be met:
Data Definition Language (DDL) SQL Script Minimum
Requirements:
1. Drop Statements for All Objects as needed (5 points)
At the beginning of your script, ensure that all objects that are
required to be dropped are properly dropped.
2. Create/Alter Statements for All Tables and Constraints (30
points)
In an order that is appropriate for repeated executions, ensure
that all tables and constraints are properly created and/or
altered.
3. Create Indexes for Natural, Foreign Key, and Frequently
Queried Columns (10 points)
Unlike primary keys which have unique indexes created
automatically, you must create indexes for ever natural key that
is not included in the primary/composite key as well as all
foreign keys and frequently queried columns. Note: you may not
yet have queries built for your database yet but you will during
project part 4. Keep this in mind as you will need to create
indexes to support these queries.
4. Create a Minimum of Two Views (10 points)
You are required to create at least two views though it is
recommended that you create the number of views that is most
2. appropriate to support your business requirements.
5. Create a Minimum of Two Sequences (10 points)
You are required to create at least two sequences though if you
are using surrogate keys this number will at least be equal to the
number of entities that use said keys.
6. Create a Minimum of Two Triggers (10 points)
You are required to create at least two triggers though the
number of triggers should exceed this minimum if more than
two sequences are deployed and to accommodate the automatic
population of the auditing columns (see next requirement).
7. Describe the Business Purpose of your Views and Triggers (5
points)
Using comments in your SQL script, before each view and
trigger provide a description of what business purpose or
function they provide. Recommend that you also begin
incorporating this data back into your SOW and Requirements
Definition document as necessary in preparation for submitting
your consolidated lab report during project part 4.
8. Database Catalog/Data Dictionary Queries (5 points)
Demonstrate the successful creation of all aforementioned
objects by querying the database catalog/data dictionary; see the
Project Learning Demonstration for examples.
9. Output Report (5 points)
All output from the execution of the statements in requirements
1 through 8 must be recorded and saved into an output report.
10. Executable, Error-Free Script (10 points)
The script you submit must fully execute and be error-free.
Project Step #3 Deliverables
1. DDL Script in SQL or TXT:
LastName_FirstName_DDL.[sql|txt]
2. Script Output Report:
LastName_FirstName_output.[doc|docx]
Note: the database catalog/data dictionary queries you write are
considered DML statements not DDL. Despite this fact, for
clarity the entire deliverable is classified as your DDL script.
Please ensure that you include these queries at the bottom of
3. your DDL script as required above.
SOW1
Statement of Work
Overview:
This project will oversee the design and creation of the database
to track and store information about passing/failing students in
four years of medical school in each subject. It will serve as the
data store that enables schools to browse the information to see
the process of students in each subject: Anatomy/Embryo,
Histology, Pathology, Pharmacology, Microbiology, Genetics,
Biochemistry, Physiology, and Social Science. In addition, this
database helps the schools see if any challenges at each subject
cause the students not to reach the passing score and create a
new pathway to increasing the number of students passing the
subjects.
Executive Summary:
The database will create full picture of how students perform in
each subject and how the knowledge is delivered to the
students. The database will also help the professors/school see
where the student stands in the subject that there may be
something that they can help or change to increase the number
of students successful in the subject. Students will be able to
use unlimited many different sources to study, unlimited
sources for Question banks. The database should be designed to
allow for the easy addition of new search criteria and maintain
the school to improve the number of students passing the
subject. From the database, professors/schools will be a better
picture of the challenges that students might face that affect the
performances.
Project Scope:
This database system is designed to store performance
4. information of students in each subject of medical school. This
creation can show the complete picture of if anything might
affect the performances which school can help improve or fix
the problems. In scope, work will include documenting the
project requirements, modeling the database in entity-
relationship form. The creation of DML scripts to simulate the
interaction between databases, challenges in each subject, and
improve pathways.
· The number of students who do not reach the passing score in
each subject
· The challenges that those students have during their studying
· The sources they use to study(books, questions bank, lecture
PowerPoint)
· The pathway to help students improve their performances
Database Benefits, Goals, Expectation:
Upon completing the project, the database shall contain all
the essential information( challenges) students face in each
subject. In addition, this project might give ideas for students to
change the way of approaching the subjects, and
professors/schools to have a better way to deliver the
information to the students. Deliverables include this statement
of work document, an entity-relationship diagram defining the
structure of the database, DDL scripts for creating the database,
DML and SQL scripts that demonstrate proper usage of the
database, and a final report on the project as a whole.
Project Hardware and Software Tools:
· ER-Assistant, running on Mac
· Microsoft Office, running on Mac
· Oracle Database by using Virtual Desktop Access(VDA)
· Google Chrome
· DDL and DML
After creating the ERD, I will use the Data Definition Language
to create the database structure and define the information for
this project. The initial database tables will include the number
5. of pass/fail students in each subject, the challenge students face
in each subject, the sources they use during studying, the
recommendations from professors. I will also use the Data
Manipulation Language (DML) to insert rows of information
regarding the students' information and improve their
performances.