Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

- OrderDetails (O_ID) is FK and refers to Customers (C_ID). - OrderDetails (ProductID) is refers to Orders (O_ID). 1. (25P) Write the necessary is FK

image text in transcribed

- OrderDetails (O_ID) is FK and refers to Customers (C_ID). - OrderDetails (ProductID) is refers to Orders (O_ID). 1. (25P) Write the necessary is FK and refers to Products (P_ID). a) All fields should be defin SQL code to create the "Customers" table as follows: b) Primary and foreign keys should be defined propriate variable types. c) C_ID should start from 100 and be defined properly. d) C_Lastname and C_FirstName should be intically increased by 5 with each new record. e) C_Birthday field cannot be NULL. f) C_CityID must have the default value 34

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions