Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create given tables with your roster last name followed by your college ID (for example, I would create REP table as REP SHAH 0111111, where

image text in transcribed
image text in transcribed
Create given tables with your roster last name followed by your college ID (for example, I would create REP table as REP SHAH 0111111, where SHAH is my last name and 0 is my college ID) with provided column names. Fail to do so will result in 0 points for the assignment. Use most appropriate data types for each column based on data in it. Use DEFAULT value 0 for Balance column in CUSTOMER table. Identify PRIMARY KEY for each table, name and define it at the time of table creation. Copy your CREATE statements in a file as you will submit them. Add a new table: CATEGORY (CatId, CatDesc) with Catld with same data type as Category field in the ITEM table. Add a PaymentStatus column to ORDER table to store 'P' or 'U' (paid or unpaid) data in the future. - Use created tables to add FOREIGN KEY, NOT NULL, UNIQUE and CHECK constraints with the ALTER statement, as appropriate INSERT given records in to the tables. For CATEGORY table, use CatID from ITEM table's Category column and use appropriate CatDesc. Add a record for yourself in the CUSTOMER table and create appropriate record in ORDERS and ORDERLINE table for you as a customer ordering items

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

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions