Sunteți pe pagina 1din 2

Course Code Course Title Assignment Number Maximum Marks Last Date of Submission

: : : : :

CS-67 RDBMS Lab BCA (4)-67/Assignment/2010 25 30th April, 2010 (For January Session) 30th October, 2010 (For July Session)

There is two question in this assignment. Answer all the parts of each question. You may use illustrations or diagrams to support your answer. You have to implement the database system using any RDBMS.
Question 1: (20 Marks)

A Share trading Company maintains its clients data using a database system. The company keeps a list of its clients, their accounts and share held by them. A client can maintain an account with the company, however, this account should have a minimum balance. A client can sell his/her shares or buy new shares, based on their account balance, by giving instructions to the company from time to time. The clients of the company may be individuals or other companies. Perform the following activities for this share trading company:

(a)

Make an ER-diagram for the company, stating assumptions if any. You may use the concept of keys, aggregation, generalisation, cardinality etc. in a proper way. (2 Marks)

(b)

Design the suitable RDBMS tables for the ER-diagram so created in part (a). The database design should include keys, foreign keys, constraints and referential integrity constraints. (2 Marks) Implement the database design that you have created in (b) using a RDBMS our advice is that you choose either MySQL or MS ACCESS to do so. (2 Marks) Create the following data entry forms with suitable checks. (i) (ii) (iii) Data entry for a new client including a new account creation. Purchase of new shares Selling of shares Amount deposition/ withdrawal by the client from his account. (2 Marks)

(c)
(d)

(iv)

(e)

Enter at least 5-10 sets of records in each table preferably using data entry form created in part (d) (2 Marks) Create the following reports for the database you have created. The reports should have proper headings and page numbers and should include totals, if needed. (i) (ii) (iii) Report on present balance of all the accounts List of shares of a specified client The client wise list of shares sold or purchased by the company in a month.

(f)

(iv)

The statement of the account of a client for the current month. (2 Marks)

(g)

Write and run the following SQL queries for your database: (i) (ii) (iii) (iv) (v) (vi)

(4 Marks)

Find the details of the share that has been purchased the most in the current month. Find the costliest share that has been sold. Find the client who is most active (Note please count the number of transactions made by the clients). List the details of all the shares bought by client whose name is xyz. Find the list of clients whose account balance is below the minimum permitted account balance. Find the clients who has not done any transaction in the current month.

(h)

Design two views for the database that you have designed and implemented in this question. One view should be for the CEO of the company and other for clients who may be interested in various details of transactions made by the company for him/her. In addition, a client would like to find his/her account statement. Identify on what tables and what fields these two (CEO and Clients) will be allowed to have access. Implement these views or write equivalent queries for the view defining expression using SQL. (4 Marks)

Question 2: Construct an E-R diagram for Assignment Marks Management System for BCA. Create 1st Normal Form tables from the ER diagram. Identify all the functional dependencies and normalize your table design to 3rd Normal Form. Make and state suitable assumptions, if any. (5 Marks)

S-ar putea să vă placă și