
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
thumb_up100%
How can i fix this error its not going away and i have tryed everything

Transcribed Image Text:create a table
ECREATE TABLE Categories (
CategoryID INTEGER PRIMARY KEY,
CategoryName TEXT NOT NULL
);
insert some values
--
INSERT INTO Categories VALUES (1, 'stationary');
INSERT INTO Categories VALUES (2, 'ART');
INSERT INTO Categories VALUES (3, 'Books');
INSERT INTO Categories VALUES (4, 'Wine');
INSERT INTO Categories VALUES (5, 'Soap');
fetch some values
--
SELECT * FROM Categories;
go
E--products table
create a table
--
ECREATE TABLE Products (
ProductID INTEGER PRIMARY KEY,
ModelNumber INTEGER,
ModelName TEXT NOT NULL,
Product Image IMAGE,
UnitCost INTEGER,
Description TEXT NOT NULL,
FOREIGN KEY(CategoryID)
REFERENCES Categ
};
Foreign key 'FK_Products_a42a460b5f04ceb87f28' references invalid column 'CategoryID' in referencing table 'Products'.
insert some values
INSERT INTO products VALUES (6, 100, 'Chrome','',90, 'Book', 3);
INSERT INTO products VALUES (7, 101, 'Juice',
15,
'Pure Juice', 4);
INSERT INTO products VALUES (8, 102, 'stationary', ,50, 'office stationary',1);
INSERT INTO products VALUES (9, 103, 'Cleaner', ,33, 'Appliance Cleaner',5);
INSERT INTO products VALUES (10, 104, 'wood"," ,25, 'Oak Wood', 2);
fetch some values
--
SELECT * FROM products;
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- python code Assign different costs to insertions, deletions, and substitutions to reflect varying penalties for different types of edits. Calculate the Levenshtein distance with these weighted costs. String1 = ("Natural language processing") String2 = ("Computer science department")arrow_forwardA computer loses the date when you shut it down at night, so you have to input it again in the morning. How do you fix the issue and what is it?arrow_forwardit is not a graded questions. It is a practice and I'm stuck SmithJonesAustralia5.0 4.9 5.1 5.2 5.0 5.1 5.2 4.84.3 4.7 4.8 4.9 4.6 4.8 4.9 4.5 lennonmurrayengland2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.83.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8gustopetitotitalia4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.85.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8lahaiepetitfrance1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.85.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8bilodeaubernardcanada2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.84.1 4.2 4.3 4.8 4.9 4.6 4.0 4.5lahorepedromexico3.2 3.1 3.8 3.9 3.0 3.6 3.9 3.35.9 5.8 5.8 5.8 5.9 5.6 5.0 5.5maliakkolikovrussia4.2 4.1 4.8 4.9 4.0 4.6 4.9 4.31.9 1.8 1.8 1.8 1.9 1.6 1.0 1.5MinaYianchina5.2 5.1 5.8 5.9 5.0 5.6 5.9 5.32.9 2.8 2.8 2.8 2.9 2.6 2.0 2.5gatesbrownU.S1.2 1.1 1.8 1.9 1.0 1.6 1.9 1.33.9 3.8 3.8 3.8 3.9 3.6 3.0 3.5joecharlieswitzerland2.2 2.1 2.8 2.9 2.0 2.6 2.9 2.34.9 4.8 4.8 4.8 4.9 4.6 4.0 4.5The final score for each skater is the sum of the average of the two categories of the scores. In this case, calculate the average of each…arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education