Ask PL-SQL Expert

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

PL-SQL, Programming

  • Category:- PL-SQL
  • Reference No.:- M92323022
  • Price:- $60

Guranteed 36 Hours Delivery, In Price:- $60

Have any Question?


Related Questions in PL-SQL

Complete the following tasksin microsoft access create the

Complete the following tasks: In Microsoft Access, create the database and tables that you identified in W3 Assignment 2. In Microsoft Word, write the SQL statements to create the database and tables. Write SQL statement ...

Purpose of the assessment with ulo mapping the purpose of

Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop skills in managing data in databases and to gain understanding of data model development and implementation using a commercially a ...

Continuing the project you have worked on in weeks 1-4 in

Continuing the project you have worked on in Weeks 1-4, in this final week, complete the following tasks: Refine your database and SQL statements by incorporating your instructor's feedback. Verify that the database comp ...

For this assignment you will be provided a database backup

For this assignment, you will be provided a database backup for a database called FinanceDB. You will have to restore this backup to your own version of SQL Server. All of the questions in this assignment relate to the F ...

Assignment - queries functions and triggersaimthe aims of

Assignment - Queries, Functions and Triggers Aim The aims of this assignment are to: formulate SQL queries; populate an RDBMS with a real dataset, and analyse the data; design test data for testing SQL queries; create SQ ...

  • 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