Building The Physical Model

Building The Physical Model
Lab 3 of 7: Building the Physical Model

Your assignment is due by Sunday, end of week, 11:59 p.m. (MT). Submit your assignment to the Dropbox located on the silver tab at the top of this page. For instructions on how to use the Dropbox, please click here.

L A B O V E R V I E W
Scenario/Summary

Beginning with this lab, and continuing through the remaining weeks you will be doing all of your work in Oracle itself. The editor interface to the Oracle server is SQL*Plus, and by now you have received your logon id and password and should have at least made sure you can connect. If for any reason you have not done so, please do so now before continuing any further. If for any reason you cannot connect then you need to let the instructor know ASAP so that any problems can be resolved.

Before attempting Lab #3, you need to be sure you have read through the SQL*Plus tutorial which can be found in Doc Sharing as well as under the SQL*Plus Tutorial tab in Week 3. This tutorial describes the functionality of the editor and will step you through the process of setting up and using the SQL*Plus in the iLab environment so that it will best serve your needs for the remainder of the labs required for this course.

The lab for this week addresses taking a logical database design (data model) and now transforming that into a physical model (tables, constraints, and relationships). As part of the lab, you will need to download the ZIP file titled “Lab 3 Support Document” from Doc Sharing. This ZIP file contains three documents: Lab 3 Relationship Diagram.doc, Lab 3 Meta Data Diagram.xls, and Lab 3 Input Data.doc. Your job will be to take the meta data defined in the data dictionary spreadsheet document, and using the relationship diagram as a guide define the table structures and constraints using both CREATE TABLE and ALTER TABLE statements. Once this has been done, you will need to write the INSERT INTO TABLE statements to insert the data provided into the table. The data should verify that the constraints you have created are valid and define the correct referential and data integrity constraints asked for.

Narrative/Case Study

For this lab you be working with command-line SQL to build a series of relational of tables, using SQL CREATE statements in a script file format for the Student Database and then populate those tables through the use of INSERT statements with sample data.

You will need to create a script file and name it mystudentdb.txt containing the following code:

The drop table statements listed later in the specifications of this lab.
The CREATE TABLE statements required to build the seven (7) tables.
The INSERT statements necessary to insert all of the sample data.
Seven select statements to verify that the data is in the tables and accessible.
To help you accomplish this task successfully you are being supplied with the following three documents which can be found in the Doc Sharing tab on the course web site:

A Relationship Diagram of the database showing in graphical form the 1-M relationships between the tables (336_Lab3_Relationship_Diagram.doc).
A Meta Data chart providing information about table names, column names, etc. Be sure to follow this reference exactly when constructing your CREATE TABLE statements (336_Lab3_Data_Dict.xls).
A listing of sample data to use when writing the INSERT statements to populate the tables (336_lab3_input_data.doc).
The following guidelines are being provided to help assist you in creating your script file:

Create the tables in the order shown in the data dictionary. Use the names for the tables and columns as listed in the Meta Data chart – DO NOT CHANGE THEM AS IT WILL AFFECT YOUR GRADE.
Creating CONTRAINTS –
Create all constraints as indicated in the data dictionary.
Constraint prefixes must be as follows:
Primary key constraint – PK
Foreign key constraint – FK
Check constraint – CC
Explicitly name all constraints PRIMARY KEY, FOREIGN KEY, and CHECK constraints to reflect:
ConstraintPrefix_TableName_ColumnName (For example, to name a PRIMARY KEY constraint on the SID column in the student table you would use PK_STUDENT_SID.)
For this lab you do not have to explicitly name NOT NULL constraints
Create all PRIMARY KEY and NOT NULL constraints within the CREATE TABLE statements at the column level (line level), unless the Primary Key is a combination Primary Key (yes, there is one). Combination Primary Key constraints must be created at the table level.
Create all FOREIGN KEY and CHECK constraints at the table level using ALTER TABLE statements.
All constraints must be added prior to populating the tables with data.
Create all of the tables and all of the constraints before populating any of the tables with data.
Insert statements must be in the same order as the tables are created (follow the order in the sample data file).
ALL character strings must be enclosed in single quotes. This includes alpha strings and alphanumeric (remember that any formatting within a numeric strings makes it alphanumberic).
If you are inserting a NULL, do not enclose the word NULL in single quotes, as this will insert the word NULL into the row. To insert a null you simply use the word NULL.

Deliverables

The deliverable for this lab will include the following documents.

Your script file. Make sure your name is in a comment area at the top of the script file.
Your lab output file created using a spool session in SQL*Plus. Be sure to use the SET ECHO ON session command when creating the output files so that both the SQL commands and results will show in the output.
Be sure your name is on all documents and that all documents have been included in a single ZIP file for this weeks assignments.

L A B S T E P S

STEP 1: The DROP statements

The following DROP TABLE statements must appear at the top of your script file. This will allow you to run and re-run your script file as often as you need to. The first time you run your script file you will get an ERROR on the drop statements say the Table or View does not exist. This is true since it has not been created yet, but the error is more informational than anything. After the first time you will not get this error again.

DROP TABLE ENROLLMENT CASCADE CONSTRAINTS PURGE;
DROP TABLE COURSE_SECTION CASCADE CONSTRAINTS PURGE;
DROP TABLE COURSE CASCADE CONSTRAINTS PURGE;
DROP TABLE TERM CASCADE CONSTRAINTS PURGE;
DROP TABLE STUDENT CASCADE CONSTRAINTS PURGE;
DROP TABLE FACULTY CASCADE CONSTRAINTS PURGE;
DROP TABLE LOCATION CASCADE CONSTRAINTS PURGE;

STEP 2: The CREATE TABLE statements

Next, define the CREATE TABLE statements for the seven tables that you are to create based upon the ERD and Data Dictionary that you have been given for this lab. Be sure to follow the guidelines given above on how and where to create the different types of constraints for each table.

STEP 3: The INSERT statements for the data

The final step of the lab will be to create the insert statements to insert the sample data into the tables created in Step 2. You might find it helpful to take the word document containing the sample data and save it as a text file. After doing this you could create the insert statements around the actual data that is in that file. The process for doing this should have been cover in one of the lectures for this unit. If it was not then ask your instructor to discuss this process with the class.

STEP 4: Testing and verifying your script

Now we come to the point of verifying that your script file works by creating all of the tables and inserting all of the data. To verify this you will need to create a output file and capture the results being returned to the session by using the spool COMMAND outlined in the tutorial “Using Oracle SQL*Plus”. This output file will be one of the files you will be turning in for grading.

This is the end of lab #3

Custom Thunderbird Addon

Custom Thunderbird Addon
I need a custom addon written for Thunderbird, it must work in Thunderbird 2.0.0.23 on Linux, it is to provide a way to have custom, editable headers which have default values when writing emails, different ones for each identity, with a user interface to configure it, delivered as a usual .xpi file.

The addon will:

* When you compose a new message, custom headers will automatically be populated in the headers area of the new message, with configured default values if any. In the same manner as the “normal” headers for To, Cc, Bcc, Reply-To etc do.

* As well as being added automatically, the user must be able to add extra copies of the header, in the same way as the user can add multiple “To” headers to an email.

* These custom headers if they were added automatically or manually can be edited, and removed, in the same manner as the normal headers.

* Each identity may have it’s own custom header configuration, both which custom headers will be put in place, and the default value if any for them.

* Each custom header will have an option for each identity to require the header, that is, if a message is sent from an identity without the header, it will prompt the user to enter the header, or to “skip the header this time”.

* Each custom header will have an option for each identity to add the header automatically, if the the optioin is not selected the header is not added automatically, but the user can select it, in the same manner as the user can select to add a “Reply-To” header normally.

* The addon will have a configuration interface to configure the addon, that is for each identity to specify the desired custom headers, the default values for them, and if the header is “required”.

* The addon must be able to install and uninstall cleanly through the usual “.xpi” installation process.

* The addon must work with Thunderbird 2.0.0.23 on Linux

Altermed

Altermed
We need 25 articles on alternative medicine at the latest 27 March.Budget $75. Each article should have 300-500 words of good English grammar and be of original content. A sample article with key words provided is required from you to be considered. All rights to articles when accepted pass to us.Please give price for completed job if all terms are agreeable.
Happy bidding.

Perfect English Writing

Perfect English Writing
I am looking for someone who can research a topic and write 300-400 word documents summarizing the content. I will provide the URL, you must read, understand and write something unique and interesting.

Submit 2-3 writing samples for consideration.

This project is for 10 documents as a start but there is an opportunity for up to 10 articles per day. Documents must be written in a timely manner and the quality must be perfect.

I can pay up to $3 per 400-500 word document.

Answer Questions

Answer Questions
hi

I currently have another project for you. I have 100 questions on detox and different ailments. You have to answer each in 5 lines. I also would require a rewrite of each answer.

The questions are repeated badly. So I need to have answers that are free from plagiarism. the rewrites should be in totally different words. The work is too simple and I need your bid for 100 questions. First 5 as sample would suffice.

If you do well I can give you more work

Write 40 Articles – 40dols

Write 40 Articles – 40dols
This is a sample project to evaluate your skills. I will give you 20 domain names, and I need you to write or “spin” two articles for each using long tail key phrases as titles (that YOU CHOOSE based upon the words in the domain).

I typically pay one dollar per article for this.

The 20 websites are parked keyword oriented domains, and on each one, I need you to:

1. RESEARCH: Use WordTracker or KeywordIndex and type in the domain words, and find two longtail phrases (with one or two more words) that are highly searched but do NOT have a lot of articles on the subject. For instance, if the domain is icecream.com, you might write articles on “vanilla ice cream” and “ice cream sandwich.”

2. WRITE: Write two 100% original grammatically correct articles, 500 words each. If you “spin” existing content, you must use as a source your own works or non-copyrighted material, and the final article MUST make sense.

3. UPLOAD: Upload the two keyword articles as TEXT ONLY (no formatting) to my parking service, using the keyphrase the title and bold the use of the target key phrase and TWICE inside the article.

All bids are private. Your articles MUST be grammatically correct and pass copyscape.com (We will test/review before final payment).

I have several hundred domains and intend to hire more than one person for this. If your content is good, there is a lot more work here. If you prove that in the keyword research phase, you can find phrases that are high CPC and rankable, I am willing to pay more for your skills on future projects.

Fictitious Stories

Fictitious Stories
JOB-DESCRIBING:

I am looking for high quality writers with a good, funny fantasy, writing 12 short stories with the subject “This could be your Success-Story”.

Interesting, fanciful and exciting stories with the right impact, easy to read, believable (also unbelievable) and funny!

Each Story approximately between 250 and 500 characters long about people / members which became success through a website. (Getting a dream job, an easy income, improvement of their life, etc.)

I’ll pick more then one writer for this job. Each writer has to deliver 12 Stories. (Later more!)
Selected bidders / writers will get a brief description what it is about, before I award this project.

Selected writers have to provide 3 sample stories. I’ll have all the sole rights on this stories and I’ll pay you a flat fair amount for each story which will be used on my website!

PAYMENT: 100% Escrow immediately after your acceptance of my order.

REQUIREMENTS: (These are parts of our agreement so please take it seriously!)

It must be written by a NATIVE ENGLISH SPEAKING writer with 100% correct grammar and punctuation.

Your work will be reviewed through CopyScape and Plagiarism Detect for plagiarism. If the work you submit to me does not pass the plagiarism test, and/or has spelling and punctuation mistakes, you will not be paid until it is corrected in time (48 hours) and resubmitted to me for approval.

I will not be able to pay if all requirements in this listing aren’t met, so please don’t bid if you can’t meet these requirements. You agree that after sending me the stories all rights belongs to me. This means you will not sell, reproduce or re-use these work in any way.

Please be able to communicate via email or MSN messenger when necessary.

This project has to be finished within 4 calendar-days after awarding. If you are not able to complete this work within this time please DON’T BID!!! Failure to complete this project in time results in a cancellation of the project and a negative rating on your account! Please be aware that I’ll award this project very soon and that you have to be ready!

Part of our agreement is that you are agree that I can reject any escrow money at SL and you agree that the money is released immediately if you do not meet the requirements.

Thank you.

Mobile Phone Sim Card Articles

Mobile Phone Sim Card Articles
I’m looking for a good writer to write me 450 words, 10 articles on British phone and sim cards.

Keywords will be provided and features to write about.

The writer must be familiar with mobile phones and sim cards. Ability to proof and demonstrate you’re familiar with british mobile phones and sim cards will be a huuuuge advantage.

I would love to see your sample work or else your bids won’t be considered.

This job is to be completed in 3 days.

Cisco Ccna Lessons Needed

Cisco Ccna Lessons Needed
This project is for 30 lesson based articles about the Cisco CCNA certification. These lessons need to be highly technical following along the Cisco CCNA certification syllabus.

Each lesson article can vary in length however should be approximately 700 words in length and be at least 10-30% unique.

It is extremely important that the author is capable of writing in fluent conversational English with attention to grammar.

Prefer a technical writer and someone who is very familiar with Cisco Systems CCNA certification.

The intent is to build and entire course for the Cisco CCNA. Each month 30 more lessons will need to be created, long term opportunities do exist.

I would also consider the purchase of an entire course that has been re-written.

Each month 30 more articles will need to be written until the entire project is completed.

I look forward to any and all questions.

Thanks
Joe

City Review Articles Needed

City Review Articles Needed
I’m looking for a proffesional writer to help me write 16 review articles on American cities in 5 days. This review includes , restaurant reviews, attractions and others.

Samples and detailed job description will be given. I am ready to pay $3 per article.

You must show me samples of your work on your bids. I would only select writers who’ve done so.

The articles are 500 plus words each. The bid winner must be able to complete 16 articles in 5 days.

Seo Article Writing/posting

Seo Article Writing/posting
I’ll supply you with some articles and some sources of information, you write new articles and post them online with a link back to specified pages on a website.

You can write totally new articles or you can use the existing content to rewrite articles with similar information. I have about 10 articles that I’ve used already on topics related to Internet marketing for a specific country that you can use for information. Some of these articles are already pretty good and some aren’t so great. I’m already submitting to ezinearticles.com so please use other sources.

This is to be done over a 60 day period. I want an average of 5 links per day – 300 links in total.

Please tell me the following:
– Where the articles will be posted.
– What process you will use to write the articles. (Will you write new ones, rearrange the existing ones? How unique will the articles be?)
– Your experience using articles for SEO.
– Your experience with writing.

Note: I will not consider your proposal unless it is actually a proposal for this project. For the last project I posted I got almost nothing but form messages.

Article Writer Beauty Niche

Article Writer Beauty Niche
I’m looking for a good article writer for beauty and health related articles.

I’m looking for someone who is interested in this area and can write high-quality cohesive articles that are well researched.

I want a female writer from the Phillippines.

Ideally you will understand SEO and if you also have experience with creating web 2.0 profiles and bookmarking that would be a plus (for future work).

The first assignment will be for 3 articles and if the quality is good there will be more.

Review Writer Needed

Review Writer Needed
Hi,

I’m looking for someone that can write a review about a product.
The product is in the internet category.

– at least 1.000 words
– well researched
– written for readers, not too technical written
– has to presell the product
– Perfect English
– 100% unique
– has to pass CopyScape

Please provide proof of previous review work.

We will supply you with the keywords we want in this review.
Main keyword + related keywords.