Chat with us, powered by LiveChat CIS515 Term Paper Database Design for a Stock Trading | Writedemy

CIS515 Term Paper Database Design for a Stock Trading

CIS515 Term Paper Database Design for a Stock Trading

uestion

“CIS515 Term Paper
Database Design for a Stock Trading System
Data requirements:
The Stock Trading System is an automated system for trading stocks and options of publicly traded companies and it has the following data requirements:
A company is uniquely determined by its name, while also having a headquarters address and an established date. Address is a composite attribute, which components street number, apartment number, city, street and zip Code. Some companies have publicly traded common stocks, and are named public companies. Each public company has only one such stock, each stock has a unique stock code and specified number of shares. Every stock trades on one or more exchanges, but the number of trading exchanges cannot exceed 9. An exchange is uniquely determined by its name. There is a stock symbol associate with a stock, which is used to trades on an exchange. The same stock may have different symbols on different exchanges. An option on a stock symbol is a security that is uniquely determined by its type, stock symbol, strike price, and expiration date. An option trades on the same exchange as its stock symbol. The type of an option is either a “put” or a “call”. It can not be both, and it can not be something else. The last trading price and current daily volume for every symbol and option should be recorded.
Stocks and options are owned and traded by traders. A trader has a name and a tax id. The tax id uniquely determines the trader. The value of tax id is between “000001” and “900000”. Traders do not trade directly, but via brokerages. A brokerage is uniquely determined by its name and state. Each brokerage deals with one or more exchanges and pays a fixed yearly fee to every exchange it deals with. The fee could be different for every brokerage/exchange pair. A trader owns at least one account with at least one brokerage. She/he may hold more than one account with the same brokerage and deal with more than one brokerage. An account is uniquely determined by brokerage and account number. A brokerage may have no accounts. Each account has exactly one owner. Accounts hold securities and cash. Note that a stock bought on one exchange could be sold on another, so it is stocks, not symbols, which are held. Do not forget to include options in accounts.
Traders place trading orders via their brokerages. An order specifies the account, exactly one symbol or option to trade, “bid” (buy) or “ask” (sell), number of shares to trade, and the order expiration. There are two types of orders: “market” and “limit”. A limit order has the limit price in addition to the mentioned properties. The brokerage and order id uniquely determine the order. A transaction is effected in (possibly partial) fulfillment of two orders. Every transaction contains the following information: exactly one bid order, exactly one ask order, number of shares, transaction price, commissions paid by the buyer and the seller to their brokerages, and the timestamp. Exchange and transaction number uniquely determine the transaction. Note that an order could be filled by several transactions. The stocks and options are traded if their orders are fulfilled by some transactions.
Term Paper Questions
Part-1 Requirement Analysis
1. Identify the main entities of this stock trading system.
2. Can you think of more entities other than the one described in the data requirements to be added to the stock trading system?
3. Is the ability to model super-type /subtype relationships likely to be important in such environment? Why or why not?
4. Can you think of 4 more rules (other than the one explicitly described above) that are likely to be used in a stock trading system? Add your rules to the data requirements to be implemented.
5. Justify using a Relational DBMS like Oracle or SQL server for this system.
Part 2- Conceptual Design
6- Draw an EERD to accurately represent this set of requirements. This will be your Conceptual Design. Clearly specify any assumptions that you are making. You can use any tools (software) to draw the EERD.
Part 3 Logical Design
7- It has been decided to use a relational DBMS to implement the database. Perform the following steps.
a. Convert your Conceptual model (Part 2) to a Logical model that can be implemented in a relational DBMS like Oracle. During this process you replace M-N relationships and multi-valued attributes with constructs that can be implemented in the relational DBMS. Draw EERD for the logical model after your modifications. Feel free to change your conceptual model if needed.
b. Convert the EERD (item a) to a database design. Document your design in Database Schema format.
Part 4 Normalization.
Now, you are ready for implementation. Use appropriate naming conventions for all of your tables and attributes. Normalize all of your tables to third normal form. Make any necessary changes to the EERD from Part 2b. Explain why these changes needed to be made.

8 – Draw a dependency diagram for each table from Phase III a.

9 – Update data dictionary from previous delivery (part 3 b.) to add data type for each attribute in addition to specifying if it is primary key, foreign key, NULL is permitted, or its value is UNIQUE.

Part 4 Implementation.
10 – Write DDL SQL statements to create database, tables and all other structures. Primary keys and foreign keys must be defined appropriately. The quantity constraints of the relation between the entities, which should be described in EERD diagram, are not required.

11- Use the Create View statement to create the following views:
i. Stock-Symbol: This view returns the Company Name, Company Established Date, Stock Code, Number of Shares, and Exchange names of all stock symbols.

ii. High-Security: This view return stock code, last trading price and current daily volume for every symbol and option which last trading price is higher than $100.
iii. Good-Trader: This view returns all the Trades who have at least 3 accounts from at least 2 brokerages.

iv. Stock-Traded: This view returns the name for company, stock code and number of shares has been traded.

v. Popular-Trader: This view returns those traders who have traded shares more than 1% of all traded shares.

12 – Provide SQL statements for the following Queries. Feel free to use any of the views that you created in part (e):
vi. For each public company list the number of exchanges which its stock trades on.
vii. Find all Brokerages who do not have any accounts.
viii. List all Exchanges who have stock from the public company established before “Jan 01, 1980”.
ix. Find each Trader who has exactly one account.
x. Find all Orders which have been fulfilled by at least 2 transactions.
xi. List all companies where the number of its traded share exceeds its total number of shares.
xii. List all the account from those Popular-Traders.
xiii. List all the stocks which have been placed orders by Good-Traders.
xiv. List all transactions wholly fulfilled its two orders.
xv. List all the accounts which have been placed “limit” order.

Evaluation of the Term Paper
The following rubric will be used for grading the term paper
CRITERIA Expectation WEIGHT
Completeness · Term paper is complete and has all required answers 20%(12 points)
Problem-solving/analysis § Answers are accurate§ Information is constructed in a logical pattern to support the provided solution§ Reflects application of critical thinking 10%(6 points)
Conceptual and logical database design · Clarity of description and diagrams.· Completeness and sophistication of the EER model and the database design· Models selected entitiesand relationships in anEERD with properrelationship strength,connectivities, andcardinalities and all keysappropriately documented. 20%(12 points)
Normalization · Design reflects tables in3NF or rationale to chooseother normal form. · Data types for fields show athorough understanding ofthe problem and the typeof data to be stored.· Naming convention isselected and adhered tothroughout the design 20%(12 points)
SQL · SQL DDL and DML statements are appropriate and syntactically correct. 20%(12 points)
APA formatting § Follows APA conventions for title page, running heads, page numbering, abstract, in-text citations, and references page . 10%(6 points)

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order