Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In SQL how would I go about creating the Tables for Task #1 and Task #3 to determine which table will be the primary key

In SQL how would I go about creating the Tables for Task #1 and Task #3 to determine which table will be the primary key and which table will be the foregin key table for the ProductID column.

image text in transcribedimage text in transcribed

1(" l Week 4 HW.docx WordPad HomeView Cut Copy File Calibri Paste B l uabcx,x' 2, Picture Paint Date and inser drawing time object ia select all Clipboard Font Insert Editing WordPad does not support all of the features of this document's fomat. Some content might be missing or displayed improperly. There are 5 tasks, each worth 20% Note: When inserting data, you may change the data for the ProductID column, determine which table will the primary key and forein key table. Study both tables 1sbefore writing it in SQL code. Task#1: Design a table in SQL Code and name it OrderDetails with the following columns and data as shown below: OrderDetailID OrderI 10248 10248 10248 10249 10249 ProductID Quantity 12 42 72 14 51 10 40 t screen the table SQL code below here rint screen the insert statements belowh 100% O Type here to search 9:07 PM 2/9/2018

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions