in this assignment you will create a program that


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.

Request for Solution File

Ask an Expert for Answer!!
Database Management System: in this assignment you will create a program that
Reference No:- TGS0276155

Expected delivery within 24 Hours