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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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