ELECTRICITY BILLING SYSTEM
BY
PALAK BATHO(104)
KRITIKA SHARMA(114)
ARUN SHUKLA(119)
HARISH PATEL(98)
INTRODUCTION
• The electrical billing system using SQL is a database driven
application designed to store , manage, and process electricity
consumption data . By using SQL , the system can efficiently
calculate bills, apply tariff rates, and generate reports. This
approach ensures accuracy, faster processing , and easy retrieval
of customer records, reducing manual errors and improving overall
billing efficiency.
ENTITIES, ATTRIBUTES & CONSTRAINTS (ADMIN)
Attribute Constraint
Primary Key, INT, Unique, Not NULL
admin_id
VARCHAR(50), Not Null
admin_name
VARCHAR(255), Not Null
admin_password
VARCHAR(100), Unique, Not Null
admin_email
VARCHAR(100)
permissions
ENTITIES, ATTRIBUTES AND CONSTRAINTS (BILL)
Attribute Constraint
bill_id Primary key, INT, Unique, Not Null
bill_date Primary key, DATE, Not Null
duedate Primary key, DATE, Not Null
amount (derived) Primary key, DECIMAL(10,2), Derived from units × rate
units Primary key, INT, Not Null
status Primary key, ENUM('Paid','Unpaid’),
ENTITIES, ATTRIBUTES AND CONSTRAINTS
(COMPLAINTS)
Attribute Constraint
complaint_id Primary key, INT, Not Null
complaint_status Primary key, ENUM('Pending','Resolved’),
complaint Primary key, TEXT, Not Null
ENTITIES, ATTRIBUTES AND CONSTRAINTS (USER)
Attribute Constraint
user_id Primary key, INT, Unique, Not Null
user_name VARCHAR(50), Not Null
user_email VARCHAR(100), Unique, Not Null
user_password VARCHAR(255), Not Null
user_address VARCHAR(255),
house_no VARCHAR(10), Not Null
street VARCHAR(100), Not Null
city VARCHAR(50), Not Null, (composite: house_no, street, city)
ENTITIES, ATTRIBUTES AND CONSTRAINTS
(TRANSACTION)
Attribute Constraint
transaction_id Primary key, INT, Unique, Not Null
date DATE, Not Null
payable DECIMAL, Not Null
ER DIAGRAM
SCHEMA DIAGRAM
RELATION SCHEMA (ADMIN)
admin_id(PK) admin_name admin_email admin_passwor permissions user_id(FK) bill_id(FK) complaint_id
d (FK)
101 Ravi Sharma avi.sharma@ebi Admin@123 Full Access 201 301 401
ll.com
RELATION SCHEMA (BILL)
bill_id(PK) user_id(FK) transaction_id(FK) units amount bill_date status duedate
301 201 501 250 1875 15-7-25 unpaid 30-7-25
RELATION SCHEMA (USER)
user_id(PK) user_name bill_id(FK) user_email user_password user_address house_no street city
201 Priya Verma 301 priya.verma@exa User@123 House No: House No: MG Pune
mple.com 14B, MG 14B, Road
Road, Pune
RELATION SCHEMA (TTRANSACTION)
transaction_id (PK) Payable date Date
501 1875 20-07-25
RELATION SCHEMA (COMPLAINTS)
complaint_id(PK) complaint complaint_status user_id(FK) admin_id(FK)
401 Frequent power Resolved 201 101
outage in evening
SCOPE
The Electricity Billing System aims to automate the process of generating, managing, and processing electricity
bills for users.
Its scope includes:
• Bill Generation: Automatic calculation of charges based on units consumed.
• User Management: Storing user details like address, contact info, and billing history.
• Payment Tracking: Maintaining transaction records for paid and pending bills.
• Complaint Handling: Allowing users to lodge complaints and enabling admin to track and resolve them.
• Role Management: Different access levels for admin and users to ensure data security.
• Digital Record Keeping: Eliminating the need for paper-based billing by providing secure and centralized
digital records.
APPLICATIONS
• Electricity Boards & Utility Companies for managing customer billing efficiently.
• Private Power Distribution Firms to handle large volumes of billing data securely.
• Residential Complexes & Housing Societies for internal electricity consumption
tracking.
• Prepaid/Postpaid Metering Systems to automate payment and consumption
monitoring.
• Government Agencies for subsidy management and accurate energy usage
statistics.
CONCLUSION
The Electricity Billing System provides a reliable, efficient, and secure way to
manage electricity consumption data, generate bills, and handle payments and
complaints. By replacing manual methods with a digital solution, it reduces
human error, speeds up the billing process, and improves transparency between
service providers and consumers.
Its modular design ensures that it can be scaled for small housing societies as
well as large-scale city electricity boards. Ultimately, it promotes operational
efficiency, better record management, and customer satisfaction.
THANK YOU