Documente Academic
Documente Profesional
Documente Cultură
Integration_Id
EPS
Cl_phone no. Commission
Row_Id
Cl_Id
Portfolio %
Attributes
Cl_Name
Cl_Id
Cl_phone no.
Symbol
Company_name
Industry
No. of share
Purchase Date
Cl_Name
Current share value
Last price
Previous close
Row_Id
Integration_Id
Market Capitalization
Exchange
Total cost
Commission
Portfolio %
Return
PE Ratio
ER Diagram Explanation
1. There are three entity in this ER diagram – Client, Company and Parameter
2. Entity “Client” has attributes which contains the information about each client of BJR
Investment. Cl_Id is the primary key of “Client”. The stock portfolio worksheet contains the
name of the clients who have made investment in different companies.
3. Entity “Company” has attributes which contains the information about the company and
company’s stock such as industry, number of share bought by client, purchase date, current
share value etc.. Company_Name is the primary key of “Company” and Cl_Id acts as the foreign
key.
4. Entity “Client” and “Company” are connected through one to many relationship i.e. each client
can buy shares of several companies.
5. Last Price and Previous Close are shown in the dotted oval because these are the derived values
which get updated automatically through internet using MSNStockQuote.
6. Entity “Company” also has Row_id as a attribute. Row_id is used to differentiate the shares of
same company on different dates .
7. Entity “Parameter” has attributes which are calculated through the internal or external factors
i.e. commission, returns, P/E ratio etc..
8. Entity Company and Parameter are joined through one to one relationship.
9. Primary key of the entity Parameter is “Integration_Id”. Integration_Id is same as Row_Id. Both
these attributes are used for matching the shares, and the calculated value with their respective
companies.