Question: I am working on creating tables with data in oracle sql. I have created the first table and created my second table. I started to

I am working on creating tables with data in oracle sql. I have created the first table and created my second table. I started to add the data line by line. The issue is that there is data that is the same in several different lines of the table. It will only let me add information in once when I need it listed for several. Below is the chart I am creating (RECIPE)

RECIPE Table

Ice_cream_ID

Ingredient_ID

Quantity used/pint

101

1000

30

540

1000

75

545

1000

55

101

1100

40

201

1100

45

407

1200

25

101

1200

20

201

1200

45

311

1200

40

321

1300

35

101

1300

80

540

1300

50

545

1400

15

405

1400

10

406

1400

27.5

201

1500

10

540

1500

5.5

211

1500

60

101

1700

5

520

1700

10

I used coding INSERT INTO RECIPE VALUES ('101', '1000', '30'); for the first line. When I went to do the second line the same way it caused an error due to '1000' already being in the first line. How do I bypass this? I am getting an ORA-00001 Unique Constraint

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!