Question: DROP VIEW bb _ basketitem _ vu;DROP VIEW bb _ ship _ vu;DROP TABLE bb _ department CASCADE CONSTRAINTS;DROP TABLE bb _ product CASCADE CONSTRAINTS;DROP
DROP VIEW bbbasketitemvu;DROP VIEW bbshipvu;DROP TABLE bbdepartment CASCADE CONSTRAINTS;DROP TABLE bbproduct CASCADE CONSTRAINTS;DROP TABLE bbproductoption CASCADE CONSTRAINTS;DROP TABLE bbproductoptiondetail CASCADE CONSTRAINTS;DROP TABLE bbproductoptioncategory CASCADE CONSTRAINTS;DROP TABLE bbbasketitem CASCADE CONSTRAINTS;DROP TABLE bbbasket CASCADE CONSTRAINTS;DROP TABLE bbshopper CASCADE CONSTRAINTS;DROP TABLE bbbasketstatus CASCADE CONSTRAINTS;DROP TABLE bbtax CASCADE CONSTRAINTS;DROP TABLE bbshipping CASCADE CONSTRAINTS;DROP TABLE bbpromolist CASCADE CONSTRAINTS;DROP TABLE bbpromo CASCADE CONSTRAINTS;DROP TABLE bbtest CASCADE CONSTRAINTS;DROP TABLE bbtest CASCADE CONSTRAINTS;DROP TABLE bbprodsales CASCADE CONSTRAINTS;DROP TABLE bbshopsales CASCADE CONSTRAINTS;DROP TABLE bbauditlogon CASCADE CONSTRAINTS;DROP TABLE bbproductrequest CASCADE CONSTRAINTS;DROP TABLE bbblocktest CASCADE CONSTRAINTS;DROP TABLE bbtranslog CASCADE CONSTRAINTS;DROP SEQUENCE bbprodidseq;DROP SEQUENCE bbshopperseq;DROP SEQUENCE bbpoptionseq;DROP SEQUENCE bbidbasketseq;DROP SEQUENCE bbidbasketitemseq;DROP SEQUENCE bbstatusseq;DROP SEQUENCE bbprodreqseq;CREATE TABLE BBDepartment idDepartment number DeptName varchar DeptDesc varchar DeptImage varchar CONSTRAINT deptidpk PRIMARY KEYidDepartment;insert into bbdepartment values'Coffee','Many types of coffee beans','coffee.gif';insert into bbdepartment values'Equipment and Supplies','Coffee makers to coffee filters available','machines.gif';insert into bbdepartment values'Coffee Club','Benefits of our club membership?'club.gif';CREATE TABLE BBProduct idProduct number ProductName varchar Description varchar ProductImage varchar Price number SaleStart date, SaleEnd date, SalePrice number Active number Featured number FeatureStart date, FeatureEnd date, Type char idDepartment number CONSTRAINT prodidpk PRIMARY KEYidProduct CONSTRAINT prodidDeptfk FOREIGN KEY idDepartment REFERENCES BBDepartment idDepartment;insert into bbproductidProduct type, ProductName, Description, ProductImage, Price, Active, idDepartment valuesE'CapressoBar Model # 'A fully programmable pump espresso machine and cup coffee maker complete with GoldTone filter', 'capresso.gif', ; insert into bbproductidProduct type, ProductName, Description, ProductImage, Price, Active, idDepartment valuesE'Capresso Ultima', 'Coffee and Espresso and Cappuccino Machine. Brews from one espresso to two six ounce cups of coffee', 'capressogif', ; insert into bbproductidProduct Type, ProductName, Description, ProductImage, Price, Active, idDepartment valuesE'Eileen cup French Press', 'A unique coffeemaker from those proud craftsmen in windy Normandy. 'frepress.gif', ; insert into bbproductidProduct Type, ProductName, Description, ProductImage, Price, Active, idDepartment valuesE'Coffee Grinder', 'Avoid blade grinders! This mill grinder allows you to choose a fine grind to a coarse grind. 'grind.gif', ; insert into bbproductidProduct Type, ProductName, Description, ProductImage, Price, Active, idDepartment valuesC'Sumatra', 'Spicy and intense with herbal aroma. 'sumatra.jpg; insert into bbproductidProduct Type, ProductName, Description, ProductImage, Price, Active, idDepartment valuesC'Guatamala', 'heavy body, spicy twist, aromatic and smokey flavor. 'Guatamala.jpg; insert into bbproductidProduct Type, ProductName, Description, ProductImage, Price, Active, idDepartment valuesC'Columbia', 'dry, nutty flavor and smoothness', 'columbia.jpg; insert into bbproductidProduct Type, ProductName, Description, ProductImage, Price, Active, idDepartment valuesC'Brazil', 'wellbalanced mellow flavor, a medium body with hints of cocoa and a mild, nutlike aftertaste', 'brazil.jpg; insert into bbproductidProduct Type, ProductName, Description, ProductImage, Price, Active, idDepartment valuesC'Ethiopia', 'distinctive berrylike flavor and aroma, reminds many of a fruity, memorable wine. 'ethiopia.jpg; insert into bbproductidProduct Type, ProductName, Description, ProductImage, Price, Active, idDepartment valuesC'Espresso', 'dense, caramellike sweetness with a soft acidity. Roasted somewhat darker than traditional Italian. 'espresso.jpg;CREATE SEQUENCE bbprodidseq start with ;Alter table bbproduct ADD stock number ordered number reorder number;UPDATE bbproduct SET stock ordered reorder WHERE idproduct ;UPDATE bbproduct SET stock ordered reorder WHERE idproduct ;UPDATE bbproduct SET stock ordered reorder WHERE idproduct ;UPDATE bbproduct SET stock ordered reorder WHERE idproduct ;UPDATE bbproduct SET stock ordered reorder WHERE idproduct ;UPDATE bbproduct SET stock ordered reorder WHERE idproduct ;UPDATE bbproduct SET stock ordered reorder WHERE idproduct ;UPDATE bbproduct SET stock ordered reorder WHERE idproduct ;UPDATE bbproduct SET stock ordered reorder WHERE idproduct ;UPDATE bbproduct SET stock ordered reorder WHERE idproduct ;UPDATE bbproduct set salestart JUN saleend JUN SalePrice WHERE idProduct ;CREATE TABLE bbProductrequest idRequest NUMBER idproduct number dtrequest DATE DEFAULT SYSDATE, dtrecd DATE, cost number qty number idvender number CONSTRAINT prodreqidpk PRIMARY KEY idrequest CONSTRAINT prodreqidprodfk FOREIGN KEY idProduct REFERENCES bbproduct idproduct;CREATE TABLE BBShopper idShopper number FirstName varchar LastName varchar Address varchar City varchar State char ZipCode varchar Phone varchar Fax varchar Email varchar UserName varchar Password varchar Cookie number DEFAULT dtEntered date DEFAULT SYSDATE, Province varchar Country varchar CONSTRAINT shopperidpk PRIMARY KEYidShopper;create sequence bbshopperseq start with ;insert into bbshopper values 'John', 'Carter', Front St 'Raleigh', NC NULL, 'Crackjack@aol.com', 'Crackj', flybyJAN NULL, 'USA';insert into bbshopper values 'Margaret', 'Somner', Walnut Drive', 'Cheasapeake', VA NULL, 'MargS@infi.net', 'MaryS', 'pupper', FEB NULL, 'USA';insert into bbshopper values 'Kenny', 'Ratman', Fun Lane', 'South Park', NC NULL, 'ratboy@msnnet', 'rat 'kile', JAN NULL, 'USA';insert into bbshopper values 'Camryn', 'Sonnie', Talamore', 'South Riding', VA NULL, 'kids@xis.net', 'kids 'steel', MAR NULL, 'USA';insert into bbshopper values 'Scott', 'Savid', Pine Grove', 'Hickory', VA NULL, 'scott@odu.edu', 'fdwell', 'tweak', FEB NULL, 'USA';insert into bbshopper values 'Monica', 'Cast', Wth 'Greensburg', VA NULL, 'gma@earth.net', 'gma 'goofy', FEB NULL, 'USA';insert into bbshopper values 'Pete', 'Parker', Queens', 'New York', NY NULL, 'spider@web.net', FEB NULL, 'USA';ALter table bbshopper ADD promo CHAR;CREATE TABLE bb
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
