Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Introduction

Students have to complete all the following parts of this assignment:

A. SQL Query

B. Query Analysis

C. Form

D. Report

Important

Download the Microsoft Access database, Shares.accdb,from the course website and use it to complete this assignment.

If you get a security warning message when opening the downloaded database,then you need to open/click the options and then choose the option "enable this content".

Do not modify the structures of the tables and relationships. Do not create additional tables. It is not recommended to delete any of the existing records from the downloaded database (hereafter referred as ‘your database').

You need to write SQL queries in your database and make sure those queries produce the desired results as shown in Part A. Save and name those queries suitably such as Q1, Q2, ......, Q10 respective to the question that you are answering.

You need to create aMS Access-form and also a MS Access-report that are related to Part C and Part D and save them in your database.

Shares.accdb

The database, Shares.accdb, is maintained by an individual performing share trading activities. It contains five tables thatcan store the data related to trading of shares of some of the listed companies in Australian Stock Exchange.The following table provides the details of the data stored in those tables.

Table name

Data stored

Share

Some of the listed companies in ASX (Australian Stock Exchange) in which the individual is interested.

ShareRegistry

Share registry companies and their contact numbers.[Each listed company, stored in shares-table, must be related to one and only one share registry company].

ShareTrade

Trade orders issued for buying or selling of shares of the listed companies that are found in the shares-table.

Brokerage

Rate of brokerage applicable for a share trade.

Transaction

Completed transaction(s) related to the relevant share trade order(s). [Each share trade order can be completed by one or many transactions.  Only after the completion of transactions, the amount is payable/receivable.  Further details can be seen in part A-Q8].

Part A - SQL Query

Using your database, write SQL queries toanswer all the questions in this part.Each of the following questions has an information request followed by theexpected results when your database has the given sample data.

Hint: To get the desired output, you need to check the column headings; grouping and sorting of datadisplayed;removal of duplicate data; and other aspects of the query.

1. Display the details of all the listed shares/companies along with its share registrydetails.

code

shareName

ShareRegistryName

contactNumber

AGL

AGL Energy Limited

Link Market services

1300554474

BHP

BHP Billiton Limited

Computer Share

1300787272

CSL

CSL Limited

Computer Share

1300787272

RIO

RIO Tinto Limited

Computer Share

1300787272

A2M

The A2 milk company

Link Market services

1300554474

2. Display the share name/company name for which trade orders have been placed including the number of trade orders placed.

sharename

numberOftradeOrders

BHP Billiton Limited

1

RIO Tinto Limited

2

3. List the details of shares(s)/company(s)for which there has been no trade order placed so far.

code

shareName

ShareRegistryName

A2M

The A2 milk company

Link Market services

CSL

CSL Limited

Computer Share

AGL

AGL Energy Limited

Link Market services

4. Displaythe transacted amountof the highest valued-share transaction(s)performed.

HighestValuedTransaction

$20,000.00

5. Display the share(s)/company(s) name and details of trade order for which only one transaction was required to complete the trade.

orderId

orderDate

shareName

2

04-Jan-16

BHP Billiton Limited

6. Display the total number of transactions performed for each of the buy orders placed.

orderId

OrderDate

OrderType

Code

OrderedQuantity

numTransactionPerBuyTradeOrder

1

04-Jan-16

BUY

RIO

700

2

2

04-Jan-16

BUY

BHP

1000

1

7. Display the details of share registry company whose name contains the word ‘computer'.

ShareRegistryName

ContactNumber

Computer Share

1300787272

8. Display the details of each share trade order including net amount payable/receivable due to that order.

Hint:The net amount is payable for a buy order whereas net amount is receivable for a sell order.
Gross amount = orderedQunatity X OrderedPrice
Net amount for buy order = Gross amount + brokerage amount
Net amount for sell order = Gross amount - brokerage amount

OrderId

OrderDate

OrderType

Code

OrderedQuantity

OrderedPrice

BrokerageID

NetAmount

1

04-Jan-16

BUY

RIO

700

$40.00

2

$28,070.00

2

04-Jan-16

BUY

BHP

1000

$16.00

1

$16,048.00

3

05-Jan-16

SELL

RIO

500

$41.00

2

$20,448.75

9. For each share trade order(s) placed, display the order details and quantity of shares either bought/sold by the relevant transaction(s).

OrderId

code

orderType

orderedQuantity

Quantitycompleted

1

RIO

BUY

700

700

2

BHP

BUY

1000

1000

3

RIO

SELL

500

150

10. Display the details of share trade orders that have not been completed by transactions along with the pending quantity of shares to be completed.

OrderId

OrderDate

OrderType

Code

OrderedQuantity

OrderedPrice

BrokerageID

pendingQuantity

3

05-Jan-16

SELL

RIO

500

$41.00

2

350

Part B - Query Analysis
Explain the methodology of the SQL Query that you used to answer the question 8 in Part A.

Part C - Form
Usingyourdatabase, develop a form which can be used for data entry for Transactions. You are allowed to use any number of tables/ any suitable layout for developing that form.Name the form as "Transaction Entry".

Part D - Report
Usingyourdatabase, develop a report to display the details of Share, ShareTrade andTransactions. Name the report as "Share Transactions History".

Attachment:- IT 2.rar

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91723880
  • Price:- $80

Guranteed 48 Hours Delivery, In Price:- $80

Have any Question?


Related Questions in DBMS

Tableau is business intelligence software that helps people

Tableau is business intelligence software that helps people see and understand their data. Fast Analytics Connect and visualize your data in minutes. Tableau is 10 to 100x faster than existing solutions. Ease of Use Anyo ...

Question create an erd for the following scenarioa small

Question: Create an ERD for the following scenario. A small company ABC wants a database to keep track of internal company information. Â Given the following information create an ERD. The ABC Company has several departm ...

Solve the following questions using oracle you are not

Solve the following questions using Oracle. You are not allowed to use the syntax of any DBMS other than Oracle. Make sure to upload an electronic copy of your solution to your CSC335 TRACE folder. Name the file hw4.sql. ...

Instructionsfor decades relational databases remained

Instructions For decades, relational databases remained essentially unchanged; data was segmented into specific chunks for columns, slots, and repositories, also called structured data. However, in this Internet of Thing ...

Assignment task -write and run sql statements to complete

Assignment Task - Write and run SQL statements to complete the following tasks Part A - DML 1. Show the details of the products where the product code starts with '22'. 2. Display the vendor details from areacode 615. 3. ...

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 ...

Question we can sort a given set of n numbers by first

Question : We can sort a given set of n numbers by first building a binary search tree containing these numbers (using TREE-INSERT repeatedly to insert the numbers one by one) and then printing the numbers by an inorder ...

A taking an unnormalised list describe how you would

(a) Taking an unnormalised list, describe how you would normalise it using the normal forms technique and show how the result of this method is used. (b) You are currently in the process of developing a RDBMS for a natio ...

Quesiton 1 what is data-manipulation language dml there are

Quesiton: 1. What is Data-Manipulation Language (DML)? There are four types of access in DML, explain each one. 2. Assume we have a Library Database consists of the following relations: author(author_id, first_name, last ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

  • 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