SlideShare a Scribd company logo
1 | P a g e 
IS 631 101 – Enterprise Database Management 
Project on 
VOTER MANAGEMENT SYSTEM 
Project by:- 
Tejas Omprakash Agarwal 
Date: 13th December 2013
2 | P a g e 
CONTENTS 
Page No. 
 INTRODUCTION 3 
 BUSINESS RULES 4 
 ENTITIES 5 
 INITIAL ER DIAGRAM 7 
 FINAL EER DIAGRAM 8 
 DATA DICTIONARY 9 
 QUERIES 10 
 SCREEN SHOTS OF SYSTEM 13
3 | P a g e 
INTRODUCTION 
Voter Management System project is a web based application which is used to store, maintain and analyse the information of voters. 
Scope: 
 To maintain (ADD, EDIT, DELETE) data of the voters 
 Track voters voting records 
 Sort voters by Surname, Building Name 
 Select and Print records 
 Find Duplicate records using voter name 
 Sort voter whose voter based on year of voting 
 Search voter from the records 
Technologies Used: 
Database: MySQL Front-end: EXTJS 4.0, HTML, CSS, and JavaScript
4 | P a g e 
BUSINESS RULES 
 Voter Personnel Details 
 Address of Voters 
 Election Type & Details 
 Add details of Voters 
 Edit details of Voters 
 Delete details of Voters 
 Print & Preview details of Voters 
 Find Duplicate entries of Voter 
 Sort Voter Building wise 
 Sort Voter Last Name wise 
 List of polling station 
 List all the voter who casted their vote in a particular election. 
THESE THINGS ARE RELATED AS FOLLOWS:- 
 Voter is associated with one address and one address can be assigned to many voters 
 Election can have many voters and voters can vote in many election 
 Voter is only assigned to one polling station whereas polling station can have many voters
5 | P a g e 
ENTITIES 
E1. voter_details 
voter_details 
PK voter_id 
voter_name 
voter_gender 
voter_age 
address_id 
polling_id 
email 
voting_status 
election_id 
E2. voter_address 
E3. polling_station 
polling_station 
PK polling_id 
polling_name 
election_id 
polling_pincode
6 | P a g e 
E4. Election 
E5. election_type
7 | P a g e 
INITIAL ER DIAGRAM
8 | P a g e 
FINAL EER DIAGRAM
9 | P a g e 
DATA DICTIONARY Table/Entity Name Attribute Name Type Description Key 
voter_details 
voter_id 
int(144) 
Voter Id 
Primary Key 
voter_name 
varchar(144) 
Voter Name (Last name followed by First Name) 
voter_gender 
text 
Gender 
voter_age 
int(24) 
Age 
email 
varchar(144) 
Email Address 
address_id 
int(144) 
Address Id of Voter 
Foreign Key 1 
polling_id 
int(144) 
Polling station Id 
Foreign Key 2 
voting_status 
varchar(144) 
Voting Status of voter for that year 
election_id 
int(144) 
Election Id corresponding to the election 
Foreign Key 3 
voter_address 
address_id 
int(144) 
Address Id of Voter 
Primary Key 
address_house_no 
varchar(144) 
House/shop number 
address_bldg_name 
varchar(144) 
House Name 
address_street 
varchar(144) 
Street Name 
address_pincode 
int(144) 
Pincode 
address_state 
varchar(144) 
State 
address_country 
varchar(144) 
Country 
polling_station 
polling_id 
int(144) 
Polling Station ID 
Primary Key 
polling_name 
varchar(144) 
Polling Station Name 
polling_pincode 
int(144) 
Polling Station Pincode 
election_id 
int(144) 
Election Id corresponding to the election 
Foreign Key 
election 
election_id 
int(144) 
Election ID 
Primary Key 
election_name 
varchar(144) 
Election Name 
election_year 
int(144) 
Election Year 
election_type 
election_id 
int(144) 
Election Id corresponding to the election 
Primary/Foreign Key 1 
voter_id 
int(144) 
Voter Id corresponding to the voter_details 
Primary/Foreign Key 2
10 | P a g e 
QUERIES 
Display Records Building-wise Query 1 and 2 are used to select distinct building and display voters belonging to that building. 
Query1: SELECT DISTINCT address_bldg_name AS voter_building FROM voter_address 
Query2: SELECT a.voter_id,a.voter_name,a.voter_gender,a.voter_age,a.email,(Select b.address_house_no from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') voter_flatno, (Select b.address_bldg_name from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') voter_building, (Select b.address_street from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') address_street, (Select b.address_pincode from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') address_pincode, (Select b.address_state from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') address_state, (Select b.address_country from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') address_country, a.address_id,a.polling_id,a.voting_status FROM voter_details as a, voter_address as b WHERE b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%' AND b.address_id = a.address_id
11 | P a g e 
Delete Records Query 3 is used to delete one or multiple records from the table. 
Query 3: 
DELETE FROM election_type where election_id='1' AND voter_id regexp '".$idstr."‘ 
Display Duplicate Entries Query 4 is used to display duplicate entries of the voter by comparing the name and address. 
Query 4: 
SELECT (Select b.address_house_no from voter_address as b where b.address_id = a.address_id) voter_flatno,(Select b.address_bldg_name from voter_address as b where b.address_id = a.address_id) voter_building,(Select b.address_street from voter_address as b where b.address_id = a.address_id) address_street,(Select b.address_pincode from voter_address as b where b.address_id = a.address_id) address_pincode,(Select b.address_state from voter_address as b where b.address_id = a.address_id) address_state,(Select b.address_country from voter_address as b where b.address_id = a.address_id) address_country, a.address_id,a.polling_id,a.voting_status,a.voter_id,a.voter_gender,a.voter_age,a.email,a.voter_name, COUNT(*) c FROM voter_details AS a GROUP BY voter_name HAVING c > 1 
Show all the records Query 5 is used to display all the records in one tabular format. 
Query 5: SELECT a.voter_id,a.voter_name,a.voter_gender,a.voter_age,a.email,(Select b.address_house_no from voter_address as b where b.address_id = a.address_id) voter_flatno,(Select b.address_bldg_name from voter_address as b where b.address_id = a.address_id) voter_building,(Select b.address_street from voter_address as b where b.address_id = a.address_id) address_street,(Select b.address_pincode from voter_address as b where b.address_id = a.address_id) address_pincode,(Select b.address_state from voter_address as b where b.address_id = a.address_id) address_state,(Select b.address_country from voter_address as b where b.address_id = a.address_id) address_country, a.address_id,a.polling_id,a.voting_status FROM voter_details as a limit $_REQUEST[start],$_REQUEST[limit]
12 | P a g e 
Add records Query 6 is used to insert data into voter_details table. 
Query 6: 
INSERT INTO `voter`.`voter_details` (`voter_id`, `voter_name`,`voter_gender`, `voter_age`,`email`,`election_id`,`polling_id`,`voting_status`) VALUES ('$id', '$f2', '$f5', '$f6','$f7','1','$pincode_check','$f12'); 
Print & Preview records
13 | P a g e 
SCREEN SHOTS 
Screen-shot of complete system. 
Screen-shot of Add panel to insert data.
14 | P a g e 
Screen-shot of Edit panel to edit data. 
Screen-shot to select building and display voters of that building.
15 | P a g e 
Screen-shot to select Surname and display voters of that surname.
16 | P a g e 
Thank You

More Related Content

Similar to Voter Management System Report - Tejas Agarwal

2017 Contributing to Open Elections Data using R
2017 Contributing to Open Elections Data using R2017 Contributing to Open Elections Data using R
2017 Contributing to Open Elections Data using R
Rupal Agrawal
 
FINAL.pptx
FINAL.pptxFINAL.pptx
FINAL.pptx
prithvi500544
 
Feasibility Study on e-Voting System
Feasibility Study on e-Voting SystemFeasibility Study on e-Voting System
IRJET- A Survey on: Aadhar Based Dual Authentication Secured E-Voting System
IRJET- A Survey on: Aadhar Based Dual Authentication Secured E-Voting SystemIRJET- A Survey on: Aadhar Based Dual Authentication Secured E-Voting System
IRJET- A Survey on: Aadhar Based Dual Authentication Secured E-Voting System
IRJET Journal
 
Use the ER Diagram that you created in your Homework Assignment ER .pdf
Use the ER Diagram that you created in your Homework Assignment ER .pdfUse the ER Diagram that you created in your Homework Assignment ER .pdf
Use the ER Diagram that you created in your Homework Assignment ER .pdf
akaluza07
 
Use the ER Diagram that you created in your Homework Assignment ER.pdf
Use the ER Diagram that you created in your Homework Assignment  ER.pdfUse the ER Diagram that you created in your Homework Assignment  ER.pdf
Use the ER Diagram that you created in your Homework Assignment ER.pdf
akaluza07
 
Aadhaar Identity North Presentation
Aadhaar Identity North PresentationAadhaar Identity North Presentation
Aadhaar Identity North Presentation
Kaliya "Identity Woman" Young
 
Online rto management system
Online rto management system Online rto management system
Online rto management system
DigneshPrajapati1
 

Similar to Voter Management System Report - Tejas Agarwal (8)

2017 Contributing to Open Elections Data using R
2017 Contributing to Open Elections Data using R2017 Contributing to Open Elections Data using R
2017 Contributing to Open Elections Data using R
 
FINAL.pptx
FINAL.pptxFINAL.pptx
FINAL.pptx
 
Feasibility Study on e-Voting System
Feasibility Study on e-Voting SystemFeasibility Study on e-Voting System
Feasibility Study on e-Voting System
 
IRJET- A Survey on: Aadhar Based Dual Authentication Secured E-Voting System
IRJET- A Survey on: Aadhar Based Dual Authentication Secured E-Voting SystemIRJET- A Survey on: Aadhar Based Dual Authentication Secured E-Voting System
IRJET- A Survey on: Aadhar Based Dual Authentication Secured E-Voting System
 
Use the ER Diagram that you created in your Homework Assignment ER .pdf
Use the ER Diagram that you created in your Homework Assignment ER .pdfUse the ER Diagram that you created in your Homework Assignment ER .pdf
Use the ER Diagram that you created in your Homework Assignment ER .pdf
 
Use the ER Diagram that you created in your Homework Assignment ER.pdf
Use the ER Diagram that you created in your Homework Assignment  ER.pdfUse the ER Diagram that you created in your Homework Assignment  ER.pdf
Use the ER Diagram that you created in your Homework Assignment ER.pdf
 
Aadhaar Identity North Presentation
Aadhaar Identity North PresentationAadhaar Identity North Presentation
Aadhaar Identity North Presentation
 
Online rto management system
Online rto management system Online rto management system
Online rto management system
 

More from Tejas Garodia

Acc615104 Managerial Accounting Project Report
Acc615104 Managerial Accounting Project ReportAcc615104 Managerial Accounting Project Report
Acc615104 Managerial Accounting Project Report
Tejas Garodia
 
Acct 615 104 Managerial Accounting - Analysis for Investment
Acct 615 104 Managerial Accounting - Analysis for InvestmentAcct 615 104 Managerial Accounting - Analysis for Investment
Acct 615 104 Managerial Accounting - Analysis for Investment
Tejas Garodia
 
Chat Room System using Java Swing
Chat Room System using Java SwingChat Room System using Java Swing
Chat Room System using Java Swing
Tejas Garodia
 
STARBUCKS SelfHelp System - Kiosk System
STARBUCKS SelfHelp System - Kiosk SystemSTARBUCKS SelfHelp System - Kiosk System
STARBUCKS SelfHelp System - Kiosk System
Tejas Garodia
 
Business process innovation employee appraisal process - tejas agarwal
Business process innovation   employee appraisal process - tejas agarwalBusiness process innovation   employee appraisal process - tejas agarwal
Business process innovation employee appraisal process - tejas agarwal
Tejas Garodia
 
Team case for Information System Principles
Team case for Information System PrinciplesTeam case for Information System Principles
Team case for Information System Principles
Tejas Garodia
 

More from Tejas Garodia (6)

Acc615104 Managerial Accounting Project Report
Acc615104 Managerial Accounting Project ReportAcc615104 Managerial Accounting Project Report
Acc615104 Managerial Accounting Project Report
 
Acct 615 104 Managerial Accounting - Analysis for Investment
Acct 615 104 Managerial Accounting - Analysis for InvestmentAcct 615 104 Managerial Accounting - Analysis for Investment
Acct 615 104 Managerial Accounting - Analysis for Investment
 
Chat Room System using Java Swing
Chat Room System using Java SwingChat Room System using Java Swing
Chat Room System using Java Swing
 
STARBUCKS SelfHelp System - Kiosk System
STARBUCKS SelfHelp System - Kiosk SystemSTARBUCKS SelfHelp System - Kiosk System
STARBUCKS SelfHelp System - Kiosk System
 
Business process innovation employee appraisal process - tejas agarwal
Business process innovation   employee appraisal process - tejas agarwalBusiness process innovation   employee appraisal process - tejas agarwal
Business process innovation employee appraisal process - tejas agarwal
 
Team case for Information System Principles
Team case for Information System PrinciplesTeam case for Information System Principles
Team case for Information System Principles
 

Recently uploaded

UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
Peter Muessig
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
DDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systemsDDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systems
Gerardo Pardo-Castellote
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
Peter Muessig
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
mz5nrf0n
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
Rakesh Kumar R
 
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise EditionWhy Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Envertis Software Solutions
 
SMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API ServiceSMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API Service
Yara Milbes
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
brainerhub1
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
kalichargn70th171
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
Remote DBA Services
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
lorraineandreiamcidl
 

Recently uploaded (20)

UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
DDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systemsDDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systems
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsUI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
UI5con 2024 - Boost Your Development Experience with UI5 Tooling Extensions
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
 
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise EditionWhy Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
Why Choose Odoo 17 Community & How it differs from Odoo 17 Enterprise Edition
 
SMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API ServiceSMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API Service
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
 

Voter Management System Report - Tejas Agarwal

  • 1. 1 | P a g e IS 631 101 – Enterprise Database Management Project on VOTER MANAGEMENT SYSTEM Project by:- Tejas Omprakash Agarwal Date: 13th December 2013
  • 2. 2 | P a g e CONTENTS Page No.  INTRODUCTION 3  BUSINESS RULES 4  ENTITIES 5  INITIAL ER DIAGRAM 7  FINAL EER DIAGRAM 8  DATA DICTIONARY 9  QUERIES 10  SCREEN SHOTS OF SYSTEM 13
  • 3. 3 | P a g e INTRODUCTION Voter Management System project is a web based application which is used to store, maintain and analyse the information of voters. Scope:  To maintain (ADD, EDIT, DELETE) data of the voters  Track voters voting records  Sort voters by Surname, Building Name  Select and Print records  Find Duplicate records using voter name  Sort voter whose voter based on year of voting  Search voter from the records Technologies Used: Database: MySQL Front-end: EXTJS 4.0, HTML, CSS, and JavaScript
  • 4. 4 | P a g e BUSINESS RULES  Voter Personnel Details  Address of Voters  Election Type & Details  Add details of Voters  Edit details of Voters  Delete details of Voters  Print & Preview details of Voters  Find Duplicate entries of Voter  Sort Voter Building wise  Sort Voter Last Name wise  List of polling station  List all the voter who casted their vote in a particular election. THESE THINGS ARE RELATED AS FOLLOWS:-  Voter is associated with one address and one address can be assigned to many voters  Election can have many voters and voters can vote in many election  Voter is only assigned to one polling station whereas polling station can have many voters
  • 5. 5 | P a g e ENTITIES E1. voter_details voter_details PK voter_id voter_name voter_gender voter_age address_id polling_id email voting_status election_id E2. voter_address E3. polling_station polling_station PK polling_id polling_name election_id polling_pincode
  • 6. 6 | P a g e E4. Election E5. election_type
  • 7. 7 | P a g e INITIAL ER DIAGRAM
  • 8. 8 | P a g e FINAL EER DIAGRAM
  • 9. 9 | P a g e DATA DICTIONARY Table/Entity Name Attribute Name Type Description Key voter_details voter_id int(144) Voter Id Primary Key voter_name varchar(144) Voter Name (Last name followed by First Name) voter_gender text Gender voter_age int(24) Age email varchar(144) Email Address address_id int(144) Address Id of Voter Foreign Key 1 polling_id int(144) Polling station Id Foreign Key 2 voting_status varchar(144) Voting Status of voter for that year election_id int(144) Election Id corresponding to the election Foreign Key 3 voter_address address_id int(144) Address Id of Voter Primary Key address_house_no varchar(144) House/shop number address_bldg_name varchar(144) House Name address_street varchar(144) Street Name address_pincode int(144) Pincode address_state varchar(144) State address_country varchar(144) Country polling_station polling_id int(144) Polling Station ID Primary Key polling_name varchar(144) Polling Station Name polling_pincode int(144) Polling Station Pincode election_id int(144) Election Id corresponding to the election Foreign Key election election_id int(144) Election ID Primary Key election_name varchar(144) Election Name election_year int(144) Election Year election_type election_id int(144) Election Id corresponding to the election Primary/Foreign Key 1 voter_id int(144) Voter Id corresponding to the voter_details Primary/Foreign Key 2
  • 10. 10 | P a g e QUERIES Display Records Building-wise Query 1 and 2 are used to select distinct building and display voters belonging to that building. Query1: SELECT DISTINCT address_bldg_name AS voter_building FROM voter_address Query2: SELECT a.voter_id,a.voter_name,a.voter_gender,a.voter_age,a.email,(Select b.address_house_no from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') voter_flatno, (Select b.address_bldg_name from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') voter_building, (Select b.address_street from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') address_street, (Select b.address_pincode from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') address_pincode, (Select b.address_state from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') address_state, (Select b.address_country from voter_address as b where b.address_id = a.address_id AND b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%') address_country, a.address_id,a.polling_id,a.voting_status FROM voter_details as a, voter_address as b WHERE b.address_bldg_name LIKE '%".$_REQUEST['voter_building']."%' AND b.address_id = a.address_id
  • 11. 11 | P a g e Delete Records Query 3 is used to delete one or multiple records from the table. Query 3: DELETE FROM election_type where election_id='1' AND voter_id regexp '".$idstr."‘ Display Duplicate Entries Query 4 is used to display duplicate entries of the voter by comparing the name and address. Query 4: SELECT (Select b.address_house_no from voter_address as b where b.address_id = a.address_id) voter_flatno,(Select b.address_bldg_name from voter_address as b where b.address_id = a.address_id) voter_building,(Select b.address_street from voter_address as b where b.address_id = a.address_id) address_street,(Select b.address_pincode from voter_address as b where b.address_id = a.address_id) address_pincode,(Select b.address_state from voter_address as b where b.address_id = a.address_id) address_state,(Select b.address_country from voter_address as b where b.address_id = a.address_id) address_country, a.address_id,a.polling_id,a.voting_status,a.voter_id,a.voter_gender,a.voter_age,a.email,a.voter_name, COUNT(*) c FROM voter_details AS a GROUP BY voter_name HAVING c > 1 Show all the records Query 5 is used to display all the records in one tabular format. Query 5: SELECT a.voter_id,a.voter_name,a.voter_gender,a.voter_age,a.email,(Select b.address_house_no from voter_address as b where b.address_id = a.address_id) voter_flatno,(Select b.address_bldg_name from voter_address as b where b.address_id = a.address_id) voter_building,(Select b.address_street from voter_address as b where b.address_id = a.address_id) address_street,(Select b.address_pincode from voter_address as b where b.address_id = a.address_id) address_pincode,(Select b.address_state from voter_address as b where b.address_id = a.address_id) address_state,(Select b.address_country from voter_address as b where b.address_id = a.address_id) address_country, a.address_id,a.polling_id,a.voting_status FROM voter_details as a limit $_REQUEST[start],$_REQUEST[limit]
  • 12. 12 | P a g e Add records Query 6 is used to insert data into voter_details table. Query 6: INSERT INTO `voter`.`voter_details` (`voter_id`, `voter_name`,`voter_gender`, `voter_age`,`email`,`election_id`,`polling_id`,`voting_status`) VALUES ('$id', '$f2', '$f5', '$f6','$f7','1','$pincode_check','$f12'); Print & Preview records
  • 13. 13 | P a g e SCREEN SHOTS Screen-shot of complete system. Screen-shot of Add panel to insert data.
  • 14. 14 | P a g e Screen-shot of Edit panel to edit data. Screen-shot to select building and display voters of that building.
  • 15. 15 | P a g e Screen-shot to select Surname and display voters of that surname.
  • 16. 16 | P a g e Thank You