Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

For this database project, you will use Microsoft Access to create an inventory database for a hardware store, which contains more than 10 records in each table and with the fields listed below for each table. 

 

In this project, you will:

           Design the Table Structures and Relate them

           Enter the Data

           Create Two Reports (one report has to be saved as a screen shot before creating the second report)

           Create Two Queries

 

Procedure:

 

  1. DESIGN YOUR TABLE STRUCTURES with the following field names: (10 Points)

Table 1 -

Field Name

Data Type

Width

Other Information

Item ID

Auto #

5 chars.

Primary Key – may only contain automated integers created by the database system.

Description

Text

20 chars.

 

Vendor ID

Number

6 Characters

6 digits in length

List Price

Currency

 

Leave decimal places as 2

On-Hand Qty

Number

 

Long Integer

Item Type

Text

4 chars.

Type Codes must be validated, and must be formatted in upper case.  Codes are: SOFT, HARD, ELEC, or OTHR.  Default value is OTHR

On Sale

Yes / No

 

Assume Sale Price is 25% off

 Table 2

Field Name

Data Type

Width

Other Information

Customer ID

Auto #

5 chars.

Primary Key – may only contain automated integers created by the database system.

Description

Text

20 chars.

 

Customer Name

Memo

50 chars.

 

Customer Address

Memo

50 chars

 

Customer State

Text

2 Char

Use Postal Codes

Customer Zip

Number

Upto 9 char..

Postal Codes from US Postal Service

Phone Number

Number

10 chars

 

Table 3 – Sales Receipts

Field Name

Data Type

Width

Other Information

Receipt ID

Auto #

10 chars.

Primary Key – may only contain numbers and must be auto generated

Customer ID

Number

5 chars.

Secondary Key from other Table

Item ID

Number

5 chars.

Secondary Key from other Table

Quantity Purchased

Number

6 chars.

 

Sub-Total

Calculation / Curency

10 Chars

Calculate this from the data given make it Curency with 2 decimal places (Qty * Price)

Tax

Curency

8 Chars

Curency same as Total. Assume 9% for Tax Rate

Total

Curency

12 Chars.

Add Subtotal & Tax

 

Start Access and select “Blank Access Database.”  Important: when prompted to “Save in”, name your database file “Inventory.”  Then click on Create.   Don’t try to go any further until this is done!

In the main database window, the Table button should be selected (embedded).  Double-click on Create Table in Design View to set up the structure of your database file.  The cursor will be at the 1st field.  (note: you will create the Table in Design View, not using a Wizard or in Datasheet View).

When the Table Design Screen is displayed, being by typing in the first field name and then tab over to Data Type. Choose the field type from the arrow options (or you can just type the first letter of the type).  Remember that Access uses “text,” “number,” “yes/no,” for what our book calls “character,” “numeric,” and “logical.”

 At this point, you’ll see a General tab in the lower left corner of the screen, with many options, including field size. You must set up all field specifications here, as we did in class. After you have entered all the fields described in the table on Page 1 above, make the Item ID to be the primary key, using the key icon, as described in class.  As you enter data in Section 2 below, using Datasheet View, you will have to be careful to insure that you do not have any duplicate Item IDs.  When finished, save file.

 2. ENTER YOUR DATA (10 points)

 Enter your data directly into the table. You can make up fictitious data, but it must be reasonable, because we will be sorting and making queries from this data.

 

An example of what one record in tabloe 1 of data may look like:

·         ITEM ID               – Mouse

·         DESCRIPTION   – Computer Accessory

·         VENDOR ID             – 4501 (a number – you may want to number your vendors 1, 2, 3, etc.  You may also want to have, say, all of one kind of item come from the same vendor id)

·         LIST PRICE         - $9.95

·         ON-HAND QTY  – 150

·         ITEM TYPE         – HARD

·         ON SALE             - NO

 Your data must contain at least tweleve records and there must be one of each of the following Item Types:

·                     SOFT    Software (Window XP, Microsoft Office, Adobe Acrobat, etc.)

·                     HARD   Hardware (monitor, hard disk, CPU, etc.)

·                     ELEC    Electrical (TV, VCR, DVD, MP3 player, battery charger, etc.)

·                     OTHR   Other (pencil, pen, notepad, bulletin board, marker, etc.)

You must validate that the values keyed into Item Type are one of the four types listed above, and display an appropriate error message when something else is keyed in.

Combination of data required to test your Select query (Query 2) to prove that it works:

·         You must have at least two Item Type HARD records, one that is On Sale, and one that is not On Sale

·         You must have at least one On Sale record whose Item Type is not HARD.

 3. REPORTS (15 points)

 You will be required to create two reports, one before and one after you have deleted one record from your Inventory table.  Remember, you will be deleting a record from the table, not the report (you cannot delete a record from a report).  The report just prints what is in the table.  Thus one report should have 10 or more records on it, and the second report should have one less record on it.

 Using the Report Wizard, create a Report on your data. Choose all fields except On Sale Item, using the arrow  >.  Do not do any grouping, but sort the records descending by Item ID. Choose Tabular and Landscape.  Choose any print style you like.  For the Title, use All Inventory Items Report.  Now print the Report. Please bring this report hard copy to the lab.

 Go back into datasheet view of the Table, and delete one of the records from the table, as shown in class.  Then make another report, using the same process as the first one.  For the title of this one, use One Item Deleted Report.

 4. QUERYs (15 points)

 First Query

·         Using Design View, create a query on your data.  Select the Item ID, Description, Item Type, and On-Hand Quantity of all items. Sort the records descending by Item ID.

·         Click on the save icon, and save it as Query 1.

·         This query will not contain all the fields in the table, but it will contain all of the records.

 Second Query

·         Create another query, using Design View, selecting the following fields: Item ID, Description, Item Type, List Price, and On Sale.

·         The query (using the Criteria row) should ONLY include rows that are both On Sale and Item Type HARD.  In addition, do not show the On Sale field.

·         There is no need to sort this query.

·         Click on the save icon, and save it as Query 2.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M9522022

Have any Question?


Related Questions in DBMS

Databases assignment - monash library services monlib case

Databases Assignment - Monash Library Services (MonLib) Case Study TASK 1: Data Definition For this task you are required to complete the following: 1.1 - Add to your solutions script, the CREATE TABLE and CONSTRAINT def ...

Questionsuppose a prolog database exists that gives

Question: Suppose a Prolog database exists that gives information about states and capital cities. Some cities are big, others small. Some states are eastern, others are western. a. Write a query to find all the small ca ...

Question team project submission - submit to the unit 4

Question: Team Project Submission - Submit to the Unit 4 Group Project Area This version of the capstone project assignment is FOR GRADING this week. Submit to the group area the document containing completed Sections On ...

In sql developercreate a table userpermissions provide

IN SQL DEVELOPER Create a table UserPermissions (provide create and insert statements code) Document UserName Policy SYSTEM Menu JDOW W2 USAM Permissions SYSTEM W2 JDOW Form 1040 USAM Policy JDOW W2 SYSTEM Write a PL/SQL ...

Question 1 unified communications system eg email

Question: 1. Unified Communications System (e.g., email, conferencing, and messaging) - The local area network is slower than needed, especially for newer, cloud-based applications. The email system needs refurbishment a ...

The groceries datasetimagine 10000 receipts sitting on your

The groceries Dataset Imagine 10000 receipts sitting on your table. Each receipt represents a transaction with items that were purchased. The receipt is a representation of stuff that went into a customer's basket. That ...

Question a suppose you are a marathon runner that can run a

Question : a) Suppose you are a marathon runner that can run a maximum of n miles on a single bottle of water. You are given a map of your marathon route with all the water stations marked. Design an efficient algorithm ...

Data model development and implementationpurpose of the

Data model development and implementation Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop data models and map Database System into a standard development environment to gain unde ...

Sqlwrite a select statement that returns one column from

SQL Write a SELECT statement that returns one column from the Vendor table named Full Name. Create this column from the VendorContactFName and VendorContactLName columns. Format it as follows: last name, comma, first nam ...

Analytic reportpurpose the purpose of this task is to

Analytic Report: Purpose: The purpose of this task is to provide students with practical experience in working in teams to write a Data Analytical report to provide useful insights, pattern and trends in the chosen/given ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As