Call us 24/7: + 1(925)399 0085

Get your paper done by an expert

No matter what kind of academic paper you need, it is simple and secure to hire an essay writer for a price you can afford at StudyAcer. Save more time for yourself.

WhatsApp + 1(925)399 0085
$ 10
free
  • bibliography
  • title page
  • revisions
per page
19 k happy customers
4.7 out of 5 satisfaction rate
27 writers active

Using what you have understood in lectures and reading your course book provide answers to Problems 28 through 31 (10th Edition, page 391) or Problems 19 through 22 (9th Ed., page 367). Use the supplied SQL below to load your database with the necessary d

 

Using what you have understood in lectures and reading your course book provide answers to Problems 28 through 31 (10th Edition, page 391) or Problems 19 through 22 (9th Ed., page 367). Use the supplied SQL below to load your database with the necessary data to do this work. Note that the syntax supplied is Oracle SQL. It is recommended that you translate this into MySQL SQL syntax.

 

/* CH08_SaleCo2.SQL                                 */

/* Script file for ORACLE RDBMS                 */

/* This script file creates the following tables:      */

/* VENDOR, PRODUCT, CUSTOMER, INVOICE, LINE            */

/* and loads the default data rows              */

 

DROP TABLE LINE;

DROP TABLE INVOICE;

DROP TABLE CUSTOMER;

DROP TABLE PRODUCT;

DROP TABLE VENDOR;

 

CREATE TABLE VENDOR (

V_CODE               INTEGER,

V_NAME               VARCHAR(35) NOT NULL,

V_CONTACT     VARCHAR(15) NOT NULL,

V_AREACODE    CHAR(3) NOT NULL,

V_PHONE       CHAR(8) NOT NULL,

V_STATE       CHAR(2) NOT NULL,

V_ORDER       CHAR(1) NOT NULL,

PRIMARY KEY (V_CODE));

 

 

CREATE TABLE PRODUCT (

P_CODE        VARCHAR2(10) CONSTRAINT PRODUCT_P_CODE_PK PRIMARY KEY,

P_DESCRIPT    VARCHAR2(35) NOT NULL,

P_INDATE      DATE NOT NULL,

P_QOH        NUMBER NOT NULL,

P_MIN         NUMBER NOT NULL,

P_PRICE       NUMBER(8,2) NOT NULL,

P_DISCOUNT    NUMBER(4,2) NOT NULL,

V_CODE               NUMBER,

CONSTRAINT PRODUCT_V_CODE_FK

FOREIGN KEY (V_CODE) REFERENCES VENDOR);

 

CREATE TABLE CUSTOMER (

CUS_CODE      NUMBER PRIMARY KEY,

CUS_LNAME     VARCHAR(15) NOT NULL,

CUS_FNAME     VARCHAR(15) NOT NULL,

CUS_INITIAL   CHAR(1),

CUS_AREACODE CHAR(3) DEFAULT ‘615’ NOT NULL CHECK(CUS_AREACODE IN (‘615′,’713′,’931’)),

CUS_PHONE     CHAR(8) NOT NULL,

CUS_BALANCE   NUMBER(9,2) DEFAULT 0.00,

CONSTRAINT CUS_UI1 UNIQUE(CUS_LNAME,CUS_FNAME));

 

 

CREATE TABLE INVOICE (

INV_NUMBER           NUMBER PRIMARY KEY,

CUS_CODE      NUMBER NOT NULL REFERENCES CUSTOMER(CUS_CODE),

INV_DATE      DATE DEFAULT SYSDATE NOT NULL,

INV_SUBTOTAL    NUMBER(9,2),

INV_TAX         NUMBER(9,2),

INV_TOTAL       NUMBER(9,2),

CONSTRAINT INV_CK1 CHECK (INV_DATE > TO_DATE(’01-JAN-2010′,’DD-MON-YYYY’)));

 

 

CREATE TABLE LINE (

INV_NUMBER    NUMBER NOT NULL,

LINE_NUMBER   NUMBER(2,0) NOT NULL,

P_CODE        VARCHAR(10) NOT NULL,

LINE_UNITS    NUMBER(9,2) DEFAULT 0.00 NOT NULL,

LINE_PRICE    NUMBER(9,2) DEFAULT 0.00 NOT NULL,

LINE_TOTAL      NUMBER(9,2),

PRIMARY KEY (INV_NUMBER,LINE_NUMBER),

FOREIGN KEY (INV_NUMBER) REFERENCES INVOICE ON DELETE CASCADE,

FOREIGN KEY (P_CODE) REFERENCES PRODUCT(P_CODE),

CONSTRAINT LINE_UI1 UNIQUE(INV_NUMBER, P_CODE));

 

 

/* Loading data rows                            */

/* Turn Escape character on                             */

/* Default escape character “”                 */

Our guarantees

Study Acers provides students with tutoring and help them save time, and excel in their courses. Students LOVE us!No matter what kind of essay paper you need, it is simple and secure to hire an essay writer for a price you can afford at StudyAcers. Save more time for yourself. 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

Our Homework Writing Disciplines

With a highly diverse team in almost all academic fields including: