1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
koban [17]
2 years ago
7

Create the tables and appropriate constraints based on the following ER diagram. Use appropriate data types. Note that the size

column should only accept S, M, or L. In addition the price column should only have values greater than zero. All columns in both tables are required. ====================== CATEGORY table: Category Cid Description ====================== PRODUCT table: pid description cid (fk) Price Size (S/M/L)
Computers and Technology
1 answer:
SpyIntel [72]2 years ago
7 0

Answer:

See explaination

Explanation:

CREATE TABLE CATEGORY

(

cid int NOT NULL,

description varchar2(1000),

PRIMARY KEY (cid)

);

CREATE TABLE PRODUCT

(

pid int NOT NULL,

description varchar2(1000),

cid int,

price int,

p_size varchar2(1),

CONSTRAINT chk_price CHECK (price>0),

CONSTRAINT chk_size CHECK (p_size in ('S','M','L')),

CONSTRAINT fk_cid FOREIGN KEY (cid) REFERENCES CATEGORY(cid)

);

You might be interested in
What is NOT powered by the PSU of your computer?
Yuliya22 [10]
Peripherals like your monitor or your printer.
3 0
3 years ago
Complete the missing part of the line to allow you to read the contents of the file.
Firlakuza [10]

Answer: Sorry I’m late but the answer is open

Explanation: Edge 2021

3 0
2 years ago
Read 2 more answers
When an array is passed to a function, it is actually ________ the array that is/are passed?
MAVERICK [17]
Hello <span>MrSnuffleBuns4243 
</span>

Answer: When an array is passed to a function, it is actually  <span>the starting memory address of </span>the array that is/are passed?

Hope this helps
-Chris
5 0
3 years ago
When ____ is pressed after entering an email address or web address, word automatically formats the address as a hyperlink, that
bixtya [17]
The word enter is your password
6 0
3 years ago
Read 2 more answers
What technology uses short-range radio signals to enable computers and devices to communicate with each other.
UkoKoshka [18]

Answer:

i also want to know the answer

Explanation:

3 0
3 years ago
Other questions:
  • A
    12·1 answer
  • Manuel is working on a project in Visual Studio. He wants to keep this program showing on the entire desktop, but he also needs
    13·1 answer
  • Which of the following is a job description for a person with a degree in information technology
    15·1 answer
  • After you have created at least four slides, a scroll bar containing scroll arrows and scroll boxes will appear on the right edg
    9·1 answer
  • It keeps saying “something is going wrong oops!” when i click on my brainly notifications what do I do
    9·1 answer
  • 4. Write technical term for the following statements
    15·2 answers
  • What is computer science​
    9·1 answer
  • How are the functions different and how do i determine the answer
    5·1 answer
  • Who plays warzone im a roze sweat and ill try to carry with loadout
    10·1 answer
  • In C++ please (read the image below for instructions)
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!