Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Database Model: KimTay The management of KimTay Pet Supplies (a supplier of pet supplies, food, and accessories located in Cody, Wyoming) has determined that the

Database Model: KimTay The management of KimTay Pet Supplies (a supplier of pet supplies, food, and accessories located in Cody, Wyoming) has determined that the companys recent growth no longer makes it feasible to maintain customer, invoice, and inventory data using its manual systems. In addition, KimTay Pet Supplies wants to build an Internet presence. With the data stored in a database, management will be able to ensure that the data is up-to-date and more accurate than in the current manual systems. In addition, managers will be able to obtain answers to their questions concerning the data in the database easily and quickly, with the option of producing a variety of useful reports.

The CUSTOMER table maintains information about each customer, such as their ID, first and last name, address, balance, and credit limit.

In the INVOICES table contains information about each invoice, such as the invoice number, date, and the customer being invoiced.

The INVOICE_LINE table has the itemized information for each invoice. This includes the item ids, quantity, and price for each invoice.

The ITEM table has a information pertaining to each item for sale by KimTay's Pet Supplies. This includes a description, the number in stock, location, and price.

The SALES_REP table includes the information for each sales representative for KimTay's Pet Supplies. This includes first and last name, address, cell-phone, commission, and commission rate.

Task 1:

Create a table named REP. The table has the same structure as the SALES_REP table shown on page 1 of this lab, except the COMMISSION and RATE columns should use the NUMERIC data type. Execute the command to describe the layout and characteristics of the REP table.

To see the structure of the SALES_REP table, use the DESCRIBE SALES_REP; command.

Task 2:

Add the following row to the REP table:

  • rep ID: 35
  • first name: Fred
  • last name: Kiser
  • address: 427 Billings Dr.
  • city: Cody
  • state: WY
  • postal: 82414
  • cell phone: 307-555-6309
  • commission: 0.00
  • rate: 0.05

Display the contents of the REP table.

Task 3: Drop the REP table.

Task 4: Check that the KimTay database is back to its starting point. The KimTay database should have the five tables shown on page 1 of this lab.

page 1 is the introduction(part of the post), the first couple paragraphs.

SQL

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books

Students also viewed these Databases questions

Question

What consequences are you avoiding?

Answered: 1 week ago