Locate and open the Oracle 11.2 SQL Reference Manual online. Keep this open so you can easily…

Locate and open the Oracle 11.2 SQL Reference Manual online. Keep this open so you can easily find examples for your exam. Find an example of the INSERT statement. Simply cut and paste an example of INSERT from the documentation here: (5 points)

SELECT title, pubdate

FROM books

Assume you are the manager of a retail chain of stores. You wish to store data about all of your stores and the employees who are assigned to each store. Draw an E-R diagram which represents the relationship between the entities, STORE and EMPLOYEE. (An employee can only be assigned to one store at a time). Use the space below and simply draw it freehand or use your favorite editor to draw it and paste into the document. (5 points)

Create tables for the two entities STORE and EMPLOYEE including primary, foreign key, and other integrity constraints as directed below. Please ADD YOUR FIRST AND LAST INITIAL TO THE TABLE NAMES like STORE_MG and EMPLOYEE_MG.

You MAY use separate ALTER TABLE commands to add the constraints or you may put it all together in a single command for each table as it is created.

STORE_xx table columns: (10 points)

store_number (PK)

store_name not null

street_address

zip_code

grand_open_date – use today’s date as the default value

CREATE TABLE STORE

( store# NUMBER(2),

store_name VARCHAR2 (10) NOT NULL,

store_address VARCHAR2 (20),

zip_code NUMBER(4),

CONSTRAINT store_number_pk PRIMARY KEY (store#),

CONSTRAINT store_name_uk UNIQUE (store_name) );

EMPLOYEE_xx table columns: (10 points)

Employee number (PK)

Lastname not null

Firstname

Birth_date

Store_number (FK)

Hr_rate( MUST be greater than 7.50)

CREATE TABLE EMPLOYEE

( employee# NUMBER(4),

emlastname VARCHAR2 (20) NOT NULL,

emfirstname VARCHAR2 (20),

store# NUMBER(2),

CONSTRAINT employee#_pk PRIMARY KEY (employee#),

CONSTRAINT store#_fk FOREIGN KEY (store#) );

INSERT at least three rows for your STORE_xx table. (10 points)

Create a sequence, EMPL_SEQUENCE_xx, that begins with 1000 and increments by 10 and uses all other defaults. Use your initials instead of the xx in the sequence name. (5 points)

Select the current value of your sequence. Credit is given for the correct command – it does NOT matter what the output value of the sequence is as long as it is displayed along with the correct command. (3 points)

Using the INSERT statement, provide at least three rows for your EMPLOYEE_xx table. (10 points). Use the sequence you created earlier as the value for the employee ID. (2 points)

Add a column to your EMPLOYEE_xx table which can be used to store each employee’s zip_code. (10 points)

Update two rows in the EMPLOYEE_xx table and assign a zip_code. (you MAY use 2 statements) (10 points)

Delete one of your rows from the EMPLOYEE_xx table. Your choice which one. (10 points)

Drop your EMPLOYEE_xx table and make sure it HAS been purged from the recyclebin. (10 points)

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!