Docsity

Electricity Bill Management System, Schemes and Mind Maps of Database Management Systems (DBMS)

Toggle sidebar
bg1
ELECTRICITY BILL MANAGEMENT SYSTEM
A PROJECT REPORT
Submitted by
AMIT KUMAR [ RA19110033010066 ]
Under the guidance of
Ms. SASSI REKHA
(Assistant Professor, Department of Computer Science & Engineering)
in partial fulfillment
for
the award of the degree
Of
BACHELOR OF TECHNOLOGY
In
COMPUTER SCIENCE & ENGINEERING
Of
FACULTY OF ENGINEERING AND TECHNOLOGY
SCHOOL OF COMPUTING
SRM Institute of Science and Technology
(Under Section 3 of UGC Act, 1956)
S.R.M. Nagar, Kattankulathur-603 203
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Electricity Bill Management System and more Schemes and Mind Maps Database Management Systems (DBMS) in PDF only on Docsity!

ELECTRICITY BILL MANAGEMENT SYSTEM

A PROJECT REPORT

Submitted by

AMIT KUMAR [ RA19110 033010066 ] Under the guidance of Ms. SASSI REKHA (Assistant Professor, Department of Computer Science & Engineering)

in partial fulfillment

for

the award of the degree

Of

BACHELOR OF TECHNOLOGY

In COMPUTER SCIENCE & ENGINEERING Of

FACULTY OF ENGINEERING AND TECHNOLOGY

SCHOOL OF COMPUTING

SRM Institute of Science and Technology (Under Section 3 of UGC Act, 1956)

S.R.M. Nagar, Kattankulathur- 603 203

SRM INSTITUTE OF

SCIENCE AND TECHNOLOGY

(Under Section 3 of UGC Act, 1956)

BONAFIDE CERTIFICATE

Certified that this project report titled “ ELECTRICITY BILL MANAGEMENT

SYSTEM ” is the bonafide work of “ AMIT KUMAR [RA1911033010066] ”, who

carried out the project work under my supervision. Certified further, that to the best of

my knowledge the work reported herein does not form any other project report or

dissertation on the basis of which a degree or award was conferred on an earlier

occasion on this or any other candidate.

SIGNATURE

Ms. Sassi Rekha GUIDE Assistant Professor Dept. of Computer Science & Engineering Signature of the Internal Examiner

SIGNATURE

HEAD OF THE DEPARTMENT

Dept. of Computer Science & Engineering Signature of the External Examiner

INTRODUCTION ABOUT THE PLATFORMS WORKED

MySQL

MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL is developed, marketed and supported by MySQL AB, which is a Swedish company. MySQL is becoming so popular because of many good reasons:

  • MySQL is released under an open-source license. So you have nothing to pay to use it.
  • MySQL is a very powerful program in its own right. It handles a large subset of the functionality of the most expensive and powerful database packages.
  • MySQL uses a standard form of the well-known SQL data language.
  • MySQL works on many operating systems and with many languages including PHP, PERL, C, C++, JAVA, etc.
  • MySQL works very quickly and works well even with large data sets.
  • MySQL supports large databases, up to 50 million rows or more in a table. The default file size limit for a table is 4GB, but you can increase this (if your operating system canhandle it) to a theoretical limit of 8 million terabytes (TB).
  • MySQL is very friendly to PHP, the most appreciated language for web development.
  • MySQL is customizable. The open-source GPL license allows programmers to modify the MySQL software to fit their own specific environments.

TOOLS USED MySQL Server MySQL Server : It is significantly quicker than previous methods of handling big databases. It comprises a multi-threaded SQL server that supports a variety of back ends, as well as a variety of client applications and libraries, administrative tools, and application programming interfaces (APIs). MySQL Server is well-suited for accessing databases via the Internet due to its connection, speed, and security.

SQL Workbench

MySQL workbench is a database is a visual database design tool that integrates SQL development, administration, database design, creation and maintenance into a single integrated development for the MySQL database system.

Web Browsers

Any web browser will sufficient.

GitHub

GitHub Inc. is a Git-based version control web hosting service. It’s primarily utilised in com- puter programming. It has all of Git’s distributed version control and source code management features, as well as those of its own.

INTRODUCTION Nowadays, with so much hassle in life there is a need to schedule and manage things. So, in daily household management especially for electricity bills we come across an idea to manage the bills in one place where you make payment, set reminder, and keep the records, and ,which will benefits users greatly. It is more convenient than paying for the units while keeping all the electricity bill track or records.

PROBLEM STATEMENT

This system is named as Electricity Bill Management System.This system is made to keel the records about the bill of the customers. The admin can manage all the accounts and the registered users like employees and customers can only manage their own accounts.

PROPOSED SOLUTION

Created a database system that allows consumers to register and while also allowing the user and admin to manage this system efficiently. Like a customer can only manage his account and cannot see any details of either customer, employees can see the details of all the customer’s accounts and the admin can manage all the accounts including the customers and employees accounts. This system also had the option for customers to pay their electricity bills online mode. Either through internet banking or by debit card. This system also has the feature to add and delete customer and employee’s accounts in case a customer wants to cut the connection or an employee wants to leave the job. All the employees are divided into different departments according to their job profile and the customers are divided according to their wards. This project covers a wide range of topics, from business concepts to computer science, and it necessitates the completion of numerous studies in order to meet the project’s objectives.

OBJECTIVE

This system is made to keel the records about the bill of the customers. The admin can manage all the accounts and the registered users like employees and customers can only manage their own accounts. This system helps in maintaining the bills and the payments. A different module is there for employees to check the customer’s details if their job requires it. Admin, employees, and customers all have a different interface and different privileges according to their needs. As a system development reference, create documents such as Software Requirement Specification (SRS) and Software Design Description

METHODOLOGY

The database was designed on MYSQL Workbench, the back end was developed on MYSQL Workbench. Software methods are concerned with the process of developing software, not so much with the technical elements as with the organizational ones. Since the dawn of information technology, a variety of software development methodologies have been employed.

ER DIAGRAM

IMPLEMENTATION Code: CREATE TABLE account ( account_id int NOT NULL, cust_id int NOT NULL, account_no varchar(45) NOT NULL, electricityboard_id int NOT NULL, name varchar(50) NOT NULL, address text NOT NULL, rr_number varchar(25) NOT NULL, status varchar(10) NOT NULL, PRIMARY KEY (account_id), KEY cust_id_idx (cust_id), CONSTRAINT cust_id2 FOREIGN KEY (cust_id) REFERENCES customer (cust_id) ON DELETE CASCADE ON UPDATE CASCADE ) CREATE TABLE admin ( admin_id int NOT NULL, admin_name varchar(25) NOT NULL, login_id varchar(25) NOT NULL, password varchar(25) NOT NULL, admin_type varchar(20) NOT NULL, status varchar(10) NOT NULL, PRIMARY KEY (admin_id) ) CREATE TABLE billing ( bill_no int NOT NULL, cust_id int NOT NULL, account_id int NOT NULL, payment_mode varchar(45) NOT NULL, payment_date date NOT NULL, payment_time time NOT NULL, rr_number varchar(25) NOT NULL, bill_amount float(10,2) NOT NULL, paid_amount float(10,2) NOT NULL, excess_paid float(10,2) NOT NULL, status varchar(10) NOT NULL, PRIMARY KEY (bill_no), KEY account_id_idx (account_id), KEY cust_id_idx (cust_id), CONSTRAINT account_id1 FOREIGN KEY (account_id) REFERENCES account (account_id) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT cust_id3 FOREIGN KEY (cust_id) REFERENCES customer (cust_id) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci CREATE TABLE customer ( cust_id int NOT NULL, cust_name varchar(50) NOT NULL, account_type varchar(25) NOT NULL, address text NOT NULL, state varchar(25) NOT NULL, city varchar(50) NOT NULL, pincode varchar(10) NOT NULL,

CREATE TABLE tariff ( tariff_id int NOT NULL, tariff_type varchar(50) NOT NULL, tariff_discription text NOT NULL, status varchar(10) NOT NULL, PRIMARY KEY (tariff_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci UPDATE ebms.electricityboard SET status = 'due' WHERE (electricityboard_id = '1121'); UPDATE ebms.electricityboard SET status = 'done' WHERE (electricityboard_id = '1001'); INSERT INTO ebms.electricityboard (electricityboard_id, electricityboard, logo, note, status) VALUES ('1121', 'UPPCL', 'bulb', '0', 'done'); INSERT INTO ebms.invoice (invoice_id, electricityboard_id, account_no, tariff_id, readingdate, bill_no, present_reading, previous_reading, consumption_unit, fixed_charge, energy_charge, tax, bill_amount, interest, previous_balance, interest_pre_balance, others, credit, consession, net_amount, due_date, status) VALUES ('01', '1001', '12345678', '501', '2022- 05 - 04', '1', '3005', '1002', '2003', '6', '5', '2.4', '12018', '18', '0', '0', '0', '0', '200', '11818', '2022- 05 - 18', 'Active'); INSERT INTO ebms.feedback (feedback_id, cust_id, feedback, feedback_date, status) VALUES ('1001', '101', 'Good', '2022- 03 - 10', 'Done'); INSERT INTO ebms.feedback (feedback_id, cust_id, feedback, feedback_date, status) VALUES ('1003', '103', 'Good', '2022- 03 - 06', 'Done'); INSERT INTO ebms.feedback (feedback_id, cust_id, feedback, feedback_date, status) VALUES ('1004', '104', 'Good', '2022- 03 - 05', 'Done'); ALTER TABLE ebms.billing DROP FOREIGN KEY account_id1; ALTER TABLE ebms.billing ADD CONSTRAINT account_id1 FOREIGN KEY (account_id) REFERENCES ebms.account (account_id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE ebms.feedback ADD CONSTRAINT cust_id4 FOREIGN KEY (cust_id) REFERENCES ebms.customer (cust_id) ON DELETE CASCADE ON UPDATE CASCADE; MODIFY Id int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; AUTO_INCREMENT for table customertable ALTER TABLE electricityboard_table MODIFY Id int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; AUTO_INCREMENT for table table ALTER TABLE custometable MODIFY Id int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; AUTO_INCREMENT for table custometable

ALTER TABLE billingtable MODIFY Id int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; Constraints for dumped tables Constraints for table billingtable ALTER TABLE billingtable ADD CONSTRAINT customertable FOREIGN KEY (billingid) REFERENCES billingtable (Id) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; DELIMITER $$ CREATE PROCEDURE createEmailList ( INOUT emailList varchar(4000) ) BEGIN DECLARE finished INTEGER DEFAULT 0; DECLARE emailAddress varchar(100) DEFAULT ""; -- declare cursor for employee email DEClARE curEmail CURSOR FOR SELECT emp_email_address FROM employees; -- declare NOT FOUND handler DECLARE CONTINUE HANDLER FOR NOT FOUND SET finished = 1; OPEN curEmail; getEmail: LOOP FETCH curEmail INTO emailAddress; IF finished = 1 THEN LEAVE getEmail; END IF; -- build email list SET emailList = CONCAT(emailAddress,";",emailList); END LOOP getEmail; CLOSE curEmail; END$$ DELIMITER ; SET @emailList = ""; CALL createEmailList(@emailList); SELECT @emailList; // DELIMITER CREATE TRIGGER billing_after_delete AFTER DELETE ON billings FOR EACH ROW BEGIN INSERT INTO billings_Audit VALUES (NULL, OLD.billings_id, OLD.billing_date, OLD.due_date, OLD.payment_status, OLD.billing_date, OLD.payment_type, OLD.total_bill_booked, OLD.electricity_board_id, OLD.customer_id, OLD.employees_emp_id, OLD.total_amount,"DELETED", NOW()); END// DELIMITER ;

Customer Table: ELECTRICITY BOARD TABLE: FEEDBACK TABLE:

INVOICE TABLE: TARIFF TABLE:

REFERENCES

[1] https://www.w3schools.com/mySQl/

[2] https://www.w3schools.com/css/default.asp

[3] StudyProjectguide.com

[4] You Tube - to install the MYSQL Workbench