Problem with creating and inserting

Assignment Help Basic Computer Science
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" );

Reference no: EM131756160

Questions Cloud

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.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the decimal value

assume that the following 10 bit numbers represents sighned integers using sign/magnitude notation. the sign is the leftmost bit and the remaining 9 bits represent the magnitude. What is the decimal value for 100000000.

  List each intermediate name server contacted

Then carry out manually a name lookup such as that in Figure 9.5; try the host name www.cs.princeton.edu. List each intermediate name server contacted. You may also need to specify that queries are for NS records rather than the usual A records.

  Design a function that will take a race result

Design a function that will take a race result and a current world record time and determine if the world record was beaten.

  How an http server might apply it

What mechanism within the TCP protocol could help an HTTP server deal with noncooperative or poorly implemented clients that don't close from their end? If possible, find out about the programming interface for this mechanism, and indicate how an ..

  Determine number and sequence of i, b, and p frames

the mpeg stat program can be used to display statistics for video streams.

  How boolean operations used establish program flow control

Discuss how Boolean operations can be used to establish program flow control.

  Derive an expression for the aggregate demand curve

b) Derive an expression for the aggregate demand curve. c) We consider two inflation rates to 'pin' down our curves.  Let point A represent conditions where inflation (Π)  = 1% and point B represent conditions where inflation (Π ) = 2%.

  Disadvantages of solving linear equations through graphing

What are the advantages and disadvantages of solving linear equations through graphing? Please compare and contrast this method with the other methods - substitution and elimination.

  Current position of the federal reserve chairman

Analyze the current position of the Federal Reserve Chairman and Board related to interest rates, money supply, and inflation, and the effectiveness

  Describe the fda’s food inspection process

What is the cost of a false negative? What is the cost of a false positive? Given these costs, should the FDA use a low or high threshold?

  Inistalling and configuring windows server

inistalling and Configuring Windows Server 1. What upgrade options exist for moving from Server 2008 (R2) to Server 2012? What limitations or caveats should be considered when upgrading? Would you typically recommend a clean install or an in-place..

  Find a complete list of the non-digital evidence

A complete list of the non-digital evidence you found in the workspace that you could collect (or at least search), including what significant information might be found in that evidence;

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd