Create a new service-based database, Database Management System

Assignment Help:

In this assignment, you will create a program that works with multiple tables. In this assignment, you will work with the factory and sales tables.

1. Create a new project named FactoryDB.sln.

2. Create a new service-based database (mdf) named Factory in the solution.

3. On the menu item, create a menu item named Create Factory table. The code in this menu item should execute the SQL statement that will create the table named tblFactory.

4. On the menu item, create a menu item named Create Inventory table. The code in this menu item should execute the SQL statement that will create the table named tblInventory. Create the table such that is a one-to-many relationship between the table named tblFactory and the table named tblInventory.

5. On the menu item, create a menu item named Create Sales table. The code in this menu item should execute the SQL statement that will create the table named tblSales. Create the table such that is a one-to-many relationship between the table named tblInventory and the table named tblSales.

6. Create a menu item named Create Test Data. Write the statements:

a. To generate at least 3 records for the Factory table.

b. Create random test data for the table named tblInventory. Use random values for the cost, sales price and quantity on hand. Generate at least 300 test records for the inventory table.

c. Create random test data for the table named tblSales. Use random values for the quantity sold, sales price and sales date. Generate at least 6000 test records for the sales table.

7. Create a menu item named Get Inventory that will will generate a method named GetInventory that should accept one parameter, the FactoryID number, and return a DataSet containing the inventory records for the current factory ID.

8. Create a Navigate menu with menu items that will allow the user to locate the first, previous, next, and the last factory records. As the user navigates from record to record, display in a DataGrid control instance the inventory in that factory by calling the method that you already created above. Besides, you need to provide a Find menu item for the user to search the record by the Factory ID.

9. Use the View Designer to create the view to link the tables based on their primary keys and foreign keys.

10. Create a second form that uses a data grid to display the data in the view.


Related Discussions:- Create a new service-based database

Describe the menu based interfaces for web clients browsing, Describe the M...

Describe the Menu based interfaces for web clients or browsing? Menu-Based Interfaces for Web Clients or Browsing - These interfaces present the user along with lists of option

Relational DB, Suppose R is a relation with attributes A1, A2,..., An. As a...

Suppose R is a relation with attributes A1, A2,..., An. As a function of n, tell how many superkeys R has, if: 1.1 The only key is A1. 1.2 The only key is A1 and A2. 1.3 The o

What is the archtetype pattern, What is the archtetype/instance pattern? ...

What is the archtetype/instance pattern? The archetype/instance pattern happens when one entity tracks occurrences of another entity. A common example is the relationship among

In which format database schema is written, In which format database schema...

In which format database schema is written ? Data base schema is written in the DDL format.

Differance between open addressing and chaining collision, Differance betwe...

Differance between Open addressing and chaining for collision resolution ? In open addressing , proceeding from the occupied position specified by hash address the program che

What is thread splitting, What is Thread splitting A thread of cont...

What is Thread splitting A thread of control is a path by which a set of state diagrams on that a single object is active at a time. Objects are shared between threads

What are the benefits of prepared statements, What are the benefits of prep...

What are the benefits of prepared statements and place holders? Parameter binding operations automatically handle escaping of characters Encourage Statement reuse

Explain the need for the bcnf normal form, Surgeons identified by doctor ID...

Surgeons identified by doctor ID (DOCID) operate on patients identified by patient ID (PATID) in operating theaters identified by room numbers (ROOMNO). Each surgeon can operate on

Er diagram, a publishing company produce scientific books on various subjec...

a publishing company produce scientific books on various subjects. the books are written by authors who specialize in one particular subject. the company employs editors who, not n

Illustrate system design of an object oriented approach, System Design: An ...

System Design: An Object Oriented Approach Any software systems always try to change and evolve as technology and business rules evolve. The development of information systems

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd