Reference no: EM131756160
Hello
I am having a little bit of a problem with creating and inserting a MySQL table that will hold a list of category ,Option, budget, purchase tables . I am not to sure how to create the tables in my sql and insert a dummy data into it ?inserting a MySQL table that will hold a list of category ,Option, budget, purchase tables . I am not to sure how to create the tables in my sql and insert a dummy data into it ? Can you please correct me or show me how to create and insert inorder to provide a working sql query? insert inorder to provide a working sql query?
CREATE TABLE CATEGORY(
CATAGORY_ID VARCHAR(10) NOT NULL ,
CATTYPE VARCHAR(35)NOT NULL,
CATDESCREPTION VARCHAR(100) NOT NULL,
PRIMARY KEY (CATEGORY_ID)
)
INSERT INTO CATEGORY VALUES (1, "WINDOW", " INTERIOR PILLAR WINDOW" );
CREATE TABLE OPTION(
ITEM_ID INT UNSIGNED NOT NULL AUTO_INCREMENT,
DESCREPTION VARCHAR(35) NOT NULL,
MATERIALCOST DECIMAL(8 2) NOT NULL,
ITEMQUANTITY DECIMAL(8 2) NOT NULL;
PRIMARY KEY (item_id),
FOREIGN KEY (category_id) REFERENCES category (category_id),
FOREIGN KEY (sub_id) REFERENCES categories (sub_id)
)
INSERT INTO OPTION VALUES (1, "CASEMENT", " INTERIOR GLASSWINDOW" );
What are product categories
: What are product categories? Give an example of super-ordinate and subordinate product categories.
|
Create a project and make modifications on strategy pattern
: Download the ducksim-starter-src archive, create a project from it, and make the following modifications: Strategy Pattern and Decoy Duck
|
Prepare general journal entry to replenish petty cash fund
: Prepare the General Journal entry to replenish the Petty Cash fund. Post any relevant amounts to the Cash and Petty Cash General Ledger accounts.
|
Identify the r-squared value for this data set
: Describe what the F-test and the p value tell us in general and name each for these data sets and analyses.
|
Problem with creating and inserting
: I am having a little bit of a problem with creating and inserting a MySQL table that will hold a list of category ,Option, budget, purchase tables.
|
Discuss the female or african american psychologists
: Choose one of the Female or African American psychologists provided in the list provided at the end of these instructions.
|
Compare the positive and negative aspects of employing a mac
: Compare and contrast the positive and negative aspects of employing a MAC, DAC, and RBAC.
|
Executive proposal project
: The purpose of this project is to evaluate the student's ability to research and evaluate security testing software and present a proposal for review
|
Describe the effect of the sale of the pottery
: Dory, age 40, is unmarried. She rents an apartment in the city that she shares with two dependent children, ages 10 and 8. Dory makes pottery in her spare time.
|