0% found this document useful (0 votes)
11 views2 pages

DBF161 Activity 4

The document outlines the steps to create a database named 'Yourname_Activity4' with specified tables for Categories, Products, and Suppliers, including sample data. It details the requirements for data types, relationships, field properties, and the creation of queries. Additionally, it explains the concept of queries and provides examples of three types of queries to be executed and saved in the database.

Uploaded by

soyap84426
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

DBF161 Activity 4

The document outlines the steps to create a database named 'Yourname_Activity4' with specified tables for Categories, Products, and Suppliers, including sample data. It details the requirements for data types, relationships, field properties, and the creation of queries. Additionally, it explains the concept of queries and provides examples of three types of queries to be executed and saved in the database.

Uploaded by

soyap84426
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

DBF161 Activity 4

Create a database and name it using the format Yourname_Activity4.

Sample data is shown below. The data is incomplete and may change from time to time.

Categories
CategoryID CategoryName
1 Beverages
2 Condiments
3 Confections
4 Dairy Products
5 Grains/Cereals
6 Meat/Poultry
7 Produce
8 Seafood

Products
Product ID ProductName SupplierID CategoryID UnitPrice UnitsInStock Discontinued
1 Chai 1 1 18.00 39 No
2 Chang 1 1 19.00 17 No
3 Aniseed Syrup 1 2 10.00 13 No
4 Cajun Seasoning 2 2 22.00 53 No
5 Chef Anton's Gumbo Mix 2 2 21.35 0 Yes
Suppliers
SupplierID CompanyName Address City Region PostalCode Country Phone Fax
1 Exotic Liquids 49 Gilbert London EC1 4SD UK (171)
St. 555-
2222
2 New Orleans Cajun P.O. Box New LA 70117 USA (100)
Delights 78934 Orleans 555-
4822
3 Grandma Kelly's 707 Oxford Ann MI 48104 USA (313) (313)
Homestead Rd. Arbor 555- 555-
5735 3349
4 Tokyo Traders 9-8 Sekimai Tokyo 100 Japan (03)
Musashino- 3555-
shi 5011

1. Create all the tables as shown on the ERD. Use the sample data given above to decide on
suitable data types and sizes.

2. Create the relationships using the Access Database Tools. Enforce referential integrity and
cascade updates on all relationships.

3. Enter the sample data shown above into the tables

4. Apply the following field properties.

4.1. Category names must display in all uppercase


4.2. The unit price in the Products table must have two decimal places with the $ sign at the
beginning. Positive numbers must be in blue and negative numbers in red and enclosed in
brackets. If the price is zero display “Free” in yellow and if a value is not supplied display
“None” in red.
4.3. Create a lookup on the region to display the values “LA”, ”MI”, ”NY”, ”NU”
4.4. Create an input mask that accepts phone numbers in format (012)542-3114
4.5. The unit price must not exceed R1000 or else a textbox should say “This price is too high”
5. Explain the concept of QUERY and dynaset.
6. Explain three types on queries that you can run on the database that you have created.
7. Run three of each type of query discussed in 6 above. Save them as querytypeWhatItDoes

You might also like