Create a form for the table customer

Assignment Help PL-SQL Programming
Reference no: EM131514295

In this assignment, you will:
- Create table
- Create relationships (links) between the tables.
- Enter records into the tables.
- Do queries, advanced queries on the database
- Create a form.
- Create a report.

Task 1: Creatinga TABLE

(Create TABLE, FIELDS, ENTERING RECORDS, CREATING RELATIONSHIPS)

We have a partially created a database in Access called ORDERDB. You need to complete the database by creating CUSTOMER table and fill the table with the records provided.

1. Open thedatabase file called ORDERDB (available on iLearn-in Assignment2 Folder).

2. Create a table called ‘CUSTOMER'with the following data

Field Name

Data Type

Description

General Properties

CustomerID

Short Text

Customer ID Code

Size:4

Format:>

CustomerName

Short Text

Name of Customer

Size:30

Format:>

CustomerSuburb

Short Text

Suburb of Customer

Size: 20

Format:>

CustomerPostCode

Number

Postcode of the suburb

Size: Integer

Default Value: (leave it empty-delete that 0)

3. Now you will have to enter records into CUSTOMER table and identify the PRIMARY KEY

CustomerID

CustomerName

CustomerSuburb

CustomerPostCode

CUS1

HARRY POTTER

EPPING

2121

CUS2

RONALD WEASLEY

BURWOOD

2134

CUS3

HERMIONE GRANGER

EPPING

2121

CUS4

LILY POTTER

EASTWOOD

2122

Task 2: RELATIONSHIPS

1. Creating Relationship. [Hint: Go toDatabase Tools -> Relationships]

2. For each link, make sure you ENFORCE REFERENTIAL INTEGRITY in the relationship's properties section.

Task 3: QUERIES

Note: If results contain duplicate data, you need to display them only once.

You are now going to CREATE Query Design:

1. Show customer details (ID, Name and PostCode) who come from a suburb that begins with ‘E'. Suburb must not be displayed in the output. Sort the results by Customer name, in descending order. Save the query as SUBURB.

2. Show products' names and price that costs between $20(exclusive) and $60(inclusive). Sort the results by price, in ascending order. Save the query as PRODUCTPRICE.

3. Show values from OrderLine table if the Product ID is ‘PRO1' or ‘PRO3' and the quantity ordered is over 8. Save the query as OVER8.

4. Show order details (ID, Date, OrderShipped?) for orders that have NOT been shipped. Save the query asNOTSHIPPED.

5. Show details of orders (ID, shipment status) along with respective Customer name. Save the query as CUSNAME.

6. Show names of products and order date for ‘ORD2'. Save the query as ORDER2

Task 4: Advanced Queries

Create the following queries:
For both queries, useEXPRESSIONS BUILDERand rename any NEW fields with the appropriate field names.

1. Show Order ID, order date, total cost for each order along with CustomerName. Total cost will be OrderQuantity *ProductPrice, for each product. Sort the results by total cost in descending order. Save the query asADVANCEDQ1.

2. Write an UPDATE Query and increase the prices of products by 5%. Save the query as UPDATEBY5.

Task 5: Form

For this task you will need to
- Create a form for the table CUSTOMER with all fields except Postcode. Choose ‘Tabular' layout.
- You can use any colours and formatting you like, as well as any design elements
- Include a logo in the form.
- Lock the ‘CustomerID' field.

Task 6: Creating a Report
For this task you will need to create a reportthat includes
- OrderID, OrderDate, ProductID, ProductPrice and Quantity
- View must be based on Orderline table
- Group data by OrderID
- Sort data by OrderDate-descending order
- Choose Stepped layout, Portrait orientation
- You must use the same colours and formatting as the form.

Attachment:- ORDERDB-1.rar

Reference no: EM131514295

Questions Cloud

Develop a marketing plan : This is your summative assessment. In this assessment, you will learn and develop a marketing plan. The task description, necessary resources, instructions
Demonstrate the use of indexed addressing : Demonstrate the use of indexed addressing to retrieve data from a table in memory.
Determine property,plant,and equipment costs : Trudy Company incurred the following costs. Determine property,plant,and equipment costs. Trudy Company incurred the following costs.
Intelligence and business intelligence systems : Define business intelligence and Business Intelligence systems.
Create a form for the table customer : Create a form for the table CUSTOMER with all fields except Postcode. Choose ‘Tabular' layout - Write an UPDATE Query and increase the prices of products
Digital signature and a handwritten signature : 1. What are the similarities between a digital signature and a handwritten signature?
What items in a physician practice can be depreciated : Explain the depreciation concept. What items in a physician practice can be depreciated? What is the purpose. What weaknesses have you encountered, if any?
Server virtualization solutions : Identify and research two server virtualization solutions currently available on the market (such as, but not limited to, VMware ESX and Citrix XenServer).
Create a singly linked list and a doubly linked : Create a singly linked list and a doubly linked list with 20 elements in each one.

Reviews

len1514295

6/1/2017 4:35:32 PM

Subject- Business Information System It is a Microsoft Access database Module Assignment is worth 10 marks ? Technical part: 7 marks (submit on iLearn by 28th 11.55PM) ? Discussion part: 3 marks (in workshops - week 12) In this assignment, you will: ? Create table ? Create relationships (links) between the tables. ? Enter records into the tables. ? Do queries, advanced queries on the database ? Create a form. ? Create a report.

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd