Presentation is loading. Please wait.

Presentation is loading. Please wait.

Santosh Ghimire – 066BCT533 Subit Raj Pokharel – 066BCT538 Sudip Kafle – 066BCT539.

Similar presentations


Presentation on theme: "Santosh Ghimire – 066BCT533 Subit Raj Pokharel – 066BCT538 Sudip Kafle – 066BCT539."— Presentation transcript:

1 Santosh Ghimire – 066BCT533 Subit Raj Pokharel – 066BCT538 Sudip Kafle – 066BCT539

2 Entity Relationship Diagram  Created Using MS-Visio  Contains 19 different Entities

3 Adding Data to Database  Data added via. Windows Form based UI  Contains 5 different forms which can be reviewed before submitting  The data assigned to objects of 16 different classes  Each class has a method named Add which adds the attributes to Database  All SQL queries written as Stored procedures

4 Read Form Data Assign data to respective objects Assign the objects to a single object Add new record with new StudentID in Student Table Add the record for given studentID to all tables

5 Searching the Record  Searching can be done based on various criteria › Name, roll no., address, college name, year  A View is created on Database with only the required columns joining different tables  The record matching the search criteria is selected from view and displayed on the Grid View of the application

6 Sample search Query SELECT * FROM GridViewDefault WHERE Name LIKE '%' + @name+ '%' AND Course LIKE '%' + @course+ '%' AND StudentId IN (SELECT studentId FROM plusTwoDetail JOIN plusTwoCollege ON plusTwoDetail.collegeId=plusTwoCollege.collegeId WHERE collegeName LIKE '%'+@collegeName+'%') AND StudentID IN (SELECT studentId FROM permanentAddress JOIN district ON permanentAddress.districtId=district.districtId WHERE districtName LIKE '%'+@district+'%') AND Year LIKE '%' + @year +'%' AND Section LIKE '%'+@section+'%' Match Name Match Course Match College Match District Match year Match section

7 Updating the record  The record found after searching can be updated / edited  Form similar to adding record shown  Each of 16 classes have update method  The update method called similar to Add


Download ppt "Santosh Ghimire – 066BCT533 Subit Raj Pokharel – 066BCT538 Sudip Kafle – 066BCT539."

Similar presentations


Ads by Google